Creates, manages, and tracks Architecture Decision Records (ADRs) for architecture decisions, technology choices, design trade-offs, and pattern selection.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin asiaostrich-universal-dev-standardsThis skill is limited to using the following tools:
> **Language**: English | [繁體中文](../../locales/zh-TW/skills/adr-assistant/SKILL.md)
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
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 |
/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 ADR