Enregistrements de Décisions Architecturales

VérifiéSûr

Documenter les décisions techniques importantes avec des modèles ADR structurés et des bonnes pratiques. Couvre le contexte, les alternatives et les conséquences pour capturer la rationale architecturale.

Spar Skills Guide Bot
DocumentationDébutant
2002/06/2026
Claude CodeCursorWindsurfCopilotCodex
#architecture#decision-records#technical-decisions#adr

Recommandé pour

Notre avis

Ce skill permet de documenter les décisions techniques importantes en utilisant des modèles ADR structurés, facilitant la traçabilité et la relecture.

Points forts

  • Fournit des modèles prêts à l'emploi pour différents niveaux de complexité
  • Encourage la documentation des alternatives et des conséquences
  • Inclut un cycle de vie clair pour les décisions (proposé, accepté, déprécié, remplacé)

Limites

  • Nécessite une discipline d'équipe pour être efficace
  • Peut être perçu comme une lourdeur administrative pour des décisions mineures
  • Les ADR non maintenus perdent leur valeur avec le temps
Quand l'utiliser

Utilisez ce skill lorsque vous prenez une décision architecturale significative qui aura un impact durable sur le projet.

Quand l'éviter

Évitez ce skill pour des changements triviaux, des mises à jour de dépendances mineures ou des corrections de bugs sans impact architectural.

Analyse de sécurité

Sûr
Score qualité92/100

The skill only provides documentation templates and best practices for writing Architecture Decision Records. It does not instruct any code execution, system modification, or data exfiltration. The allowed tools are read-only, posing no execution risk.

Aucun point d'attention détecté

Exemples

Documenting a database selection
Create a new ADR for choosing PostgreSQL as the primary database for our new microservice. Use the lightweight template and include context (high write throughput, need for JSON support), decision drivers (performance, cost, team expertise), alternatives considered (MongoDB, MySQL), and consequences (learning curve, operational overhead).
Deprecating an old decision
I need to deprecate ADR-0012 which recommended using a monolith approach. Write a deprecation ADR that explains why we are moving to microservices, what replaces the old decision, and the transition plan. Use the deprecation template from the reference files.
Reviewing an ADR for completeness
Review the following ADR draft about adopting TypeScript: [paste draft]. Check for common mistakes like missing alternatives, vague consequences, or writing after implementation. Provide feedback and suggest improvements using the skill's guidelines.

name: architecture-decision-records description: This skill should be used when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes. It provides ADR templates and best practices. allowed-tools: Read

Architecture Decision Records

Capture the context and rationale behind significant technical decisions using structured ADR formats.

When to Use This Skill

| Write ADR | Skip ADR | | -------------------------- | ---------------------- | | New framework adoption | Minor version upgrades | | Database technology choice | Bug fixes | | API design patterns | Implementation details | | Security architecture | Routine maintenance | | Integration patterns | Configuration changes |

Quick Start

  1. Copy the template: cp docs/adr/template.md docs/adr/NNNN-your-title.md
  2. Fill in: Context, Decision Drivers, Options, Decision, Consequences
  3. PR for review (2+ senior engineers)
  4. Update docs/adr/README.md index after merge

Core Concepts

An Architecture Decision Record captures:

  • Context: Why we needed to make a decision
  • Decision: What we decided
  • Consequences: What happens as a result

ADR Lifecycle

Proposed --> Accepted --> Deprecated --> Superseded
                |
             Rejected

Read reference/adr-lifecycle.md for status transitions, deprecation patterns, and review checklists.

Process

1. Choose a Template

Pick the format that fits the decision's complexity:

| Decision Complexity | Template | |---------------------|----------| | Simple tech selection | Y-Statement (one paragraph) | | Medium decision | Lightweight ADR (0.5-1 page) | | Significant architecture change | Standard MADR (1-2 pages) | | Retiring a decision | Deprecation ADR | | Major cross-team proposal | RFC Style (2-4 pages) |

Read reference/adr-templates.md for all template formats ready to copy-paste.

2. Write the ADR

  • Start with context -- explain the problem before the solution
  • List 2-3 real alternatives with honest pros/cons
  • State the decision clearly
  • Document both positive and negative consequences with specifics

3. Review and Approve

  • Submit as PR with 2+ senior engineer reviewers
  • Consult affected teams
  • Assess security, cost, and reversibility implications

4. Maintain

  • Update ADR index after acceptance
  • Create implementation tickets
  • Never edit accepted ADRs -- write new ones to supersede

Read reference/adr-examples.md for complete worked examples (PostgreSQL selection, TypeScript adoption, MongoDB deprecation, event sourcing RFC).

Minimal Template (Copy-Paste Starter)

# ADR-NNNN: [Title]

## Status
Proposed | Accepted | Deprecated | Superseded by ADR-XXXX

## Context
[Why do we need to decide this? What's the problem?]

## Decision
We will [decision].

## Consequences
- **Good**: [benefits]
- **Bad**: [drawbacks]
- **Mitigations**: [how we'll address the bad]

Common Mistakes

| Mistake | Fix | |---------|-----| | Writing ADR after implementation | Write during design phase | | Listing only one option | Always include 2-3 real alternatives | | Vague consequences | Be specific: "Adds ~200ms latency to checkout" | | Editing accepted ADRs | Write new ADR that supersedes | | No decision drivers | List explicit criteria with priorities | | Missing rejected ADRs | Document rejected options too |

Directory Structure

docs/adr/
  README.md           # Index of all ADRs
  template.md         # Team's ADR template
  0001-use-postgresql.md
  0002-caching-strategy.md

Reference Files

| File | Contents | |------|----------| | reference/adr-templates.md | All formats: MADR, lightweight, Y-statement, deprecation, RFC | | reference/adr-examples.md | Complete worked examples for each format | | reference/adr-lifecycle.md | Status transitions, review checklists, automation with adr-tools |

Resources

Error Handling

Conflicting ADRs: When a new decision contradicts an existing ADR, create a superseding ADR that explicitly references and deprecates the old one.

Missing context: If the decision rationale is unclear or incomplete, flag it and request clarification before recording.

Skills similaires