architecture-decision-records
将架构决策记录为 docs/adr/ 下编号的 ADR Markdown 文件,包含背景、考虑过的替代方案、后果和 README 索引。适用于用户要求“记录这个决策”或“为此写 ADR”,选择框架或数据库,讨论取舍,或询问代码库为何形成当前结构的情况。
译文已校对查看英文原文
Capture architectural decisions as numbered ADR markdown files in docs/adr/ with context, alternatives considered, consequences, and an index README. Use when the user says 'record this decision' or 'ADR this', chooses between frameworks or databases, discusses trade-offs, or asks why the codebase is shaped this way.
适用对象:对象待分类。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Architecture Decision Records
- When to Activate
- ADR Format
- Workflow
- Capturing a New ADR
- Reading Existing ADRs
- ADR Directory Structure
- ADR Index Format
Capture architectural decisions as they happen during coding sessions. Instead of decisions living only in Slack threads, PR comments, or someone's memory, this skill produces structured ADR documents that live alongside the code. User explicitly says "let's record this decision" or "ADR this" User chooses between significant alternatives (framework, library, pattern, database, API design) User says "we decided to..." or "the reason we're doing X instead of Y is..." User asks "why did we choose X?" (read existing ADRs) During planning phases when architectural trade-offs are discussed Use the lightweight ADR format proposed by Michael Nygard, adapted for AI-assisted development: When a decision moment is detected: 1. Initialize (first time only) — if docs/adr/ does not exist, ask the user for confirmation before creating the directory, a README.md seeded with the index table header (see ADR Index Format below), and a blank template.md for manual use. Do not create files without explicit consent. 2. Identify the decision — extract the core architectural choice being made 3. Gather context — what problem prompted this? What constraints exist? 4. Document alternatives — what other opt
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- affaan-m/ECC
- 源文件
- pi/core/skills/architecture-decision-records/SKILL.md
- 固定版本
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:affaan-m/ECC · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T15:01:42.832Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。