Decision Tracking Skill
CRITICAL: The description field above controls when Claude auto-loads this skill.
Overview
Provides comprehensive Architecture Decision Record (ADR) management following Michael Nygard's ADR format. Includes automatic sequential numbering, decision lifecycle tracking, superseding workflows, and decision search capabilities.
Instructions
Creating New ADRs
- Use
scripts/create-adr.sh <title> [docs-path] to create a new ADR with automatic numbering
- Script automatically determines next sequential number (0001, 0002, etc.)
- Creates ADR file with Michael Nygard format:
NNNN-title-in-kebab-case.md
- Populates ADR with proper frontmatter (date, status, deciders)
- Updates the ADR index automatically
Listing ADRs
- Use
scripts/list-adrs.sh [docs-path] [--status=accepted|proposed|deprecated|superseded] to view all ADRs
- Displays ADR number, title, status, date, and file path
- Supports filtering by status: accepted, proposed, deprecated, superseded
- Shows ADRs in chronological order by number
- Optionally displays quick summary of each ADR
Searching ADRs
- Use
scripts/search-adrs.sh <search-term> [docs-path] to search ADR content
- Searches titles, context, decisions, and consequences sections
- Returns matching ADRs with relevant snippets
- Highlights search terms in results
- Supports regex patterns for advanced searches
Updating ADR Index
- Use
scripts/update-adr-index.sh [docs-path] to regenerate ADR index
- Scans all ADR files and extracts metadata
- Generates comprehensive index with links to all ADRs
- Groups ADRs by status (accepted, proposed, deprecated, superseded)
- Updates
docs/adr/index.md or specified path
Superseding ADRs
- Use
scripts/supersede-adr.sh <old-adr-number> <new-title> [docs-path] to supersede an ADR
- Marks old ADR status as "superseded" with link to new ADR
- Creates new ADR with reference to superseded ADR
- Maintains decision history and rationale chain
- Updates ADR index automatically
Available Scripts
- create-adr.sh: Create new ADR with auto-numbering and proper format
- list-adrs.sh: List all ADRs with filtering and status display
- search-adrs.sh: Search ADR content with regex support
- update-adr-index.sh: Regenerate comprehensive ADR index
- supersede-adr.sh: Mark ADR as superseded and create replacement
Templates
- adr-template.md: Michael Nygard ADR format with all sections
- adr-frontmatter.yaml: YAML frontmatter structure for ADR metadata
- adr-index-template.md: ADR index format with status groupings
- decision-matrix.md: Decision comparison matrix for evaluating options
- consequences-template.md: Detailed consequences documentation format
Examples
See examples/ directory for detailed usage examples:
example-adr-technology.md - Technology choice ADR (database selection)
example-adr-architecture.md - Architectural decision (microservices vs monolith)
example-adr-security.md - Security decision (authentication strategy)
example-adr-superseded.md - Superseded ADR with replacement links
example-adr-index.md - Complete ADR index with multiple entries
ADR Format (Michael Nygard)
Standard Sections
- Title: Short noun phrase describing the decision
- Status: proposed | accepted | deprecated | superseded
- Context: Forces at play, including technological, political, social, and project constraints
- Decision: Response to these forces, stated in full sentences with active voice
- Consequences: Context after applying the decision, including positive, negative, and neutral effects
Frontmatter Fields
---
number: 0001
title: Use PostgreSQL for Primary Database
date: 2025-10-28
status: accepted
deciders: [Tech Lead, Backend Team]
consulted: [DevOps, Security Team]
informed: [Frontend Team, Product]
---
Numbering Convention
- Use 4-digit zero-padded sequential numbers: 0001, 0002, 0003, etc.
- Filename format:
NNNN-title-in-kebab-case.md
- Examples:
0001-use-postgresql.md, 0042-adopt-microservices.md
- Never reuse numbers even if ADR is deleted
Decision Lifecycle
Status Transitions
- proposed → Initial state when ADR is created
- accepted → Decision has been approved and implemented
- deprecated → Decision is no longer recommended but still in use
- superseded → Decision has been replaced by a newer ADR
Superseding Workflow
- Identify ADR to supersede (e.g., ADR-0005)
- Run
supersede-adr.sh 0005 "New Decision Title"
- Old ADR updated: status → "superseded", link added to new ADR
- New ADR created with reference to superseded ADR
- Index updated automatically
ADR Storage Structure
Recommended directory structure:
docs/
adr/
index.md # Master index of all ADRs
0001-first-decision.md
0002-second-decision.md
0003-third-decision.md
templates/
adr-template.md # Template for new ADRs
Decision Matrix Usage
When evaluating multiple options:
- Use
templates/decision-matrix.md to structure comparison
- Define criteria (performance, cost, maintainability, etc.)
- Score each option against criteria
- Weight criteria by importance
- Calculate weighted scores to guide decision
- Include completed matrix in ADR context section
Search Capabilities
The search script supports:
- Full-text search: Search all ADR content
- Regex patterns: Use patterns like
"auth.*strategy"
- Section-specific: Search only in specific sections
- Status filtering: Combine with status filter
- Date range: Search ADRs within date range
Integration
This skill is used by:
planning:adr-create command - Create new ADRs interactively
planning:adr-list command - List and filter ADRs
planning:adr-supersede command - Supersede existing ADRs
- All planning agents requiring decision documentation
Best Practices
Writing Effective ADRs
- Be specific: Clearly state what is being decided
- Document context: Explain why the decision is needed
- List alternatives: Show what options were considered
- Describe consequences: Include positive and negative impacts
- Use active voice: "We will use PostgreSQL" not "PostgreSQL will be used"
When to Create ADRs
- Choosing between architectural patterns (monolith vs microservices)
- Selecting core technologies (databases, frameworks, languages)
- Defining system boundaries and interfaces
- Establishing security or authentication strategies
- Setting coding standards or development practices
When NOT to Create ADRs
- Routine bug fixes or minor refactoring
- Implementing already-decided features
- Temporary workarounds or experiments
- Decisions that can be easily reversed
- Team process decisions (use meeting notes instead)
Output Format
All scripts output in consistent formats:
- list-adrs.sh: Table format with columns: Number | Title | Status | Date
- search-adrs.sh: List format with ADR number, title, and matching snippet
- create-adr.sh: Outputs path to created ADR file
- supersede-adr.sh: Outputs paths to both old and new ADR files
Requirements
- ADRs must follow Michael Nygard format exactly
- Sequential numbering must be maintained without gaps
- Frontmatter must include all required fields
- Status must be one of: proposed, accepted, deprecated, superseded
- Superseded ADRs must link to replacement ADRs
- Index must be updated after every ADR creation
Purpose: Comprehensive Architecture Decision Record management and documentation
Used by: All planning agents and commands requiring decision tracking
1---2name: decision-tracking3description: Architecture Decision Records (ADR) templates, sequential numbering, decision documentation patterns, and decision history management. Use when creating ADRs, documenting architectural decisions, tracking decision rationale, managing decision lifecycle, superseding decisions, searching decision history, or when user mentions ADR, architecture decision, decision record, decision tracking, or decision documentation.4---56# Decision Tracking Skill78**CRITICAL: The description field above controls when Claude auto-loads this skill.**910## Overview1112Provides comprehensive Architecture Decision Record (ADR) management following Michael Nygard's ADR format. Includes automatic sequential numbering, decision lifecycle tracking, superseding workflows, and decision search capabilities.1314## Instructions1516### Creating New ADRs17181. Use `scripts/create-adr.sh <title> [docs-path]` to create a new ADR with automatic numbering192. Script automatically determines next sequential number (0001, 0002, etc.)203. Creates ADR file with Michael Nygard format: `NNNN-title-in-kebab-case.md`214. Populates ADR with proper frontmatter (date, status, deciders)225. Updates the ADR index automatically2324### Listing ADRs25261. Use `scripts/list-adrs.sh [docs-path] [--status=accepted|proposed|deprecated|superseded]` to view all ADRs272. Displays ADR number, title, status, date, and file path283. Supports filtering by status: accepted, proposed, deprecated, superseded294. Shows ADRs in chronological order by number305. Optionally displays quick summary of each ADR3132### Searching ADRs33341. Use `scripts/search-adrs.sh <search-term> [docs-path]` to search ADR content352. Searches titles, context, decisions, and consequences sections363. Returns matching ADRs with relevant snippets374. Highlights search terms in results385. Supports regex patterns for advanced searches3940### Updating ADR Index41421. Use `scripts/update-adr-index.sh [docs-path]` to regenerate ADR index432. Scans all ADR files and extracts metadata443. Generates comprehensive index with links to all ADRs454. Groups ADRs by status (accepted, proposed, deprecated, superseded)465. Updates `docs/adr/index.md` or specified path4748### Superseding ADRs49501. Use `scripts/supersede-adr.sh <old-adr-number> <new-title> [docs-path]` to supersede an ADR512. Marks old ADR status as "superseded" with link to new ADR523. Creates new ADR with reference to superseded ADR534. Maintains decision history and rationale chain545. Updates ADR index automatically5556## Available Scripts5758- **create-adr.sh**: Create new ADR with auto-numbering and proper format59- **list-adrs.sh**: List all ADRs with filtering and status display60- **search-adrs.sh**: Search ADR content with regex support61- **update-adr-index.sh**: Regenerate comprehensive ADR index62- **supersede-adr.sh**: Mark ADR as superseded and create replacement6364## Templates6566- **adr-template.md**: Michael Nygard ADR format with all sections67- **adr-frontmatter.yaml**: YAML frontmatter structure for ADR metadata68- **adr-index-template.md**: ADR index format with status groupings69- **decision-matrix.md**: Decision comparison matrix for evaluating options70- **consequences-template.md**: Detailed consequences documentation format7172## Examples7374See `examples/` directory for detailed usage examples:75- `example-adr-technology.md` - Technology choice ADR (database selection)76- `example-adr-architecture.md` - Architectural decision (microservices vs monolith)77- `example-adr-security.md` - Security decision (authentication strategy)78- `example-adr-superseded.md` - Superseded ADR with replacement links79- `example-adr-index.md` - Complete ADR index with multiple entries8081## ADR Format (Michael Nygard)8283### Standard Sections84851. **Title**: Short noun phrase describing the decision862. **Status**: proposed | accepted | deprecated | superseded873. **Context**: Forces at play, including technological, political, social, and project constraints884. **Decision**: Response to these forces, stated in full sentences with active voice895. **Consequences**: Context after applying the decision, including positive, negative, and neutral effects9091### Frontmatter Fields9293```yaml94---95number: 000196title: Use PostgreSQL for Primary Database97date: 2025-10-2898status: accepted99deciders: [Tech Lead, Backend Team]100consulted: [DevOps, Security Team]101informed: [Frontend Team, Product]102---103```104105### Numbering Convention106107- Use 4-digit zero-padded sequential numbers: 0001, 0002, 0003, etc.108- Filename format: `NNNN-title-in-kebab-case.md`109- Examples: `0001-use-postgresql.md`, `0042-adopt-microservices.md`110- Never reuse numbers even if ADR is deleted111112## Decision Lifecycle113114### Status Transitions1151161. **proposed** → Initial state when ADR is created1172. **accepted** → Decision has been approved and implemented1183. **deprecated** → Decision is no longer recommended but still in use1194. **superseded** → Decision has been replaced by a newer ADR120121### Superseding Workflow1221231. Identify ADR to supersede (e.g., ADR-0005)1242. Run `supersede-adr.sh 0005 "New Decision Title"`1253. Old ADR updated: status → "superseded", link added to new ADR1264. New ADR created with reference to superseded ADR1275. Index updated automatically128129## ADR Storage Structure130131Recommended directory structure:132```133docs/134 adr/135 index.md # Master index of all ADRs136 0001-first-decision.md137 0002-second-decision.md138 0003-third-decision.md139 templates/140 adr-template.md # Template for new ADRs141```142143## Decision Matrix Usage144145When evaluating multiple options:1461. Use `templates/decision-matrix.md` to structure comparison1472. Define criteria (performance, cost, maintainability, etc.)1483. Score each option against criteria1494. Weight criteria by importance1505. Calculate weighted scores to guide decision1516. Include completed matrix in ADR context section152153## Search Capabilities154155The search script supports:156- **Full-text search**: Search all ADR content157- **Regex patterns**: Use patterns like `"auth.*strategy"`158- **Section-specific**: Search only in specific sections159- **Status filtering**: Combine with status filter160- **Date range**: Search ADRs within date range161162## Integration163164This skill is used by:165- `planning:adr-create` command - Create new ADRs interactively166- `planning:adr-list` command - List and filter ADRs167- `planning:adr-supersede` command - Supersede existing ADRs168- All planning agents requiring decision documentation169170## Best Practices171172### Writing Effective ADRs1731741. **Be specific**: Clearly state what is being decided1752. **Document context**: Explain why the decision is needed1763. **List alternatives**: Show what options were considered1774. **Describe consequences**: Include positive and negative impacts1785. **Use active voice**: "We will use PostgreSQL" not "PostgreSQL will be used"179180### When to Create ADRs181182- Choosing between architectural patterns (monolith vs microservices)183- Selecting core technologies (databases, frameworks, languages)184- Defining system boundaries and interfaces185- Establishing security or authentication strategies186- Setting coding standards or development practices187188### When NOT to Create ADRs189190- Routine bug fixes or minor refactoring191- Implementing already-decided features192- Temporary workarounds or experiments193- Decisions that can be easily reversed194- Team process decisions (use meeting notes instead)195196## Output Format197198All scripts output in consistent formats:199- **list-adrs.sh**: Table format with columns: Number | Title | Status | Date200- **search-adrs.sh**: List format with ADR number, title, and matching snippet201- **create-adr.sh**: Outputs path to created ADR file202- **supersede-adr.sh**: Outputs paths to both old and new ADR files203204## Requirements205206- ADRs must follow Michael Nygard format exactly207- Sequential numbering must be maintained without gaps208- Frontmatter must include all required fields209- Status must be one of: proposed, accepted, deprecated, superseded210- Superseded ADRs must link to replacement ADRs211- Index must be updated after every ADR creation212213---214215**Purpose**: Comprehensive Architecture Decision Record management and documentation216**Used by**: All planning agents and commands requiring decision tracking