adr-plan
Analyze a task and produce an Architecture Decision Record with implementation steps.
适合你,如果需要记录技术决策并规划实现步骤
/ 通过 npx 安装 校验哈希
npx oh-my-skill add nikiforovall/claude-code-rules/adr-plan/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- nikiforovall/claude-code-rules/adr-plan/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify nikiforovall/claude-code-rules/adr-plan安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
133GitHub stars
~582上下文体积 · 单文件
索引托管
怎么用
商店整理自技能原文 · 版本 642e21e · 表述以原文为准它做什么
装上这个技能后,Claude 会分析你给出的任务,探索相关代码库,生成一份架构决策记录(ADR),包含实施步骤。它只做规划,不写代码。
什么时候触发
当你提出一个开发任务,要求分析并规划实施方案,或者要求生成一份ADR文档时触发。
装好后可以这样说
Claude会分析任务并产出ADR文件。
Claude会生成包含实施步骤的ADR。
Claude会自动探索代码并生成ADR。
技能原文 SKILL.md
ADR Plan: Task Analysis → Architecture Decision Record
Analyze a task, explore the codebase, and produce an ADR with concrete implementation steps.
Phase 1: Analyze
- Read the task description, active plan, or task list
- Explore affected areas of the codebase — do it concurrently for independent modules
- Map blast radius — search for consumers of functions/types/routes being changed
- Identify alternatives worth considering (at least 2)
Do this silently.
Phase 2: Detect ADR Setup
Check if the project has an ADR directory:
ls docs/adr/ || ls adr/ || ls doc/adr/
- Found → use existing directory, detect next number from existing files
- Not found → run
npx adr init en, then proceed
Phase 3: Produce ADR Content
Write the ADR using npx adr new "<title>", then edit the generated file with the following structure:
# ADR-NNNN: [Title] ## Status Proposed ## Context [What problem are we solving? What constraints exist?] ## Decision [What we chose and why] ## Alternatives Considered | Option | Pros | Cons | |--------|------|------| | ... | ... | ... | ## Implementation Steps ### Step 1: [Description] - **Files:** [files to create/modify] - **Depends on:** [previous step or "none"] - **Done when:** [concrete acceptance criteria] ### Step 2: [Description] ... ## Consequences - [Positive and negative outcomes, tradeoffs accepted]
Guidelines
- Steps are ordered by dependency — each step lists what it depends on
- Steps are parallelizable when independent — note which steps can run concurrently
- Each step has concrete "done when" criteria — no vague outcomes
- Alternatives table is honest — include the option you chose and why others lost
- Keep it short. 1-2 pages max. No padding.
Phase 4: Present to User
Show the ADR content and the file path. The user may:
- Approve → ADR stays as-is
- Adjust → edit and re-present
- Cancel → delete the file
Important
- The ADR is a planning artifact, not documentation for posterity
- Steps should map naturally to work units (a team member could own one or more steps)
- If the task is too simple for an ADR (single file, obvious fix), say so and skip
- Do not write implementation code — this is planning only
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…