architecture-decision-records
Skill3 starsChanged 3 months agoMITView on GitHub
Create, update, and review Architecture Decision Records (ADRs) using the Y-Statement format. Use when making a significant architectural decision, choosing between implementation approaches, evaluating trade-offs, or capturing immutable architectural history. Triggers include "write an ADR", "document this decision", "architecture decision", "Y-statement", or "record this trade-off".
42 other projects use a version of this.
Adopted by
Most recently taken up by
- Lukk17/agent-standardstheir own version, first seen Oct 5, 2026
- hahuyhungdev/ai-coding-configtheir own version, first seen Oct 2, 2026
- enes9103/my-claude-agents-skillstheir own version, first seen Sep 28, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Sep 21, 2026
- beelabstudio/aitheir own version, first seen Sep 20, 2026
- mcabreradev/hermes-sdd-agencytheir own version, first seen Sep 17, 2026
Used with
Projects with it also use pytorch-patterns, adding-docker and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
mryeastcodeSkillpytorch-patterns
PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.
Also in 6 projects that use this
witi-projectsSkilladding-docker
Dockerize an application with a production-ready Dockerfile, docker-compose setup, and .dockerignore. Use when the user says "/adding-docker", "adding docker", or asks about adding docker.
Also in 3 projects that use this
witi-projectsSkilladding-error-tracking
Add Sentry error tracking, performance monitoring, and source maps to a web application. Use when the user says "/adding-error-tracking", "adding error tracking", or asks about adding error tracking.
Also in 3 projects that use this
tpavanipradeepSkillai-regression-testing
Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code.
Also in 7 projects that use this
InfopibeSkillcontinuous-agent-loop
Patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls.
Also in 7 projects that use this
- +7 more from witi-projects
Other versions42 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 42
- loulanyue/awesome-claude-notes★ 272same name
- templetongroup/radiant★ 113same name
- Jamkris/everything-gemini-code★ 87same name
- tranhieutt/software_development_department★ 72same name
- kumaran-is/claude-code-onboarding★ 36same name
- ricoberger/dotfiles★ 19same name
- woxiangyangzhimao/skills★ 14same name
- noah-sheldon/ai-dev-kit★ 13same name
- xfstudio/skills★ 9same name
- zero-click/zero-ratchet★ 8same name
32 more not listed
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 repository86 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adrSkill
- adzic-bddSkill
- agent-md-refactorSkill
- agent-muxSkill
- agent-role-impersonatorSkill
- agilquest-reservationsSkill
- ai-text-humanizerSkill
- ast-grepSkill
- atacSkill
- aws-cliSkill
- bart-adversarial-reviewerSkill
- bddSkill
- branch-doctorSkill
- c4-architectureSkill
- c4Skill
- claude-sub-agentSkill
- codemap-config-setupSkill
- codemap-exploreSkill
- codemap-handoffSkill
- codemap-hub-safetySkill
- codemapSkill
- commitSkill
- copilot-sub-agentSkill
- daily-standupSkill
- daily-statusSkill
- debugSkill
- design-thinkingSkill
- doctorSkill
- docx-word-processorSkill
- farley-tddSkill
- forensicsSkill
- gemini-sub-agentSkill
- git-commit-formatterSkill
- git-forensicsSkill
- github-actions-permissionsSkill
- github-cliSkill
- git-repo-discoverySkill
- git-safety-guardrailsSkill
- harness-idpSkill
- humanizeSkill
- iteration-plannerSkill
- jira-issue-managerSkill
- justfile-assistantSkill
- kiro-sub-agentSkill
- lessons-learnedSkill
- lessonsSkill
- lisa-planning-agentSkill
- lovejoy-release-agentSkill
- lsp-code-analysisSkill
- macro-to-microSkill
- marge-product-agentSkill
- meeting-notesSkill
- mermaid-diagram-generatorSkill
- modern-cli-overridesSkill
- native-web-searchSkill
- obsidian-notetakerSkill
- outlook-headlessSkill
- pdf-document-processorSkill
- pi-sub-agentSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 40 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create ADRs that capture *why* an architectural decision was made, the forces balanced, and the trade-offs accepted—not merely *what* was …
- Distinctive: line 12
Every ADR generated or reviewed must adhere to these five universal tenets:
- Distinctive: line 18
Reversibility & Immutability: Treat decisions as two-way doors: preserve optionality with seams and define explicit revisit criteria.
- Distinctive: line 24
Active Interrogation: When working interactively with a user, if downsides, risks, or alternatives are omitted, prompt for them before …
- Distinctive: line 29
Decomposition Gate: If a user requests a sprawling decision, propose breaking it down into distinct, single-focus ADRs before drafting.
- Distinctive: line 35
Before finalizing an ADR, the agent must self-critique against these common architectural traps:
- Distinctive: line 102
Document how the decision is reified and mechanically enforced in code or CI.
- Distinctive: line 104
Check against the 5 Core Tenets above.
- Distinctive: line 105
Run the Uninformed Reader Test: Can an engineer with zero prior context understand the problem, constraints, and why we chose this in under …
- Very specific: line 108
If an index.md or README.md exists in the ADR directory, append a table row with the new ADR's ID, Title, Status, and Date.
- Distinctive: line 114
When asked to review an existing ADR:
“Common” is measured: kept by at least 6 in 10 of the 40 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
Architecture Decision Records
Create ADRs that capture why an architectural decision was made, the forces balanced, and the trade-offs accepted—not merely what was implemented.
Core Principles: The 5 Tenets
Every ADR generated or reviewed must adhere to these five universal tenets:
- Intent over Mechanism: Frame decisions around domain capabilities and architectural invariants, not tool brands (e.g., "Ephemeral Request De-duplication" vs. "Use Redis"). The intent must hold even if tooling changes.
- Reification over Tribal Memory: Architecture is what the system mechanically enforces, not what people remember. Every decision must anchor in code: explicit domain types, module boundaries, automated CI fitness functions (e.g., ArchUnit, import linter rules), contract tests, or telemetry alarms.
- Honest Trade-offs & Real Alternatives: Zero "free lunches." Every choice incurs costs (operational debt, latency, lock-in). Evaluate genuine runners-up and state the concrete driver that disqualified them.
- Advice Process over Gatekeepers: Decentralize decisions with transparent alignment rather than committee bottlenecks. Autonomously own choices, but explicitly record who was consulted (for expertise) and who is informed (for impact).
- Reversibility & Immutability: Treat decisions as two-way doors: preserve optionality with seams and define explicit revisit criteria. Once accepted, records are immutable history—supersede with a new ADR, never rewrite.
(Enforced via Singular Focus & Plain Language: exactly one decision per document, passing the 3-minute Uninformed Reader test in repository-co-located Markdown).
Agent Directives (Operational Guardrails)
- Active Interrogation: When working interactively with a user, if downsides, risks, or alternatives are omitted, prompt for them before writing:
- "What are the primary trade-offs, operational burdens, or technical debt accepted with this choice?"
- "Who was consulted and who needs to be informed?"
- "What was the runner-up alternative and why was it rejected?"
- Downside Gate: Refuse to finalize an ADR that lists only positive consequences.
- Decomposition Gate: If a user requests a sprawling decision, propose breaking it down into distinct, single-focus ADRs before drafting.
Anti-Patterns & Red Flags (STOP and Correct)
Before finalizing an ADR, the agent must self-critique against these common architectural traps:
| Anti-Pattern | Symptom / Red Flag | Required Correction |
| The "God Decision" | Multiple compound choices (e.g., database + caching + auth in one ADR). | Decompose: One ASR per document. Split into independent, linked ADRs. |
| The Change Log | Reading like a sprint recap or git commit log of tasks performed. | Refocus: Strip task history. ADRs document decision forks, not task execution. |
| The Jargon Fortress | Heavy tribal acronyms, insider shorthand, and unstated context. | Apply Uninformed Reader Test: Rewrite crisply so a newcomer understands the forces in 3 minutes. |
| The Free Lunch | Glowing benefits with only trivial/cosmetic cons ("minor learning curve"). | Enforce Trade-offs: Actively identify operational debt, blast radius, or performance costs accepted. |
| The Strawman | Ridiculous alternatives designed only to make the chosen option look good. | Fair Representation: List genuine runners-up and give their strongest arguments fair weight. |
| The Implementation Manifesto | Long code blocks, task steps, and migration runbooks. | Extract to Issues/PRs: Document the architectural invariant and reification; delegate task steps to epics. |
When to Write an ADR
Write one when:
- Choosing between two or more valid implementation approaches with distinct trade-offs
- Adding, changing, or removing a public API, service boundary, or subsystem contract
- Accepting technical debt or operational burden that future maintainers will question
- Introducing a new technology, architectural pattern, or paradigm
- Deviating from an established codebase pattern with good reason
Skip for:
- Routine bug fixes with an obvious solution
- Cosmetic, formatting, or stylistic changes
- Easily reversible, low-stakes implementation details
The Y-Statement Format (The Decision Anchor)
Format the Y-Statement as an 8-row scannable table:
| Dimension | Detail |
| Context | [Situation driving the decision — link to baseline evidence] |
| Constraint(s) | [Hard technical, budget, team, or regulatory limits] |
| Requirement(s) | [Core capability or ASR that must be delivered] |
| Decision | [Chosen architectural approach — or [PROPOSED] / [PENDING]] |
| Alternatives Rejected | [Primary rejected options — or [PENDING]] |
| Rationale | [Core justification linking requirement to decision] |
| Tradeoff Accepted | [Explicit non-trivial cost, debt, or limitation accepted] |
| Decision Authority | [Accountable role/decider — review timebox: YYYY-MM-DD] |
Rule: Keep rows concise (≤ 25 words). Elaborate in the dedicated sections of the ADR.
Instructions & Workflow
- Discover Repository Conventions:
- Scan the codebase for existing ADR directories:
docs/adr/,docs/decisions/,.github/decisions/, ordoc/architecture/decisions/. Default todocs/adr/if none exist. - Inspect existing filenames to detect the numbering and naming convention (e.g.,
0001-title.mdvsADR-001-title.md). Determine the next sequential number.
- Scan the codebase for existing ADR directories:
- Classify Domain Archetype & Framework:
- Classify the decision archetype: Cloud & Infrastructure, Software & Code Architecture, or Distributed Systems & Data.
- Consult
references/architectural-frameworks.mdand select 2–3 driving pillars/qualities (e.g., AWS/Azure WAF Cost & Reliability vs. ISO 25010 Modifiability & Testability).
- Enumerate Prioritized Decision Drivers:
- Define the architectural intent (avoid mechanism-first titles).
- Identify stakeholders consulted and informed (The Advice Process).
- List 3–5 prioritized Decision Drivers (e.g.,
DRV-01primary ASR,DRV-02technical constraint,DRV-03quality attribute,DRV-04operational boundary). - These drivers anchor the Y-statement, define the rows in the Comparison Matrix, and provide the objective criteria for rejecting alternatives.
- Draft the Tabular Y-Statement:
- Synthesize the core decision into the 8-row Y-statement table, mapping
Constraint(s)andRequirement(s)directly to the numbered Decision Drivers.
- Synthesize the core decision into the 8-row Y-statement table, mapping
- Instantiate the Template:
- Load
references/adr-template.mdand populate all sections. - Map the rows of the Multi-Criteria Comparison Matrix directly to the Decision Drivers.
- In rejected alternatives, explicitly cite which Decision Driver(s) they failed or violated.
- Document how the decision is reified and mechanically enforced in code or CI.
- Load
- Verify Against Core Qualities & Self-Critique:
- Check against the 5 Core Tenets above.
- Run the Uninformed Reader Test: Can an engineer with zero prior context understand the problem, constraints, and why we chose this in under 3 minutes?
- Scan against the Anti-Patterns table to ensure no God Decisions, change logs, free lunches, strawmen, or implementation bloat crept in.
- Update the ADR Index:
- If an
index.mdorREADME.mdexists in the ADR directory, append a table row with the new ADR's ID, Title, Status, and Date.
- If an
Reviewing an ADR
When asked to review an existing ADR:
- Intention Check: Is the decision framed around architectural capability, or just naming a tool?
- Domain Quality Alignment: Does it cite concrete quality pillars from the relevant framework (AWS/Azure WAF, ISO 25010, Evolutionary Architecture)?
- Decision Driver Traceability: Are 3–5 prioritized decision drivers listed? Do the Y-Statement constraints/requirements, comparison matrix rows, and alternative rejections map back directly to these drivers?
- Uninformed Reader Test: Is the language crisp, clear, and readable by anyone without relying on tribal jargon?
- Honesty & Downside Check: Are negative consequences genuine and non-trivial, or is it a one-sided "free lunch"?
- Comparison Matrix: Does the multi-criteria matrix evaluate realistic alternatives across the stated drivers?
- Reification Check: Is there a concrete mechanism (type, lint, test, boundary) that mechanically enforces this decision?
- Anti-Pattern Gate: Is the document free from God Decisions (multi-ASR bundling), change log narration, and implementation manifesto bloat?
- Y-Statement Completeness: Are all 8 dimensions populated clearly without hand-waving?
References
references/adr-template.md— Standard markdown ADR template with Decision Drivers, tabular Y-statement, and comparison matrix.references/architectural-frameworks.md— Domain evaluation frameworks (AWS/Azure WAF, ISO 25010, Evolutionary Architecture, Distributed Data).references/example-adr.md— Gold-standard example illustrating Decision Drivers, tabular Y-statement, and matrix in practice.
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.

