npx skills add https://github.com/jwynia/agent-skills --skill architecture-decision系统性地评估架构决策,记录权衡取舍,并根据上下文选择合适的模式。提供模式选择、ADR(架构决策记录)创建和技术债务管理的框架。
在以下情况下使用此技能:
在以下情况下请不要使用此技能:
上下文驱动决策。 没有放之四海而皆准的好模式或坏模式。最好的架构不是最优雅的,而是最能服务于其目的,同时保持可维护性和可演进性的那个。
每个架构决策都涉及权衡取舍:
| 顶点 | 最大化策略 | 代价 |
|---|---|---|
| 简单性 | 单体架构、同步通信、单一数据库 | 可扩展性受限 |
| 灵活性 | 微服务、事件驱动、插件化 | 复杂性开销 |
| 性能 | 缓存、反规范化、优化代码 | 可维护性 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
平衡策略:
| 上下文 | 首选模式 | 避免 |
|---|---|---|
| 小型团队 | 单体架构、垂直切片、共享数据库 | 微服务、复杂抽象 |
| 多团队 | 服务边界、API契约 | 共享状态、紧耦合 |
| 上下文 | 首选模式 | 理由 |
|---|---|---|
| 初创公司 | 单体优先、垂直扩展 | 优化开发速度 |
| 企业级 | 服务网格、水平扩展 | 优化运营规模 |
| 选项 | 一致性 | 灵活性 | 可扩展性 | 复杂性 | 成本 | 总分 |
|---|---|---|---|---|---|---|
| 选项 A | 5 | 2 | 3 | 2 | 3 | 15 |
| 选项 B | 3 | 5 | 4 | 3 | 3 | 18 |
| 选项 C | 2 | 3 | 5 | 1 | 2 | 13 |
根据上下文优先级设置权重因子。
# ADR-[NUMBER]: [TITLE]
## 状态
[提议中 | 已采纳 | 已弃用 | 已被取代]
## 上下文
[需要做出决策的情况是什么?]
### 需求
- [需求 1]
- [需求 2]
### 约束
- [约束 1]
- [约束 2]
## 决策
[决策是什么?]
### 理由
- [理由 1]
- [理由 2]
## 后果
### 积极影响
- [好处 1]
- [好处 2]
### 消极影响
- [缺点 1]
- [缺点 2]
## 已考虑的替代方案
### [替代方案 1]
拒绝原因:[原因]
### [替代方案 2]
拒绝原因:[原因]
| 类型 | 示例 | 偿还策略 |
|---|---|---|
| 设计 | 缺少抽象、紧耦合 | 重构冲刺 |
| 代码 | 重复、复杂性高、命名不当 | 持续清理 |
| 测试 | 缺少测试、不稳定的测试 | 测试改进 |
| 文档 | 缺少文档、过时的图表 | 文档冲刺 |
症状: 没有清晰的结构,一切相互依赖 补救措施: 识别边界、提取模块、建立接口
症状: 服务必须一起部署、同步调用链、共享数据库 补救措施: 合并相关服务、异步通信、分离数据库
症状: 一种方案解决所有问题,强行套用模式 补救措施: 学习替代方案、客观评估、原型验证选项
每周安装量
144
代码仓库
GitHub 星标数
37
首次出现
2026年1月20日
安全审计
安装于
opencode122
codex116
gemini-cli113
github-copilot106
cursor101
claude-code101
Systematically evaluate architecture decisions, document trade-offs, and select appropriate patterns for context. Provides frameworks for pattern selection, ADR creation, and technical debt management.
Use this skill when:
Do NOT use this skill when:
Context drives decisions. No pattern is universally good or bad. The best architecture is not the most elegant—it's the one that best serves its purpose while remaining maintainable and evolvable.
Every architectural decision involves trade-offs:
| Vertex | Maximized By | Cost |
|---|---|---|
| Simplicity | Monolith, sync communication, single DB | Scalability limits |
| Flexibility | Microservices, event-driven, plugins | Complexity overhead |
| Performance | Caching, denormalization, optimized code | Maintainability |
Balance Strategies:
| Context | Preferred Patterns | Avoid |
|---|---|---|
| Small team | Monolith, vertical slices, shared DB | Microservices, complex abstractions |
| Multiple teams | Service boundaries, API contracts | Shared state, tight coupling |
| Context | Preferred Patterns | Reasoning |
|---|---|---|
| Startup | Monolith first, vertical scaling | Optimize for development speed |
| Enterprise | Service mesh, horizontal scaling | Optimize for operational scale |
| Option | Consistency | Flexibility | Scalability | Complexity | Cost | Total |
|---|---|---|---|---|---|---|
| Option A | 5 | 2 | 3 | 2 | 3 | 15 |
| Option B | 3 | 5 | 4 | 3 | 3 | 18 |
| Option C | 2 | 3 | 5 | 1 | 2 | 13 |
Weight factors based on context priorities.
# ADR-[NUMBER]: [TITLE]
## Status
[Proposed | Accepted | Deprecated | Superseded]
## Context
[What is the situation requiring a decision?]
### Requirements
- [Requirement 1]
- [Requirement 2]
### Constraints
- [Constraint 1]
- [Constraint 2]
## Decision
[What is the decision?]
### Justification
- [Reason 1]
- [Reason 2]
## Consequences
### Positive
- [Benefit 1]
- [Benefit 2]
### Negative
- [Drawback 1]
- [Drawback 2]
## Alternatives Considered
### [Alternative 1]
Reason rejected: [Why]
### [Alternative 2]
Reason rejected: [Why]
| Type | Examples | Payment Strategy |
|---|---|---|
| Design | Missing abstractions, tight coupling | Refactoring sprints |
| Code | Duplication, complexity, poor naming | Continuous cleanup |
| Test | Missing tests, flaky tests | Test improvement |
| Documentation | Missing docs, outdated diagrams | Documentation sprints |
Symptoms: No clear structure, everything depends on everything Remedy: Identify boundaries, extract modules, establish interfaces
Symptoms: Services must deploy together, sync chains, shared DBs Remedy: Merge related services, async communication, separate DBs
Symptoms: One solution for all problems, force-fitting patterns Remedy: Learn alternatives, evaluate objectively, prototype options
Weekly Installs
144
Repository
GitHub Stars
37
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode122
codex116
gemini-cli113
github-copilot106
cursor101
claude-code101
站立会议模板:敏捷开发每日站会指南与工具(含远程团队异步模板)
10,500 周安装