to-adr
Skill19 starsChanged 33 days agoMITView on GitHub
Record an Architecture Decision Record (ADR) — 1–3 sentences on what was decided and why. Use when user says "create an ADR", "record this decision", or just made an architecturally significant choice. Don't use for forward-looking specs (/to-spec) or repo conventions (CLAUDE.md).
5 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- protokol11/skillsedited, first seen Nov 8, 2026
- Integralist/agent-skillstheir own version, first seen Nov 6, 2026
- bpappin/skillstheir own version, first seen Aug 2, 2026
- jeremymcs/skillstheir own version, first seen May 16, 2026
- chrisetheridge/skillstheir own version, first seen May 11, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- protokol11/skills★ 123% same
Wrote their own version · 4
- Integralist/agent-skills★ 23same name
- jeremymcs/skills★ 8same name
- chrisetheridge/skills★ 4same name
- bpappin/skills★ 1same 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 repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a11y-auditSkill
- architecture-auditSkill
- buildSkill
- checkSkill
- codebase-designSkill
- code-reviewSkill
- commitSkill
- create-skillSkill
- debateSkill
- debugSkill
- deps-auditSkill
- domain-modelingSkill
- feedbackSkill
- frontend-ui-engineeringSkill
- grillSkill
- guideSkill
- handoffSkill
- hardenSkill
- i18nSkill
- perf-auditSkill
- prototypeSkill
- refactorSkill
- researchSkill
- retroSkill
- reviewSkill
- reviseSkill
- safe-repoSkill
- setupSkill
- source-drivenSkill
- tddSkill
- teachSkill
- to-docSkill
- to-prSkill
- to-releaseSkill
- to-specSkill
- to-stackSkill
- to-ticketsSkill
- triageSkill
- visual-reviewSkill
- wait-whatSkill
- zoom-outSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
If any criterion is missing, say so and skip the ADR.
- Very specific: line 39
If docs/adr/ exists, scan for the highest NNNN-*.md filename and increment.
- Distinctive: line 40
If it doesn't exist, create it lazily — only now that there's something to write.
- Very specific: line 45
Write docs/adr/NNNN-<kebab-slug>.md using the template below.
“Common” is measured: kept by at least 6 in 10 of the 5 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
To ADR
Capture architectural decisions as durable, minimal records future-you (and future-Claude) can read instead of guessing from code.
Gate — write an ADR only if all three are true
- Hard to reverse — changing your mind later costs meaningful effort (migration, rewrite, vendor lock-in).
- Surprising without context — a future reader will look at the code and wonder "why did they do it this way?"
- Real trade-off — there were genuine alternatives, and you picked one for specific reasons.
If any criterion is missing, say so and skip the ADR. Easy-to-reverse decisions get reversed; obvious decisions don't need recording; non-decisions ("we did the only thing that worked") aren't ADRs.
Cheap rejections prevent ADR sprawl. When in doubt, refuse and ask the user to confirm the decision really meets all three.
What qualifies
- Architectural shape — "monorepo," "event-sourced write model + projected read model"
- Integration patterns between modules/contexts — "Ordering and Billing communicate via events, not synchronous HTTP"
- Technology choices with lock-in — database, message bus, auth provider, deployment target. Not every library — only ones that take a quarter to swap.
- Boundary and ownership decisions — "Customer data is owned by Customer; other contexts reference by ID."
- Deliberate deviations from the obvious path — "manual SQL instead of an ORM because X." Stops the next engineer "fixing" a deliberate choice.
- Constraints not visible in code — "no AWS due to compliance," "must respond <200ms due to partner SLA."
- Rejected alternatives when the rejection is non-obvious — considered GraphQL, picked REST for subtle reasons. Otherwise someone re-suggests it in six months.
Workflow
1. Verify the gate
Restate the decision in one sentence. Check it against all three criteria explicitly. If it fails, tell the user which criterion failed and stop.
2. Locate docs/adr/
- If
docs/adr/exists, scan for the highestNNNN-*.mdfilename and increment. - If it doesn't exist, create it lazily — only now that there's something to write.
- Numbering: zero-padded 4 digits (
0001,0002, …).
3. Draft
Write docs/adr/NNNN-<kebab-slug>.md using the template below. Slug should be short and search-friendly (postgres-for-write-model, not decision-about-database-choice).
# {Short title of the decision}
{1–3 sentences: context, what was decided, and why.}That's it. An ADR can be a single paragraph. The value is recording that a decision was made and why — not filling out sections.
4. Optional sections — include only when they add genuine value
Most ADRs won't need any of these.
- Status frontmatter (
proposed | accepted | deprecated | superseded by ADR-NNNN) — useful when decisions get revisited. - Considered Options — only when rejected alternatives are worth remembering (e.g., "considered GraphQL" so it doesn't get re-suggested).
- Consequences — only when non-obvious downstream effects need calling out.
5. Show the user
Print the file path and the rendered content. Don't auto-commit — let the user stage it (matches their git rules). The team needs a full ADR on Confluence → suggest /hb:to-doc --adr <url>.
Rules
- Title is the decision, not the question. "Use Postgres for write model" — not "Which database for write model?"
- Sentences should be tight and present-tense. No hedging, no "we are considering."
Example
✅ Good — passes gate:
0003 — Manual SQL instead of an ORM
The query patterns are write-heavy and join-shaped in ways ORMs handle poorly; we hit perf cliffs in the spike. We accept the boilerplate cost in exchange for predictable plans and explicit transactions. Considered Prisma and Drizzle.
❌ Reject — fails "hard to reverse":
"We decided to use Prettier for formatting."
Reversible in one PR. Not an ADR — that's a .prettierrc and maybe a line in CLAUDE.md.
❌ Reject — fails "surprising without context":
"We decided to write tests."
Nobody will wonder why.
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.

