adr
Create, review, and manage Architecture Decision Records (ADRs) with auto-numbering, template detection, quality review, and index maintenance. Use when user…
от joaquimscosta★ 24 звезды на GitHub
Установить adr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
ADR Manager
Create and manage Architecture Decision Records following project conventions with automatic numbering and index maintenance.
Argument Parsing
When invoked explicitly with /adr <action>, parse the first word:
| First word | Remaining args | Operation |
|---|---|---|
create |
<title> |
Create a new ADR with the given title |
review |
<path> |
Lightweight quality review of an ADR |
status |
<number> <status> |
Transition ADR status with validation and side effects |
list |
(none) | List all ADRs (same as running adr_index.py --dry-run) |
supersede |
<old-number> <new-number> |
Supersede an old ADR with a new one |
index |
(none) | Regenerate the README.md index |
| (empty) | Auto-detect from conversation context |
If the first word doesn't match an action, treat the entire $ARGUMENTS as a title and default to create.
When auto-invoked (no explicit /adr command), detect the operation from conversation context as before.
Auto-Invoke Triggers
This skill automatically activates when:
- Keywords: "ADR", "architecture decision", "document this decision", "record the decision"
- Editing ADR files: Files in
docs/adr/,doc/adr/,architecture/decisions/,.adr/ - Discussing architectural choices: Framework selection, technology decisions, pattern choices
What This Skill Delivers
1. ADR Creation (Enhanced)
- Gather context from conversation, codebase, and existing ADRs
- Confirm decision topic with user before drafting
- Auto-detect project's ADR directory and template style
- Auto-number ADRs (scan existing, increment)
- Draft populated ADR with real content (not blank template)
- Always append Author's Notes section (2-5 items)
- Offer MADR 4.0 enhancements as optional additions
- Suggest
/adr review <path>after creation
2. Directory Discovery
Search order for ADR directories:
docs/adr/doc/adr/architecture/decisions/.adr/- Create
docs/adr/if none exists
3. Template Detection
Analyze existing ADRs to detect:
- Naming convention:
NNNN-kebab-case-title.mdorNNN-title.md - Section structure: Status, Context, Decision, Consequences
- Optional sections: Decision Drivers, Pros/Cons, Confirmation
4. Index Maintenance
Automatically update README.md with ADR table:
| Number | Title | Status | Date |
|---|
5. Supersession Workflow
When replacing an ADR:
- Mark old ADR status as "Superseded by [ADR-NNNN]"
- Link new ADR with "Supersedes [ADR-NNNN]"
- Update README.md index
6. ADR Review
Lightweight quality check using the adr-critic agent:
- Read ADR at given path (if empty, ask — suggest globbing ADR dirs)
- Spawn adr-critic agent (
subagent_type: "doc:adr-critic")- Pass: full ADR content
- Instruct: "Read Author's Notes first as prioritized review targets"
- Agent evaluates 4 dimensions, returns score + verdict + 3-5 findings
- Present review to user
- Verdicts: Approve | Needs improvement | Needs rethink
- Suggest next steps based on verdict
7. Author's Notes (Confession)
Every ADR gets an ## Author's Notes section after Consequences:
- Shortcuts: What was simplified or hand-waved?
- Assumptions: What was believed but not verified?
- Uncertainties: Which parts had least information?
Target: 2-5 items. Be specific, reference ADR sections.
Lifecycle: Added on create (always) | Read by adr-critic as review targets | Stripped when Status → Accepted (via /adr status) | Preserved on Superseded | Refreshed on major rewrites.
8. Status Transitions
Dedicated command for changing ADR status with validation and side effects:
- Find ADR by number, read current status
- Validate transition — warn on unusual paths (allow but confirm):
- Accepted → Proposed: "Going backwards — re-opening a decided matter"
- → Accepted without prior
/adr review: "Consider reviewing first" - → Superseded directly: "Use
/adr supersedeto link replacement"
- Apply status change, handle side effects:
- → Accepted: Strip
## Author's Notessection entirely
- → Accepted: Strip
- Update README.md index via
adr_index.py
Valid statuses: Proposed | Accepted | Deprecated | Superseded
Core Template Sections
Required (Minimal)
- Status: Proposed | Accepted | Deprecated | Superseded
- Date: ISO 8601 format (YYYY-MM-DD)
- Context and Problem Statement: 2-3 sentences describing the situation
- Decision: What was decided and why
- Consequences: Positive and negative impacts
- Author's Notes: Shortcuts, assumptions, uncertainties (stripped on Accepted)
Optional Enhancements (MADR 4.0)
- Technical Story: Link to issue/spec (e.g.,
#123) - Decision Drivers: Bulleted list of forces/concerns
- Decision Makers: Who made this decision
- Consulted: Stakeholders whose opinions were sought
- Informed: Stakeholders who need to know
- **Cons
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- EXAMPLES.md
- TROUBLESHOOTING.md
- WORKFLOW.md
- scripts/adr_create.py
- scripts/adr_index.py
- scripts/adr_supersede.py
FAQ
Что делает скилл adr?
Create, review, and manage Architecture Decision Records (ADRs) with auto-numbering, template detection, quality review, and index maintenance. Use when user mentions "ADR", "architecture decision", "document this decision", "create ADR", "review ADR", editing ADR files (docs/adr/, doc/adr/, .adr/), or discussing architectural choices and tradeoffs.
Как установить скилл adr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл adr запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…