tech-leads-club/agent-skills/create-adr
Claude Code and agent skill by tech-leads-club/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Creates Architecture Decision Records (ADRs) to document significant architectural choices and their rationale for future team members. Use when the user says "write an ADR", "document this decision", "record why we chose X", "add an architecture decision record", "create an ADR for", or wants to capture the reasoning behind a technical choice so the team understands it later. Do NOT use when the decision hasn't been made yet (use create-rfc instead), for implementation planning (use technical-design-doc-creator), or for general documentation.
Install
npx vskill@latest install tech-leads-club/agent-skills/create-adrSKILL.md
The same SKILL.md was published earlier as tech-leads-club/agent-skills/create-adr.
ADR Creator
You are an expert in creating Architecture Decision Records (ADRs) — concise, durable documents that capture the context, decision, and consequences of significant architectural choices so future team members understand why things are the way they are.
When to Use This Skill
Use this skill when:
- User asks to "write an ADR", "create an ADR", "add an architecture decision record"
- User wants to "document why we chose X", "record this decision", "capture this architectural choice"
- A significant technical decision has been made (or is being finalized) and needs to be recorded
- The team wants to preserve the reasoning behind a choice for future engineers
- User asks "why did we choose X" and the answer should be written down permanently
Do NOT use for:
- Decisions not yet made — use
create-rfcto drive the decision process first - Implementation planning after the decision — use
technical-design-doc-creator - Simple configuration choices or trivial code decisions
- Meeting notes or general documentation
ADR vs RFC — Critical Distinction
| Aspect | ADR | RFC | |
|---|---|---|---|
| Timing | Decision already made (or being finalized) | Before the decision (seeking input) | |
| Purpose | Record for future team members | Proposal seeking approval | |
| Audience | Engineers joining months or years later | Current stakeholders | |
| Length | Short — 200–500 words | Long — thorough comparison | |
| Mutability | Immutable — superseded, never edited | Iterative — evolves during review | |
| Tone | Historical record | Deliberative proposal |
If the user says "I need to decide whether to do X" → use create-rfc. If the user says "We decided to do X, let me document it" → use this skill.
Language Adaptation
CRITICAL: Always generate the ADR in the same language as the user's request. Detect the language automatically.
- Keep technical terms in English when appropriate (e.g., "ADR", "API", "microservices")
- All section headers and content should be in the user's language
- Company/product names remain in original form
ADR Format Selection
Three formats are widely used. Detect the right one from context, or ask:
| Format | Best For | Length | |
|---|---|---|---|
| MADR (Markdown ADR) | Teams that want structured options comparison | Medium | |
| Nygard (original) | Minimal, fast recording; obvious decisions | Short | |
| Y-Statement | Inline documentation, very compact contexts | One paragraph |
Default to MADR unless the user specifies otherwise or the decision is very simple.
Interactive Workflow
Step 1: Gather Context (if not provided)
If the user provides minimal context, use AskQuestion to collect essential information:
Step 2: Validate Mandatory Fields
MANDATORY fields — ask if missing:
- Decision title (noun phrase, not a question — e.g., "Use Redis for session storage")
- Date of the decision (or today's date)
- Status (Accepted / Proposed / Deprecated / Superseded)
- Context — the forces, constraints, and situation that made this decision necessary
- The decision itself — what was chosen and why
- Consequences — what becomes easier, harder, or different as a result
RECOMMENDED fields:
- Decision drivers — the key criteria or constraints
- Options considered — what alternatives were evaluated
- Pros/cons per option — honest trade-off assessment
- Decision outcome rationale — why this option over the others
- Links — related ADRs, RFCs, tickets, or documentation
If any mandatory fields are missing, ask IN THE USER'S LANGUAGE before generating the document.
Step 3: Assign ADR Number
Scan the existing ADR directory for the next sequential number:
- Check if an ADR directory exists (
docs/adr/,docs/decisions/,.adr/, oradr/) - Find the highest existing number
- Assign the next number (e.g., if ADR-007 exists, this becomes ADR-008)
- If no directory exists, start at ADR-001 and suggest creating the directory
Step 4: Generate the ADR
Generate the ADR following the format selected in Step 1.
Step 5: Offer File Placement
After generating, ask where to save it:
Document Templates
MADR Format (Default)
Nygard Format (Minimal)
Y-Statement Format (Compact)
ADR Quality Checklist
Before finalizing, verify:
- [ ] Title is a noun phrase describing the decision (not a question, not a vague label)
- [ ] Date is included (decisions without dates lose context quickly)
- [ ] Status is set correctly — Accepted, Proposed, Deprecated, or Superseded
- [ ] Context explains the forces that made this decision necessary, not just what was done
- [ ] Decision is stated directly and tied to the context
- [ ] Consequences include honest trade-offs — not just positives
- [ ] Options (MADR format) include at least 2 alternatives actually considered
- [ ] Supersedes / superseded by links are included when applicable
- [ ] File follows naming convention:
NNN-kebab-case-title.md - [ ] Number is sequential in the ADR directory
ADR File Naming Convention
- Zero-padded numbers:
001,002, ...099,100 - Kebab-case title
.mdextension- Common directories:
docs/adr/,docs/decisions/,adr/,.adr/
Common Anti-Patterns to Avoid
Title as a Question
BAD: # ADR-001: Should we use PostgreSQL?
GOOD: # ADR-001: Use PostgreSQL for Primary Storage
Titles should record the decision, not the question. Future readers need to know what was decided, not what was considered.
Vague Context
BAD:
GOOD:
Context should explain the forces — why wasn't the alternative obviously better?
Consequences Without Trade-offs
BAD:
GOOD:
Honest trade-offs are what make ADRs valuable years later.
Editing Instead of Superseding
BAD: Editing an old ADR to change the decision after the fact.
GOOD: Creating a new ADR with Status: Superseded by ADR-{NNN} on the old one and linking back.
ADRs are historical records. The old decision was correct given what was known at the time. Superseding preserves that context.
Missing the "Why Not" Rationale
BAD:
GOOD:
The rationale is why this option and not the others — not just what was chosen.
Important Notes
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/skills-catalog/skills/(creation)/create-adr/SKILL.md
Popularity
- Repository stars
- 4,626
- Repository forks
- 415
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tech-leads-club/agent-skills/create-adr)