architect
21
总安装量
7
周安装量
#17499
全站排名
安装命令
npx skills add https://github.com/htlin222/dotfiles --skill architect
Agent 安装分布
claude-code
6
gemini-cli
5
antigravity
4
windsurf
4
cursor
3
Skill 文档
System Architecture
Design scalable, maintainable system architectures.
When to Use
- Major architectural decisions
- System design discussions
- Evaluating trade-offs
- Planning large refactors
- Reviewing system structure
Design Process
- Understand – Clarify requirements and constraints
- Identify – Define components and boundaries
- Design – Create architecture with trade-offs
- Validate – Check against requirements
- Document – Record decisions and rationale
Architecture Patterns
Layered Architecture
âââââââââââââââââââââââââââââââ
â Presentation Layer â UI, API endpoints
âââââââââââââââââââââââââââââââ¤
â Business Layer â Domain logic, services
âââââââââââââââââââââââââââââââ¤
â Persistence Layer â Repositories, DAOs
âââââââââââââââââââââââââââââââ¤
â Data Layer â Database, cache
âââââââââââââââââââââââââââââââ
Microservices
âââââââââââ âââââââââââ âââââââââââ
â User â â Order â â Payment â
â Service â â Service â â Service â
ââââââ¬âââââ ââââââ¬âââââ ââââââ¬âââââ
â â â
ââââââââââââââ¼âââââââââââââ
â
ââââââââ´âââââââ
â Message Bus â
âââââââââââââââ
Event-Driven
Producer â Event Bus â Consumer(s)
â
ââ Service A
ââ Service B
ââ Analytics
Decision Framework
Trade-off Analysis
| Aspect | Option A | Option B |
|---|---|---|
| Complexity | Low | High |
| Scalability | Limited | Horizontal |
| Cost | $ | $$$ |
| Time to market | Fast | Slow |
| Maintenance | Easy | Complex |
ADR Template
# ADR-001: [Decision Title]
## Status
Accepted | Proposed | Deprecated
## Context
[Why we need to make this decision]
## Decision
[What we decided]
## Consequences
### Positive
- [Benefit 1]
### Negative
- [Trade-off 1]
### Risks
- [Risk 1]
Key Principles
- Separation of Concerns – Each component has one responsibility
- Loose Coupling – Minimize dependencies between components
- High Cohesion – Related functionality grouped together
- YAGNI – Don’t build for hypothetical requirements
- Fail Fast – Detect and report errors immediately
Scalability Checklist
- Stateless services (session in Redis/DB)
- Horizontal scaling capability
- Database read replicas
- Caching layer (Redis, CDN)
- Async processing for heavy tasks
- Rate limiting and circuit breakers
Examples
Input: “Design a notification system” Action: Define channels, queue architecture, delivery guarantees, scaling strategy
Input: “Should we use microservices?” Action: Analyze team size, complexity, scaling needs, recommend with trade-offs