Skip to content

Adr Fundamentals

Architectural Decision Records (ADRs) capture important architectural decisions along with their context and consequences. This skill provides foundational knowledge for creating, managing, and maintaining ADRs effectively.

Create an ADR when making decisions that:

  • Have significant impact - Affect system structure, behavior, or quality attributes
  • Are hard to reverse - Would require substantial effort to change later
  • Have multiple viable options - Alternatives were seriously considered
  • Affect multiple components - Cross-cutting concerns or system-wide patterns
  • Set precedent - Establish patterns others will follow
  • Involve trade-offs - Balance competing concerns or constraints
CategoryExamples
Technology SelectionProgramming language, framework, database, cloud provider
Architecture PatternsMicroservices vs monolith, event-driven, CQRS
API DesignREST vs GraphQL, versioning strategy, authentication
Data ManagementStorage strategy, caching, replication, backup
SecurityAuthentication method, encryption, access control
IntegrationThird-party services, messaging patterns, protocols
InfrastructureContainer orchestration, deployment strategy, scaling

Skip ADRs for:

  • Routine implementation choices
  • Decisions with obvious answers
  • Temporary or experimental changes
  • Minor configuration tweaks
  • Decisions that can be easily reversed
proposed → accepted → [deprecated] → superseded
rejected
StatusMeaning
proposedUnder consideration, open for discussion
acceptedApproved and active, guides current development
rejectedConsidered but not adopted (document why)
deprecatedNo longer recommended, pending replacement
supersededReplaced by a newer ADR (link to successor)

proposed → accepted: Decision reviewed and approved by stakeholders proposed → rejected: Decision not adopted after review accepted → deprecated: Circumstances changed, better alternatives exist accepted/deprecated → superseded: New ADR replaces this one

Use clear, action-oriented titles:

  • Good: “Use PostgreSQL for primary data storage”
  • Good: “Adopt event-driven architecture for order processing”
  • Bad: “Database decision”
  • Bad: “Architecture stuff”

Provide sufficient background:

  • Current state of the system
  • Problem being solved
  • Constraints and requirements
  • Relevant stakeholders

List forces influencing the decision:

  • Technical requirements (performance, scalability, reliability)
  • Business requirements (cost, time-to-market, compliance)
  • Team factors (expertise, capacity, preferences)
  • Organizational constraints (existing systems, standards)

For each option considered:

  • Brief description
  • Pros and cons
  • Key trade-offs
  • Why selected or rejected

Document both positive and negative outcomes:

  • Expected benefits
  • Known trade-offs accepted
  • Risks and mitigations
  • Future implications

Standard pattern: {NUMBER}-{slug}.md

Examples:

  • 0001-use-postgresql-for-primary-storage.md
  • 0002-adopt-event-driven-architecture.md
  • 0003-implement-oauth2-authentication.md
FormatExampleUse Case
4-digit0001, 0042Default, supports 9999 ADRs
3-digit001, 042Smaller projects
Date-based20250115Chronological emphasis

Standard structure:

docs/adr/
├── README.md # Index and guidelines
├── 0001-first-adr.md
├── 0002-second-adr.md
└── templates/ # Optional: custom templates

For large projects, consider module-level ADRs:

src/
├── module-a/
│ └── docs/adr/
├── module-b/
│ └── docs/adr/
└── docs/adr/ # Project-wide ADRs
RelationshipMeaning
supersedesThis ADR replaces ADR-XXX
superseded-byADR-XXX replaces this one
relates-toRelated decision, not a replacement
amendsModifies without fully replacing
  • Always link both directions (supersedes/superseded-by)
  • Include reason for supersession
  • Keep superseded ADRs for historical context
  • Use relates-to for decisions that inform each other
  1. Missing context - Decisions without background are hard to understand later
  2. Vague options - “Option A vs Option B” without specifics
  3. Missing trade-offs - Every decision has downsides; document them
  4. Orphaned ADRs - Not linking superseded decisions
  5. Status neglect - Forgetting to update status as decisions evolve
  6. Too much detail - ADRs are summaries, not full specifications
  1. Create ADR in proposed status
  2. Open PR for team review
  3. Discuss and refine
  4. Update status to accepted when merged
  5. Reference ADR in related implementation PRs

Cross-reference ADRs from:

  • Architecture documentation
  • README files
  • Code comments (for non-obvious patterns)
  • Wiki or knowledge base

Read project configuration from .claude/adr.local.md for:

  • ADR directory location(s)
  • Numbering format
  • Status workflow
  • Template preferences

For detailed guidance on specific topics:

  • references/decision-criteria.md - Comprehensive criteria for ADR-worthy decisions
  • references/review-checklist.md - ADR quality review checklist
  • adr-format-madr - MADR template format details (default format)
  • adr-format-nygard - Classic Nygard format
  • adr-decision-drivers - Identifying and documenting decision drivers
  • adr-quality - Quality criteria and review process
  • adr-compliance - Auditing code against ADRs
  • adr-integration - CI/CD and tooling integration