adr
FreeNo executable scriptsNot checkedDocument architectural decisions in standardized ADR format. This skill should be used when making significant technical decisions, choosing between…
by mhylle★ 20 GitHub starsAbout this skill
Architectural Decision Records (ADR)
Contents
- Design Principles
- When to Use This Skill
- ADR Location and Naming
- Getting the Next ADR Number
- ADR Status Values
- Creating an ADR
- Workflow
- Integration with Other Skills
- Response Format (for subagent use)
- Listing Existing ADRs
- Searching ADRs
- Deprecating an ADR
- Quality Checklist
- Best Practices
- Resources
Reference files (open one when a step points to it):
references/adr-template.md: ADR-NNNN: [Title]references/index-template.md: Architectural Decision Records
Document significant architectural and technical decisions in a standardized, searchable format optimized for LLM context efficiency.
Design Principles
Context Conservation
ADRs are designed for efficient LLM consumption:
- Small, focused files - One decision per ADR, minimal content
- Quick Reference block - First 5 lines summarize the entire ADR
- Central INDEX.md - Single file listing all ADRs with one-line summaries
LLM Reading Strategy
When consulting ADRs, follow this tiered approach:
TIER 1: Read INDEX.md (one file, all summaries)
↓ Identify potentially relevant ADRs
TIER 2: Read Quick Reference block only (first 10 lines of candidate ADRs)
↓ Confirm relevance
TIER 3: Read full ADR content (only when details are needed)
Implementation:
# Tier 1: Scan index
Read("docs/decisions/INDEX.md")
# Tier 2: Quick reference only (use limit parameter)
Read("docs/decisions/ADR-0001-title.md", limit=10)
# Tier 3: Full content (only if needed)
Read("docs/decisions/ADR-0001-title.md")
When to Use This Skill
Directly invoked when:
- Making a significant technical decision
- Choosing between architectural approaches
- Establishing patterns or conventions
- Documenting why a particular technology was selected
Automatically invoked by other skills when:
- create-plan: Design decision is made in Phase 4
- implement-plan: Mismatch discovered or architectural choice made during implementation
- brainstorm: Key decisions identified during analysis
ADR Location and Naming
Directory: docs/decisions/
Naming Convention: ADR-NNNN-short-title.md
NNNN: Zero-padded sequential number (0001, 0002, etc.)short-title: Lowercase, hyphenated description (max 50 chars)
Examples:
ADR-0001-use-jwt-for-authentication.mdADR-0002-postgresql-over-mongodb.mdADR-0003-event-sourcing-for-audit.md
Getting the Next ADR Number
Before creating an ADR, determine the next sequence number:
# Find highest existing ADR number
ls docs/decisions/ADR-*.md 2>/dev/null | sort -t- -k2 -n | tail -1 | grep -oP 'ADR-\K\d+' || echo "0000"
If no ADRs exist, start with 0001.
ADR Status Values
| Status | Meaning |
|---|---|
| Proposed | Under consideration, not yet decided |
| Accepted | Decision made, ready for implementation |
| Deprecated | Was accepted, now superseded |
| Superseded | Replaced by another ADR (link to replacement) |
Creating an ADR
Required Information
Gather these inputs (ask user if not provided):
| Field | Description | Required |
|---|---|---|
| Title | Short, descriptive title | Yes |
| Context | Why is this decision needed? | Yes |
| Options | What alternatives were considered? | Yes |
| Decision | What was decided? | Yes |
| Rationale | Why this option? | Yes |
| Consequences | What are the implications? | Yes |
| Related ADRs | Links to related decisions | If applicable |
ADR Template
Use this format (also in references/adr-template.md):
# ADR-NNNN: [Title]
> **Quick Reference** | Status: [Accepted] | Date: [YYYY-MM-DD]
> **Decision**: [One sentence: what was decided]
> **Context**: [One sentence: why this decision was needed]
> **Alternatives**: [Rejected options, comma-separated]
> **Impact**: [Key areas affected, comma-separated]
---
## Context
[2-3 sentences max. The problem or opportunity being addressed.]
## Decision
**We will use [chosen option].**
[1-2 sentences explaining the decision.]
## Alternatives Considered
| Option | Pros | Cons | Why Not |
|--------|------|------|---------|
| [Option A] | [Key pro] | [Key con] | [Brief reason] |
| [Option B] | [Key pro] | [Key con] | [Brief reason] |
## Consequences
- **Positive**: [Key benefit]
- **Negative**: [Key trade-off]
- **Requires**: [What must be done as a result]
## Related
- [ADR-XXXX](./ADR-XXXX-title.md): [Relations
Install adr in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the adr skill do?
Document architectural decisions in standardized ADR format. This skill should be used when making significant technical decisions, choosing between approaches, establishing patterns, or when other skills (create-plan, implement-plan, brainstorm) identify decisions that need documentation. Triggers on "document decision", "create ADR", "architectural decision", or automatically when invoked by other skills during planning and implementation.
How do I install the adr skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the adr skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
by 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…
by Anthropicxlsx
Use 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…
by Anthropicpptx
Use 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…
by Anthropic