architecture-decision-records
Skill13 starsChanged 8 months agoMITView on GitHub
ADR process — template, lifecycle (proposed → accepted → deprecated), storage convention, when to create ADRs, referencing ADRs in PRs and plans, ADR maintenance.
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 adding-docker, adding-error-tracking and 8 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.
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
- +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
- xfstudio/skills★ 9same name
- zero-click/zero-ratchet★ 8same name
- yeaight7/agent-powerups★ 6same 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 repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- examples/CLAUDE.mdCLAUDE.md
- agentic-engineeringSkill
- api-designSkill
- api-integrationsSkill
- autonomous-agent-harnessSkill
- autonomous-loopsSkill
- aws-deploymentSkill
- aws-devopsSkill
- backend-patternsSkill
- backlog-managementSkill
- ci-pipelineSkill
- claude-apiSkill
- codebase-onboardingSkill
- codebase-reportSkill
- code-reviewSkill
- coding-standardsSkill
- context-pruneSkill
- continuous-agent-loopSkill
- database-migrationsSkill
- data-pipelines-aiSkill
- data-pipelinesSkill
- deep-researchSkill
- deployment-patternsSkill
- dmux-workflowsSkill
- docker-patternsSkill
- documentation-lookupSkill
- document-processingSkill
- e2e-testingSkill
- eval-harnessSkill
- exa-searchSkill
- frontend-designSkill
- frontend-patternsSkill
- github-opsSkill
- git-workflowSkill
- hexagonal-architectureSkill
- iterative-retrievalSkill
- langchain-llamaindexSkill
- mcp-server-patternsSkill
- mlops-ragSkill
- mlops-workflowSkill
- multi-agent-git-workflowSkill
- observability-telemetrySkill
- openai-apiSkill
- postgres-patternsSkill
- prompt-optimizerSkill
- python-patternsSkill
- python-testingSkill
- pytorch-patternsSkill
- search-firstSkill
- security-reviewSkill
- security-scanSkill
- skill-authoringSkill
- tdd-workflowSkill
- technical-debt-reportSkill
- token-budget-advisorSkill
- typescript-patternsSkill
- verification-loopSkill
- workflow-statusSkill
- wxt-chrome-extensionSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 40 edited versions we read keep these.
1
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
- Very specific: line 24
Every ADR follows this structure in docs/adr/NNNN-title.md:
- Distinctive: line 100
Never reuse a number; never delete an 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 (ADRs)
Capture significant architectural decisions in lightweight, version-controlled documents that explain the context, alternatives, consequences, and status of each choice.
When to Use
- Making a decision that affects system architecture, technology selection, or team workflow.
- A choice has non-obvious trade-offs that future maintainers need to understand.
- Reversing or superseding a prior architectural decision.
- Onboarding new engineers who need context for "why was it built this way?"
- Documenting compliance-related architecture choices (data residency, encryption standards).
Core Concepts
1. ADR Template
Every ADR follows this structure in docs/adr/NNNN-title.md:
# ADR-NNNN: Title
**Status:** Proposed | Accepted | Deprecated | Superseded
**Date:** YYYY-MM-DD
**Author:** @username
**Reviewers:** @reviewer1, @reviewer2
## Context
What is the issue that we're seeing that is motivating this decision?
What are the constraints, forces, and stakeholders involved?
Include relevant data, metrics, or incidents that frame the problem.
## Decision
What is the change that we're proposing?
State the decision clearly and concisely in imperative form.
Be specific enough that a reviewer can verify compliance.
## Alternatives Considered
### Alternative 1: [Name]
- **Description:** What is it?
- **Pros:** Why consider it?
- **Cons:** Why reject it?
### Alternative 2: [Name]
- **Description:** What is it?
- **Pros:** Why consider it?
- **Cons:** Why reject it?
## Consequences
What becomes easier or more difficult to do because of this change?
List both positive and negative outcomes.
Include migration effort, cost implications, and operational impact.
## References
- Links to related ADRs, RFCs, PRs, or external resources.2. ADR Lifecycle
Proposed → [Discussion] → Accepted → [Implementation] → Active
↓
Superseded by ADR-NNNN
or
Deprecated| Status | Meaning | Actions Allowed |
| Proposed | Under discussion, not yet binding | Anyone can comment, author updates |
| Accepted | Decision is made, implementation begins | Implement per decision; amendments via new ADR |
| Active | Implemented and in production | Follow the decision; no changes without new ADR |
| Deprecated | No longer recommended for new work | Migrate away; superseding ADR references old one |
| Superseded | Replaced by a newer ADR | Follow the new ADR; old one is archival |
3. Storage Convention
docs/adr/
├── 0001-use-postgres-as-primary-db.md
├── 0002-adopt-fastapi-for-new-services.md
├── 0003-event-driven-communication-between-services.md
├── 0004-migrate-to-aws-graviton-instances.md
└── README.md ← Index of all ADRs with statusNumbering rules:
- Sequential, zero-padded to 4 digits (0001, 0002, ...)
- Never reuse a number; never delete an ADR
- Superseded ADRs stay in place with a link to the replacement
README index:
# Architecture Decision Records
| # | Title | Status | Date |
|---|-------|--------|------|
| 0001 | Use PostgreSQL as Primary DB | Active | 2025-01-15 |
| 0002 | Adopt FastAPI for New Services | Active | 2025-02-03 |
| 0003 | Event-Driven Communication | Accepted | 2025-03-10 |
| 0004 | Migrate to AWS Graviton Instances | Proposed | 2025-04-01 |4. When to Create an ADR
Create an ADR when:
- Choosing between two or more viable technologies, frameworks, or patterns
- Establishing a convention that will affect multiple teams or services
- Making a decision with long-lasting consequences (>6 months)
- A decision has significant cost, security, or compliance implications
- Reversing a prior decision that was documented in an ADR
Do NOT create an ADR when:
- The decision is trivial or reversible with minimal effort
- It's a implementation detail within an established pattern
- The choice is dictated by an external requirement (e.g., "client requires OAuth2")
- It's a temporary experiment or proof of concept
5. Referencing ADRs in PRs and Plans
In PR descriptions:
## Architecture
- This PR implements ADR-0003 (Event-Driven Communication)
- Changes the notification service to publish to SQS instead of direct HTTP calls
- See `docs/adr/0003-event-driven-communication-between-services.md` for contextIn implementation plans:
### Decision Reference
Per ADR-0002, all new services must use FastAPI with:
- SQLAlchemy async ORM
- Pydantic v2 request/response models
- Structured logging with correlation IDs
This plan follows those conventions.In code comments (for traceability):
# ADR-0003: All inter-service communication uses SQS, not direct HTTP
# See: docs/adr/0003-event-driven-communication-between-services.md
async def publish_notification(event: NotificationEvent) -> None:
await sqs_client.send_message(
QueueUrl=settings.notification_queue_url,
MessageBody=event.model_dump_json(),
)6. ADR Maintenance
Quarterly review checklist:
- Scan all
ProposedADRs — move toAcceptedorDeprecated - Verify
ActiveADRs are still followed in the codebase - Identify ADRs that should be
Supersededby newer decisions - Update the
docs/adr/README.mdindex - Link any orphaned ADRs to related PRs and issues
Deprecation process:
# ADR-0002: Adopt FastAPI for New Services
**Status:** Superseded by ADR-0015
**Date:** 2025-02-03
**Superseded Date:** 2026-03-01
## Supersession Notice
This ADR is superseded by [ADR-0015: Unified Python Service Framework](./0015-unified-python-framework.md).
The decision to standardize on a broader framework supersedes the FastAPI-specific guidance.
Existing FastAPI services remain supported; new services should follow ADR-0015.7. ADR-Driven Development Workflow
1. Identify architectural decision point
2. Draft ADR in docs/adr/NNNN-title.md with status: Proposed
3. Share with team for async review (GitHub PR or shared doc)
4. Discuss alternatives, update based on feedback
5. Merge ADR → status: Accepted
6. Implement the decision (reference ADR in PR)
7. After implementation → status: Active
8. Revisit quarterly; deprecate or supersede as neededAnti-Patterns
- Writing ADRs after the fact — ADRs are decision records, not documentation of what already happened
- Vague context section — If a future reader can't understand why the decision was made, the ADR failed
- No alternatives considered — Every ADR must document at least 2 alternatives with pros/cons
- Orphaned ADRs — ADRs not referenced in code, PRs, or plans become dead documentation
- Over-documenting trivial choices — "We chose black over autopep8" does not need an ADR
- Mutable ADRs — Never edit an accepted ADR; write a new one to supersede or amend
- Ignoring consequences — Skipping the consequences section leaves teams unprepared for trade-offs
Best Practices
- Write ADRs at decision time, not during implementation or after deployment.
- Keep them short — 1-2 pages max; if longer, split into multiple ADRs.
- Include data — Metrics, benchmarks, and incident reports in the Context section.
- Reference ADRs everywhere — PR descriptions, plans, code comments, runbooks.
- Maintain the index —
docs/adr/README.mdmust be current for ADRs to be discoverable. - Use status transitions deliberately — Proposed → Accepted → Active is a one-way flow.
- Review quarterly — Assign an owner to scan and update ADR statuses each quarter.
- Link, don't duplicate — Reference related ADRs instead of repeating context.
- Make consequences explicit — List what becomes harder, what costs increase, what skills are needed.
- Treat ADRs as living documents — Supersede, don't delete; deprecate, don't ignore.
Related Skills
skill-authoring— Creating reusable skill documents with similar structurecodebase-onboarding— ADRs are critical onboarding artifacts for new engineerscode-review— Reviewers should check that implementations follow accepted ADRsdocumentation-lookup— ADRs are part of the canonical documentation corpus
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.

