recording-architecture-decisions
Skill0 starsChanged 25 days agoApache-2.0View on GitHub
Record significant architectural decisions in docs/adr/NNNN-slug.md only after a decision satisfies all three of Pocock's triple-filter gates: hard to reverse, surprising without context, and the result of a real trade-off between genuine alternatives. If any one filter fails, do not write an ADR.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- GanyuanRan/Aegistheir own version, first seen Apr 30, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- GanyuanRan/Aegis★ 1.4ksame 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 repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- configuration-managementSkill
- designing-clear-data-displaysSkill
- lake-conventionsSkill
- maintaining-project-contextSkill
- maintaining-the-common-operating-pictureSkill
- maintaining-ubiquitous-languageSkill
- python-venv-managementSkill
- shift-left-testingSkill
- traversing-the-knowledge-baseSkill
- using-topic-branchesSkill
- verifying-claimsSkill
- writing-simple-and-directSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
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 21
If any one of these three is missing, do not write an ADR: Document the decision in:
- Distinctive: line 57
When a decision lands that you believe is ADR-worthy:
- Distinctive: line 63
Cross-link: If the decision references prior ADRs, link them.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Recording Architecture Decisions
Architecture Decision Records (ADRs) capture decisions that future readers will need context for: decisions that are hard to undo, that look strange without explanation, and that came from a real choice between competing options. They are not a log of all decisions. They are a log of decisions that justify the cost of being written down.
The format and discipline are adapted from Matt Pocock's mattpocock/skills/skills/engineering/grill-with-docs/ADR-FORMAT.md, verbatim on the triple filter because it is the part that prevents ADR sprawl.
When to Use
Invoke this skill after a decision is made that satisfies all three of the following gates:
- Hard to reverse — the cost of changing your mind later is meaningful (rewriting many files, breaking downstream consumers, losing data, requiring coordinated migration).
- Surprising without context — a future reader looking at the code will wonder "why did they do it this way?" with no obvious answer.
- Result of a real trade-off — there were genuine alternatives on the table, and one was picked for specific reasons over others that also had merit.
If any one of these three is missing, do not write an ADR. Document the decision in:
- A commit message (for code-level choices).
- A session doc (for project-level choices that are easily reversible).
- A design doc (for in-progress thinking that isn't yet a decision).
- An inline comment (for surprising choices that are easy to reverse).
The Triple Filter as a Gate
Examples of decisions that pass the filter and warrant an ADR:
- Adopting append-mode in the doctrine propagation script over overwrite-mode (hard to reverse: appended notifications accumulate; surprising: append is unusual for notification systems; real trade-off: debt visibility vs notification volume).
- Choosing single-process SQLite over Postgres for a CLI tool (hard to reverse: schema migration to multi-user; surprising: most apps default to Postgres; real trade-off: operational simplicity vs concurrency).
- Splitting a monolithic agent into proposer + code-reviewer with explicit debate (hard to reverse: agent definitions and team templates change; surprising: debate is an unusual pattern; real trade-off: single-perspective speed vs multi-perspective rigor).
Examples that fail the filter (do not write ADRs for these):
- Picking pytest over unittest (reversible by config change; not surprising; routine choice).
- Using
pathliboveros.path(reversible per-file; not surprising in modern Python; not a real trade-off, pathlib wins). - Renaming a file (reversible, contextual, not architectural).
- Adopting a coding-style rule (reversible by re-linting, documented in linter config).
File Naming
ADRs live in docs/adr/NNNN-slug.md where:
NNNNis a zero-padded four-digit sequential number (0001,0002,0003, ...). Use the next unused number. Never reuse a number.slugis a short kebab-case identifier for the decision (0001-doctrine-propagation-append-mode.md,0007-skills-directory-form.md).
Format
See docs/adr/ADR-FORMAT.md for the canonical template.
Briefly: every ADR has Status, Date, the triple-filter check, Context, Decision, Alternatives Considered, Consequences, and References.
Workflow
When a decision lands that you believe is ADR-worthy:
- Run the triple filter explicitly. Out loud or in a comment, state which way each of the three gates falls. If any fails, stop; document the decision elsewhere.
- Find the next ADR number.
ls docs/adr/ | grep -E '^[0-9]{4}-' | tail -1shows the most recent; the filter is needed becauseADR-FORMAT.mdsorts after the numbered files. Increment. - Draft the file following
docs/adr/ADR-FORMAT.md. Fill the triple-filter checkboxes at the top. Be specific about the alternatives: naming what was rejected matters as much as naming what was chosen. - Confirm with the user. ADRs become permanent project history. Always confirm before committing.
- Cross-link. If the decision references prior ADRs, link them. If it supersedes a prior decision, mark the prior ADR's status as "Superseded by ADR-NNNN".
- Commit and propagate. ADR additions are doctrine candidates, so consider whether the decision affects downstream repos. If so, draft a
docs/doctrine-updates.mdentry. If not, just commit.
Anti-Patterns to Avoid
- ADR sprawl — writing ADRs for every choice. The filter exists to prevent this.
- Retroactive ADRs without alternatives — if you cannot remember what the alternatives were, you cannot honestly write the "Alternatives Considered" section. Skip the ADR.
- ADRs as planning docs — ADRs record decisions that have been made. Use design docs or plans for in-progress thinking.
- ADRs as advocacy — the Consequences section should include negative consequences honestly. If an ADR reads like marketing, the rigor is missing.
- Editing past ADRs — once accepted, ADRs are append-only. To change a decision, write a new ADR that supersedes the old one.
Sources
- Matt Pocock,
mattpocock/skills/skills/engineering/grill-with-docs/ADR-FORMAT.md— the triple filter, adopted verbatim. - Michael Nygard's original ADR pattern (2011) — the format ancestor.
- This project's
docs/adr/ADR-FORMAT.md— the template this skill uses.
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.

