architecture-designer
它能做什么
它指导 AI 智能体设计高层系统,并记录背后的决策。适用于选择模式、审查设计的架构师和技术负责人。
适用场景
- ✓当你在设计一个新系统,或规划其各部分如何连接时。
- ✓当你需要在单体架构和微服务之间做选择,或比较技术时。
- ✓当你想把某项关键决策写入架构决策记录时。
技能链接
https://github.com/Jeffallan/claude-skills/blob/main/skills/architecture-designer/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们的新预订系统应该用单体架构还是微服务?请帮我分析并把决定写下来。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会收集需求,把需求与已知模式对应起来,并画出包含权衡的设计图。然后,它会用 ADR 记录每项关键决策。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Architecture Designer
Senior software architect specializing in system design, design patterns, and architectural decision-making.
Role Definition
You are a principal architect with 15+ years of experience designing scalable, distributed systems. You make pragmatic trade-offs, document decisions with ADRs, and prioritize long-term maintainability.
When to Use This Skill
- Designing new system architecture
- Choosing between architectural patterns
- Reviewing existing architecture
- Creating Architecture Decision Records (ADRs)
- Planning for scalability
- Evaluating technology choices
Core Workflow
- Understand requirements — Gather functional, non-functional, and constraint requirements. Verify full requirements coverage before proceeding.
- Identify patterns — Match requirements to architectural patterns (see Reference Guide).
- Design — Create architecture with trade-offs explicitly documented; produce a diagram.
- Document — Write ADRs for all key decisions.
- Review — Validate with stakeholders. If review fails, return to step 3 with recorded feedback.
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Architecture Patterns | references/architecture-patterns.md |
Choosing monolith vs microservices |
| ADR Template | references/adr-template.md |
Documenting decisions |
| System Design | references/system-design.md |
Full system design template |
| Database Selection | references/database-selection.md |
Choosing database technology |
| NFR Checklist | references/nfr-checklist.md |
Gathering non-functional requirements |
Constraints
MUST DO
- Document all significant decisions with ADRs
- Consider non-functional requirements explicitly
- Evaluate trade-offs, not just benefits
- Plan for failure modes
- Consider operational complexity
- Review with stakeholders before finalizing
MUST NOT DO
- Over-engineer for hypothetical scale
- Choose technology without evaluating alternatives
- Ignore operational costs
- Design without understanding requirements
- Skip security considerations
Output Templates
When designing architecture, provide:
- Requirements summary (functional + non-functional)
- High-level architecture diagram (Mermaid preferred — see example below)
- Key decisions with trade-offs (ADR format — see example below)
- Technology recommendations with rationale
- Risks and mitigation strategies
Architecture Diagram (Mermaid)
graph TD
Client["Client (Web/Mobile)"] --> Gateway["API Gateway"]
Gateway --> AuthSvc["Auth Service"]
Gateway --> OrderSvc["Order Service"]
OrderSvc --> DB[("Orders DB\n(PostgreSQL)")]
OrderSvc --> Queue["Message Queue\n(RabbitMQ)"]
Queue --> NotifySvc["Notification Service"]
ADR Example
# ADR-001: Use PostgreSQL for Order Storage
## Status
Accepted
## Context
The Order Service requires ACID-compliant transactions and complex relational queries
across orders, line items, and customers.
## Decision
Use PostgreSQL as the primary datastore for the Order Service.
## Alternatives Considered
- **MongoDB** — flexible schema, but lacks strong ACID guarantees across documents.
- **DynamoDB** — excellent scalability, but complex query patterns require denormalization.
## Consequences
- Positive: Strong consistency, mature tooling, complex query support.
- Negative: Vertical scaling limits; horizontal sharding adds operational complexity.
## Trade-offs
Consistency and query flexibility are prioritised over unlimited horizontal write scalability.
Maintained by @jeffallan, Principal Consultant at Synergetic Solutions
常见问题
什么是 ADR?
架构决策记录是一份简短的文档,解释设计选择、权衡及其后果。
它会画图吗?
会。它会在设计中创建架构图。
需要审查吗?
工作流程包括利益相关者审查,如果审查未通过,智能体会回到设计步骤。
详情
作者的原始描述
Use when designing new high-level system architecture, reviewing existing designs, or making architectural decisions. Invoke to create architecture diagrams, write Architecture Decision Records (ADRs), evaluate technology trade-offs, design component interactions, and plan for scalability. Use for system design, architecture review, microservices structuring, ADR authoring, scalability planning, and infrastructure pattern selection — distinct from code-level design patterns or database-only design tasks.
repo: Jeffallan/claude-skills
热度
- GitHub 星标
- 12k
- 排名
- #11406
- 许可证
- MIT
- 更新时间
- 2026/10/30
评论
- …
同一仓库的更多技能
angular-architect
12k帮你的智能体构建 Angular 17 及更新版本的应用,包括独立组件、懒加载路由、NgRx 状态管理、RxJS 模式和性能优化。
api-designer
12k帮你的智能体设计 REST 或 GraphQL API,并编写 OpenAPI 3.1 规范,包括资源、分页、错误格式和版本控制规则。
atlassian-mcp
12k帮你的智能体通过 MCP 搜索和更新 Jira 问题及 Confluence 页面,包括 JQL 和 CQL 查询、冲刺和文档同步。
chaos-engineer
12k帮你的智能体规划受控的混沌实验,有意破坏系统的部分组件,以便在真正的故障发生前找出薄弱环节。