/universal-dev-standards:adr [create | list | supersede ADR-NNN | 決策主題]from universal-dev-standards
Creates, manages, and tracks Architecture Decision Records (ADRs) to document context, options, and rationale behind technical decisions.
Ships in universal-dev-standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Language: English | 繁體中文
Create, manage, and track Architecture Decision Records. Capture the context, options, and rationale behind significant technical decisions.
建立、管理和追蹤架構決策記錄。捕捉重大技術決策的背景、選項和理由。
CAPTURE ──► ANALYZE ──► DECIDE ──► RECORD ──► LINK
捕捉背景 分析選項 做出決策 記錄 ADR 建立連結
Identify the context and constraints driving the decision.
識別驅動決策的背景與限制條件。
| Step | Action | 步驟 |
|---|---|---|
| 1 | Identify the problem or opportunity | 識別問題或機會 |
| 2 | List constraints (time, budget, team skills) | 列出限制條件 |
| 3 | Define decision drivers | 定義決策驅動因素 |
Explore at least 2 options with pros and cons.
至少探索 2 個選項,列出優缺點。
| Step | Action | 步驟 |
|---|---|---|
| 1 | Brainstorm candidate options | 腦力激盪候選方案 |
| 2 | Evaluate each against decision drivers | 根據決策驅動因素評估 |
| 3 | Document pros/cons for each | 記錄各方案優缺點 |
Select the best option and articulate the rationale.
選擇最佳方案並闡述理由。
Generate the ADR file following the standard template.
依照標準模板產生 ADR 檔案。
Cross-reference with related artifacts (SPECs, PRs, code).
與相關工件(規格、PR、程式碼)建立交叉引用。
| Write ADR | Skip ADR |
|---|---|
| Framework/library choice | Routine dependency update |
| API contract or data format | Bug fix within existing architecture |
| Deployment strategy change | Code style decision |
| Establishing new patterns | Trivial implementation choice |
Rule of thumb: If someone might ask "why?" in 6 months, write an ADR.
經驗法則:如果 6 個月後有人可能會問「為什麼?」,就寫一份 ADR。
Proposed ──► Accepted ──► Deprecated
│
└──► Superseded by ADR-NNN
| Status | Description | 說明 |
|---|---|---|
| Proposed | Under discussion | 討論中 |
| Accepted | Active, should be followed | 已接受,應遵循 |
| Deprecated | No longer relevant | 不再適用 |
| Superseded | Replaced by newer ADR | 已被新 ADR 取代 |
# ADR-NNN: [Title]
- Status: [Proposed | Accepted | Deprecated | Superseded]
- Date: YYYY-MM-DD
- Deciders: [people]
- Technical Story: [SPEC-ID or Issue]
## Context
## Decision Drivers
## Considered Options
## Decision Outcome
### Consequences (Good / Bad / Neutral)
## Links
docs/adr/
├── ADR-001-short-description.md
├── ADR-002-short-description.md
└── README.md # Index (optional)
| Command | Action | 說明 |
|---|---|---|
/adr | Interactive ADR creation wizard | 互動式建立 ADR |
/adr create | Create a new ADR | 建立新 ADR |
/adr list | List all ADRs with status | 列出所有 ADR 及狀態 |
/adr search [keyword] | Search ADRs by keyword | 依關鍵字搜尋 ADR |
/adr supersede [ADR-NNN] | Supersede an existing ADR | 取代現有 ADR |
/adr review | Review ADRs for staleness | 審查過期的 ADR |
| Skill | Integration | 整合方式 |
|---|---|---|
/sdd | Reference ADRs in Technical Design; suggest creating ADR for major decisions | 在技術設計中引用 ADR |
/code-review | Reference ADRs as design rationale during code review | 程式碼審查時引用 ADR |
/commit | Include ADR-NNN in commit footer for traceability | 提交時在 footer 加入 ADR 編號 |
/brainstorm | Feed brainstorm output into ADR option analysis | 腦力激盪結果作為 ADR 選項分析輸入 |
Before accepting an ADR:
| Check | Criteria | 標準 |
|---|---|---|
| ☐ Context | Clearly explains the problem | 清楚說明問題 |
| ☐ Options | At least 2 options considered | 至少考慮 2 個選項 |
| ☐ Drivers | Decision drivers explicitly listed | 決策驅動因素明確列出 |
| ☐ Consequences | Both good and bad outcomes | 包含正面與負面結果 |
| ☐ Links | Related artifacts referenced | 相關工件已引用 |
After /adr completes, the AI assistant should suggest:
ADR created. Suggested next steps:
- Execute
/sddto create a spec if the decision requires implementation- Execute
/committo commit the ADR file- Update related SPECs to reference this ADR
- Share with team for review if status is
Proposed
ADR 已建立。建議下一步:
- 執行
/sdd建立規格(若決策需要實作)- 執行
/commit提交 ADR 檔案- 更新相關規格以引用此 ADR
- 若狀態為
Proposed,分享給團隊審查
When the user invokes /adr, the AI assistant MUST:
docs/adr/ to determine next ADR numberdocs/adr/ADR-NNN-title.mdWhen the user invokes /adr list:
docs/adr/ directoryWhen the user invokes /adr supersede [ADR-NNN]:
Superseded by ADR-NNNSupersedes ADR-NNN to new ADRWhat SKILL.md sets; muted values are Claude Code's defaults
asiaostrich-universal-dev-standards@cascade-code-general-misc-3 is listed by joshuarweaver/cascade-code-general-misc-3 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin asiaostrich-universal-dev-standards57 skills in this plugin
/ac-coverage[UDS] Analyze AC-to-test traceability and generate requirement-level coverage reports.
Use when: auditing which acceptance criteria have tests, building a traceability matrix from a SPEC file, finding uncovered AC before release.
Not for: code-level line/branch/function coverage — use /coverage; writing the missing tests — use /tdd or /spec-derive.
Keywords: AC coverage, traceability, acceptance criteria, SPEC, traceability matrix, 驗收條件, 需求追蹤, 覆蓋率矩陣.
/ai-collaboration-standardsPrevent AI hallucination and ensure evidence-based responses when analyzing code or making suggestions.
Use when: analyzing code, making recommendations, providing options, or when user asks about confidence/certainty.
Not for: authoring the AI instruction files themselves — use /ai-instruction-standards; reviewing a concrete diff — use /code-review.
Keywords: certainty, assumption, inference, evidence, source.
/ai-friendly-architectureDesign AI-friendly architecture with explicit patterns, layered documentation, and semantic boundaries.
Use when: structuring projects for AI collaboration, optimizing codebase for AI analysis, setting up AI context.
Not for: writing the instruction files — use /ai-instruction-standards; language-conventional directory layout — use /project-structure-guide.
Keywords: architecture, AI-friendly, context, modules, documentation layers, .ai-context.yaml.
/ai-instruction-standardsCreate and maintain AI instruction files (CLAUDE.md, AGENTS.md, .cursor/rules/, etc.) with proper structure.
Use when: creating AI instruction files, separating universal vs project-specific rules, configuring AI tools.
Not for: shaping the codebase so AI can navigate it — use /ai-friendly-architecture; enforcing evidence-based answers — use /ai-collaboration-standards.
Keywords: CLAUDE.md, AGENTS.md, cursorrules, windsurfrules, clinerules, AI instructions, system prompt.
/api-designGuide API design following REST, GraphQL, and gRPC best practices.
Use when: designing APIs, reviewing endpoints, API versioning decisions.
Not for: verifying a running API against its consumers — use /contract-test; schema design behind the API — use /database.
Keywords: API, REST, GraphQL, gRPC, endpoint, versioning.
/atdd[UDS] Reference for Acceptance Test-Driven Development: INVEST criteria, Gherkin AC format, and Three Amigos structure.
Use when: defining acceptance criteria with a product owner, running a specification workshop, checking a user story against INVEST.
Not for: executing the ATDD lifecycle or enforcing PO sign-off gates — that moved to the adoption layer (XSPEC-095); writing unit tests — use /tdd.
Keywords: ATDD, acceptance test, acceptance criteria, INVEST, specification workshop, Three Amigos, 驗收測試驅動開發, 驗收條件, 規格工作坊.
Other plugins' skills for the same job