adr-writing
Skill4 starsChanged 5 months agoMITView on GitHub
Use when making or recording an architecture decision — choosing between designs, libraries, data structures, or output formats; when /adr is invoked; or when amending or reversing a past decision recorded in docs/adr/.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- ivanrvpereira/.agentstheir own version, first seen Oct 13, 2026
- marmelab/atomic-crmtheir own version, first seen Oct 8, 2026
- Diviner-Dojo/agent_framework_templatetheir own version, first seen Aug 18, 2026
- KhaledSaeed18/dotclaudetheir own version, first seen Jul 4, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- marmelab/atomic-crm★ 1.5ksame name
- ivanrvpereira/.agents★ 19same name
- KhaledSaeed18/dotclaude★ 7same name
- Diviner-Dojo/agent_framework_template★ 4same 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 repository8 other files it gives its agents.
- examples/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- benchmark-protocolSkill
- release-processSkill
- tree-sitter-queriesSkill
- atlas-orientSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
One page maximum: If it needs more, the decision isn't crisp yet.
“Common” is measured: kept by at least 6 in 10 of the 4 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
Writing ADRs
What rises to ADR level
The test: would you forget the reasoning after two weeks away? This project runs at ~10 hrs/week with long gaps — anything that passes that test gets an ADR. Typical: dependency choices, data-structure strategies (ADR 0002 is the canonical example), output-format contracts, evaluated-and-rejected alternatives (the rejection reasoning is the valuable part). Not ADR-level: naming, formatting, anything clippy or rustfmt decides, reversible one-liners.
Template
# ADR NNNN — <Title: the decision as a noun phrase or imperative>
## Context
The forces in play: requirements, constraints, what was tried or considered
and why it lost. Written so a reader with no session context understands
why a decision was needed at all.
## Decision
What we chose, in full sentences, specific enough to act on. "We use X"
not "we should consider X".
## Consequences
What becomes easier, harder, or constrained — honest about the costs, not
a sales pitch. Include the mitigation if a known weakness has one.Rules
- One file per decision:
docs/adr/NNNN-slug.md, where NNNN is the next number (4 digits, zero-padded — checkls docs/adr/for the highest existing). - One page maximum. If it needs more, the decision isn't crisp yet.
- Append-only, enforced by a PreToolUse hook: never edit an existing ADR. To amend or reverse one, write a NEW ADR that names the one it supersedes ("Supersedes ADR 0003").
- Number and title go in the H1; the SessionStart hook surfaces the last three titles, so make titles self-explanatory.
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.

