adr-writer
Skill0 starsChanged 8 months agoMITView on GitHub
Write, validate, and commit Architecture Decision Records in MADR 4.0.0 format. Use when user says 'write an ADR', 'create an ADR', 'document this decision', 'ADR for X', 'architecture decision record for X', 'record this decision', 'document the decision to use X', or wants to formally capture an architectural choice. Do NOT trigger on 'what ADR covers X?', 'show me the ADR for Y', 'does this violate an ADR?', or 'check ADR compliance' - those are lookup/audit tasks.
10 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- shimo4228/claude-harnesstheir own version, first seen Sep 27, 2026
- shimo4228/akc-cycletheir own version, first seen Sep 26, 2026
- llopresto87/Cypresstheir own version, first seen Sep 22, 2026
- imtiazrayhan/agentscamp-librarytheir own version, first seen Aug 25, 2026
- codebygarv/Ai-skillstheir own version, first seen Aug 16, 2026
- kuju63/skillstheir own version, first seen Aug 1, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- michelve/hugin-cowork★ 191% same
Wrote their own version · 9
- oxbshw/LLM-Agents-Ecosystem-Handbook★ 550same name
- llopresto87/Cypress★ 95same name
- 45ck/software-architecture-skills★ 26same name
- codebygarv/Ai-skills★ 26same name
- shimo4228/claude-harness★ 3same name
- brpaz/agent-skills★ 1same name
- imtiazrayhan/agentscamp-library★ 1same name
- shimo4228/akc-cycle★ 1same name
- kuju63/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- skills/react-best-practices/AGENTS.mdAGENTS.md
- accessibilitySkill
- automatic-code-reviewSkill
- component-visualizerSkill
- create-tasksSkill
- dsai-componentsSkill
- dsai-figmaSkill
- dsai-stylingSkill
- dsai-toolsSkill
- figma-code-connect-componentsSkill
- figma-create-design-system-rulesSkill
- figma-create-new-fileSkill
- figma-generate-designSkill
- figma-generate-librarySkill
- figma-implement-designSkill
- figma-useSkill
- miro-mcpSkill
- nodejsSkill
- playwright-skillSkill
- prismaSkill
- react-best-practicesSkill
- reactSkill
- route-testerSkill
- setupSkill
- skill-creatorSkill
- skill-developerSkill
- sync-schemasSkill
- task-checkSkill
- web-design-guidelinesSkill
- writing-testsSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Every ADR must contain all five mandatory sections.
- Very specific: line 67
Read docs/decisions/README.md - find highest NNNN
- Very specific: line 70
Always update the index table in docs/decisions/README.md after writing the file
- Distinctive: line 83
When replacing an existing ADR (triggered by violation checker or user intent):
- Very specific: line 92
If the user asks for external evidence or benchmarks to support the decision, invoke the web-research-specialist agent before finalizing.
- Very specific: line 96
When invoked with the supersedes: NNNN argument (either by user or from check-adr-violations.prompt.md), the $ARGUMENTS variable contains …
- Very specific: line 103
Add supersedes: "0005 - Old Title" to the new ADR frontmatter
- Distinctive: line 104
Update the index table in README.md to reflect the supersession
- Distinctive: line 106
If no arguments are provided, this is a new ADR with no supersession relationship.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
This skill uses extended thinking for complex architectural trade-off analysis. ultrathink
ADR Writer
Writes complete, validated Architecture Decision Records in MADR 4.0.0 format and commits them to docs/decisions/. Follow write-adr.prompt.md for the full 10-step workflow.
When to Activate
Activate on:
- "write an ADR for X"
- "create an ADR"
- "document this decision"
- "ADR for X"
- "architecture decision record for X"
- "record this decision"
- "document the decision to use X"
- "we decided to use X, write that up"
- Invoked from
check-adr-violations.prompt.mdwith asupersedes: NNNNparameter
Do NOT activate on:
- "what ADR covers X?" → lookup task, read the index
- "show me the ADR for Y" → lookup task, read the file
- "does this violate an ADR?" → audit task, use
check-adr-violations.prompt.md - "check ADR compliance" → audit task, use
check-adr-violations.prompt.md
MADR 4.0.0 - Mandatory Sections
Every ADR must contain all five mandatory sections. Missing any one = invalid.
| Section | Required | Notes |
| YAML frontmatter | ✅ | status + date always present |
| Context and Problem Statement | ✅ | 2–4 sentences, factual, project-specific |
| Considered Options | ✅ | 2–4 options, concise noun phrases |
| Decision Outcome | ✅ | Must start with Chosen option: "X", because |
| Consequences | ✅ | At least one Good + one Bad bullet |
Phrasing Rules (non-negotiable)
Decision Outcome - exact format:
Chosen option: "{option name}", because {justification}.Consequences bullets - exact format:
- Good, because {positive consequence}.
- Bad, because {negative consequence}.
- Neutral, because {neutral consequence}.Numbering Convention
- Read
docs/decisions/README.md- find highestNNNN - Increment by 1
- Filename:
NNNN-short-title.md(lowercase kebab-case, max 5 words) - Always update the index table in
docs/decisions/README.mdafter writing the file
Status Values
| Status | When to use |
accepted | Decision is made and implemented (most common) |
proposed | Decision under discussion, not yet implemented |
superseded | Replaced by a newer ADR - add superseded-by: NNNN - Title |
deprecated | No longer relevant, not replaced |
Supersede Flow
When replacing an existing ADR (triggered by violation checker or user intent):
- New ADR frontmatter gets
supersedes: "NNNN - Old Title" - Old ADR frontmatter changes to
status: superseded+superseded-by: "NNNN - New Title" - Old ADR row in
docs/decisions/README.mdstatus column →superseded - New ADR row added to index as
accepted
Optional: Web Research
If the user asks for external evidence or benchmarks to support the decision, invoke the web-research-specialist agent before finalizing. Use its findings in the Consequences section or a More Information section.
Arguments
When invoked with the supersedes: NNNN argument (either by user or from check-adr-violations.prompt.md), the $ARGUMENTS variable contains the ADR number to supersede.
Example invocation: /adr-writer supersedes: 0005
The argument is parsed to:
- Mark the old ADR (0005) as
status: superseded - Add
supersedes: "0005 - Old Title"to the new ADR frontmatter - Update the index table in README.md to reflect the supersession
If no arguments are provided, this is a new ADR with no supersession relationship.
Session Tracking
This skill logs the session ID using ${CLAUDE_SESSION_ID} for correlation:
ADR creation session: ${CLAUDE_SESSION_ID}This allows tracking which ADRs were written in the same conversation and correlating with git commits when troubleshooting.
Action
Invoke .github/prompts/write-adr.prompt.md and follow its steps in order. Do not shortcut or skip the validation step.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

