Capture architectural decisions made during Claude Code sessions as structured ADRs. Auto-detects decision moments, records context, alternatives considered, and rationale. Maintains an ADR log so future developers understand why the codebase is shaped the way it is.
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "architecture-decision-records" 技能: 1. 下载 https://raw.githubusercontent.com/affaan-m/ECC/main/skills/architecture-decision-records/SKILL.md 2. 保存为 ~/.claude/skills/architecture-decision-records/SKILL.md 3. 装好后重载技能,告诉我可以用了
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.
Use the lightweight ADR format proposed by Michael Nygard, adapted for AI-assisted development:
# ADR-NNNN: [Decision Title]
**Date**: YYYY-MM-DD
**Status**: proposed | accepted | deprecated | superseded by ADR-NNNN
**Deciders**: [who was involved]
## Context
What is the issue that we're seeing that is motivating this decision or change?
[2-5 sentences describing the situation, constraints, and forces at play]
## Decision
What is the change that we're proposing and/or doing?
[1-3 sentences stating the decision clearly]
## Alternatives Considered
### Alternative 1: [Name]
- **Pros**: [benefits]
- **Cons**: [drawbacks]
- **Why not**: [specific reason this was rejected]
### Alternative 2: [Name]
- **Pros**: [benefits]
- **Cons**: [drawbacks]
- **Why not**: [specific reason this was rejected]
## Consequences
What becomes easier or more difficult to do because of this change?
### Positive
- [benefit 1]
- [benefit 2]
### Negative
- [trade-off 1]
- [trade-off 2]
### Risks
- [risk and mitigation]
When a decision moment is detected:
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.docs/adr/ and incrementdocs/adr/NNNN-decision-title.md after explicit approval. If the user declines, discard the draft without writing any files.docs/adr/README.mdWhen a user asks "why did we choose X?":
docs/adr/ exists — if not, respond: "No ADRs found in this project. Would you like to start recording architectural decisions?"docs/adr/README.md index for relevant entriesdocs/
└── adr/
├── README.md ← index of all ADRs
├── 0001-use-nextjs.md
├── 0002-postgres-over-mongo.md
├── 0003-rest-over-graphql.md
└── template.md ← blank template for manual use
# Architecture Decision Records
| ADR | Title | Status | Date |
|-----|-------|--------|------|
| [0001](0001-use-nextjs.md) | Use Next.js as frontend framework | accepted | 2026-01-15 |
| [0002](0002-postgres-over-mongo.md) | PostgreSQL over MongoDB for primary datastore | accepted | 2026-01-20 |
| [0003](0003-rest-over-graphql.md) | REST API over GraphQL | accepted | 2026-02-01 |
…
基于 C++ Core Guidelines 提供现代、安全、惯用的 C++ 编码规范建议
帮助你设计并实现 F# 单元、属性与集成测试的最佳实践
帮助你用 dmux 编排多智能体并行协作,加速开发与复杂任务执行。
为 Quarkus 3.x 项目提供测试驱动开发方案,支持功能开发、修复与重构。
帮助用户检索 PubMed 生物医学文献、MeSH 主题词与 PMID 引文信息。
通过 fal.ai 一站式生成图片、视频与音频内容,满足多模态创作需求