Awesome-omni-skill doc-adr-autopilot

Automated ADR generation pipeline from BRD Architecture Decision Requirements - analyzes topics, generates Context-Decision-Consequences records

install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/devops/doc-adr-autopilot" ~/.claude/skills/diegosouzapw-awesome-omni-skill-doc-adr-autopilot && rm -rf "$T"
manifest: skills/devops/doc-adr-autopilot/SKILL.md
source content

doc-adr-autopilot

Purpose

Automated Architecture Decision Record (ADR) generation pipeline that processes BRD Section 7.2 Architecture Decision Requirements to generate comprehensive ADRs with Context-Decision-Consequences format, validation, and traceability.

Layer: 5 (Architecture Decision Records)

Upstream: BRD (Layer 1), PRD (Layer 2), EARS (Layer 3), BDD (Layer 4)

Downstream Artifacts: SYS (Layer 6), REQ (Layer 7)


Input Contract (IPLAN-004 Standard)

  • Supported modes:
    • --ref <path>
    • --prompt "<text>"
    • --iplan <path|IPLAN-NNN>
  • Precedence:
    --iplan > --ref > --prompt
  • IPLAN resolution order:
    1. Use explicit file path when it exists
    2. Resolve
      work_plans/IPLAN-NNN*.md
    3. Resolve
      governance/plans/IPLAN-NNN*.md
    4. If multiple matches exist, fail with disambiguation request
  • Merge conflict rule:
    • Objective/scope conflicts between primary and supplemental sources are blocking and require user clarification.

Input Contract (IPLAN-004 Standard)

  • Supported modes:
    • --ref <path>
    • --prompt "<text>"
    • --iplan <path|IPLAN-NNN>
  • Precedence:
    --iplan > --ref > --prompt
  • IPLAN resolution order:
    1. Use explicit file path when it exists
    2. Resolve
      work_plans/IPLAN-NNN*.md
    3. Resolve
      governance/plans/IPLAN-NNN*.md
    4. If multiple matches exist, fail with disambiguation request
  • Merge conflict rule:
    • Objective/scope conflicts between primary and supplemental sources are blocking and require user clarification.

Skill Dependencies

This autopilot orchestrates the following skills:

SkillPurposePhase
doc-naming
Element ID format (ADR.NN.TT.SS), threshold tags, legacy pattern detectionAll Phases
doc-adr
ADR creation rules, 11-section MVP structure, lifecycle statesPhase 3: ADR Generation
quality-advisor
Real-time quality feedback during ADR generationPhase 3: ADR Generation
doc-adr-validator
Validate ADR structure, content, SYS-Ready scorePhase 4: ADR Validation
doc-adr-reviewer
Content review, link validation, quality scoringPhase 5: Review
doc-adr-fixer
Apply fixes from audit/review report, create missing filesPhase 5: Fix

Delegation Principle: The autopilot orchestrates workflow but delegates:

  • ADR structure/content rules ->
    doc-adr
    skill
  • Real-time quality feedback ->
    quality-advisor
    skill
  • ADR validation logic ->
    doc-adr-validator
    skill
  • Content review and scoring ->
    doc-adr-reviewer
    skill
  • Issue resolution and fixes ->
    doc-adr-fixer
    skill
  • Element ID standards ->
    doc-naming
    skill

Smart Document Detection

The autopilot automatically determines the action based on the input document type.

Input Type Recognition (Multiple Upstreams)

ADR can be derived from BRD, PRD, EARS, or BDD. Detection accepts any:

InputDetected AsAction
ADR-NN
Self typeReview existing ADR document
BDD-NN
Primary upstreamGenerate if missing, review if exists
EARS-NN
Alternative upstreamGenerate if missing, review if exists
PRD-NN
Alternative upstreamGenerate if missing, review if exists
BRD-NN
Alternative upstreamGenerate if missing, review if exists

Detection Algorithm

1. Parse input: Extract TYPE and NN from "{TYPE}-{NN}"
2. Determine action:
   - IF TYPE == "ADR": Review Mode
   - ELSE IF TYPE in ["BDD", "EARS", "PRD", "BRD"]: Generate/Find Mode
   - ELSE: Error (invalid type for this autopilot)
3. For Generate/Find Mode:
   - Check: Does ADR-{NN} exist in docs/05_ADR/?
   - IF exists: Switch to Review Mode for ADR-{NN}
   - ELSE: Proceed with Generation from {TYPE}-{NN}

File Existence Check

# Check for nested folder structure (mandatory)
ls docs/05_ADR/ADR-{NN}_*/

Examples

# Review mode (same type - ADR input)
/doc-adr-autopilot ADR-01           # Reviews existing ADR-01

# Generate/Find mode (upstream types)
/doc-adr-autopilot BDD-01           # Generates ADR-01 if missing, or reviews existing ADR-01
/doc-adr-autopilot EARS-01          # Generates ADR-01 if missing, or reviews existing ADR-01
/doc-adr-autopilot PRD-01           # Generates ADR-01 if missing, or reviews existing ADR-01
/doc-adr-autopilot BRD-01           # Generates ADR-01 if missing, or reviews existing ADR-01

# Multiple inputs
/doc-adr-autopilot BDD-01,BDD-02    # Generates/reviews ADR-01 and ADR-02
/doc-adr-autopilot ADR-01,ADR-02    # Reviews ADR-01 and ADR-02

Action Determination Output

Input: BDD-01
├── Detected Type: BDD (primary upstream)
├── Expected ADR: ADR-01
├── ADR Exists: Yes → docs/05_ADR/ADR-01_f1_iam/
└── Action: REVIEW MODE - Running doc-adr-reviewer on ADR-01

Input: BRD-05
├── Detected Type: BRD (alternative upstream)
├── Expected ADR: ADR-05
├── ADR Exists: No
└── Action: GENERATE MODE - Creating ADR-05 from BRD-05

Input: ADR-03
├── Detected Type: ADR (self)
└── Action: REVIEW MODE - Running doc-adr-reviewer on ADR-03

When to Use This Skill

Use

doc-adr-autopilot
when:

  • BRD Section 7.2 Architecture Decision Requirements is complete
  • Need to generate all 7 mandatory ADR topic categories
  • Want automated Context-Decision-Consequences generation
  • Ensuring consistent ADR quality across the project
  • Automating ADR generation in CI/CD pipelines

Do NOT use when:

  • Manually creating a single ADR with extensive customization (use
    doc-adr
    directly)
  • BRD Section 7.2 is incomplete or missing ADR topics
  • Editing specific ADR sections (use
    doc-adr
    for guidance)
  • Validating existing ADRs only (use
    doc-adr-validator
    )

Workflow Overview

flowchart TD
    subgraph Phase1["Phase 1: BRD Analysis"]
        A[Start] --> B[Read BRD Section 7.2]
        B --> C[Verify Architecture Decision Requirements]
        C --> D[Extract ADR Topic Categories]
        D --> E[Catalog Business Drivers & Constraints]
    end

    subgraph Phase2["Phase 2: ADR Topic Identification"]
        E --> F[Map BRD.NN.32.XX to ADR-NN]
        F --> G{All 7 Categories Present?}
        G -->|No| H[Flag Missing Categories]
        H --> I[Generate Placeholder Topics]
        I --> J[Create Topic Mapping Table]
        G -->|Yes| J
        J --> K[Prioritize Topics by Status]
    end

    subgraph Phase3["Phase 3: ADR Generation"]
        K --> L{Next Topic}
        L --> M[Load ADR Template]
        M --> N[Generate Document Control]
        N --> O[Generate Context Section]
        O --> P[Generate Decision Section]
        P --> Q[Generate Consequences Section]
        Q --> R[Generate Alternatives Section]
        R --> S[quality-advisor: Real-time Feedback]
        S --> T[Generate Remaining Sections]
        T --> U[Add Cumulative Tags]
        U --> V[Write ADR Files]
    end

    subgraph Phase4["Phase 4: ADR Validation"]
        V --> W[Run doc-adr-validator]
        W --> X{SYS-Ready >= 90?}
        X -->|No| Y[Auto-Fix ADR Issues]
        Y --> Z[Re-validate ADR]
        Z --> X
        X -->|Yes| AA[Mark ADR Validated]
    end

    subgraph Phase5["Phase 5: Review & Fix Cycle"]
        AA --> AB[Run doc-adr-reviewer]
        AB --> AB2{Score >= 90?}
        AB2 -->|No| AB3[Run doc-adr-fixer]
        AB3 --> AB4{Iteration < Max?}
        AB4 -->|Yes| AB
        AB4 -->|No| AB5[Flag Manual Review]
        AB2 -->|Yes| AC[Verify Quality Checks]
        AB5 --> AC
        AC --> AD{More Topics?}
        AD -->|Yes| L
        AD -->|No| AE[Check All ADRs Complete]
        AE --> AF[Verify Cross-ADR Consistency]
        AF --> AG[Update Traceability Matrix]
        AG --> AH[Generate Summary Report]
    end

    AH --> AI[Complete]

Detailed Workflow

Phase 1: BRD Analysis

Analyze BRD Section 7.2 to extract Architecture Decision Requirements.

Input Sources:

PrioritySourceLocationContent Type
1BRD Section 7.2
docs/01_BRD/BRD-NN_{slug}/
Architecture Decision Requirements
2PRD Section 18
docs/02_PRD/PRD-NN_{slug}/
Architecture Decision Requirements (inherited)
3Technology Stack
docs/05_ADR/ADR-00_technology_stack.md
Approved technologies

Analysis Process:

# Locate BRD Section 7.2
find docs/01_BRD/ -name "*.md" -exec grep -l "7.2.*Architecture Decision Requirements" {} \;

# Check for ADR topics in BRD
grep -E "BRD\.[0-9]+\.32\.[0-9]+" docs/01_BRD/BRD-NN_*.md

Required BRD Section 7.2 Structure:

SubsectionElement ID PatternContent
7.2.1 InfrastructureBRD.NN.32.01Cloud, compute, networking decisions
7.2.2 Data ArchitectureBRD.NN.32.02Database, storage, data flow decisions
7.2.3 IntegrationBRD.NN.32.03API, messaging, integration patterns
7.2.4 SecurityBRD.NN.32.04Authentication, authorization, encryption
7.2.5 ObservabilityBRD.NN.32.05Logging, monitoring, tracing
7.2.6 AI/MLBRD.NN.32.06ML models, inference, training
7.2.7 Technology SelectionBRD.NN.32.07Framework, language, tool choices

Output: ADR topic catalog with business drivers, constraints, and status.

Phase 1.5: Folder Structure Analysis (NEW in v2.0)

Determine whether ADR should use flat file or nested folder structure.

Cardinality Detection:

BRD CardinalityADR StructureExample
1-to-1 (single decision)Flat file
ADR-02_Session_Architecture.md
1-to-many (multiple decisions)Nested folder
ADR-01_iam/ADR-01.01_jwt.md
,
ADR-01.02_mfa.md

Nested Folder Structure (when >2 decisions per topic):

docs/05_ADR/
├── ADR-00_Technology_Stack_Foundation.md     # Flat (foundation)
├── ADR-01_iam/                                # Nested folder
│   ├── ADR-01.00_index.md                     # Index file
│   ├── ADR-01.01_jwt_authentication.md
│   ├── ADR-01.02_4d_authorization.md
│   └── ADR-01.03_mfa_integration.md
├── ADR-02_Session_Memory_Architecture.md      # Flat (single topic)
└── ADR-08_trading_intelligence/               # Nested folder
    ├── ADR-08.00_index.md
    ├── ADR-08.01_Agent_Orchestration.md
    └── ADR-08.02_Risk_Management.md

Detection Rules:

  1. Count distinct decisions in BRD Section 7.2.X
  2. If >2 decisions → create nested folder with index
  3. If ≤2 decisions → create flat file

Phase 2: ADR Topic Identification

Map BRD Section 7.2 topics to ADR documents.

Skill Delegation: Element ID validation follows rules in

doc-naming
skill. See:
.claude/skills/doc-naming/SKILL.md
for element type codes.

BRD to ADR Mapping:

BRD Element IDADR DocumentTopic CategoryADR Element Prefix
BRD.NN.32.01ADR-01InfrastructureADR.01.10.xx
BRD.NN.32.02ADR-02Data ArchitectureADR.02.10.xx
BRD.NN.32.03ADR-03IntegrationADR.03.10.xx
BRD.NN.32.04ADR-04SecurityADR.04.10.xx
BRD.NN.32.05ADR-05ObservabilityADR.05.10.xx
BRD.NN.32.06ADR-06AI/MLADR.06.10.xx
BRD.NN.32.07ADR-07Technology SelectionADR.07.10.xx

Topic Status Values (from BRD Section 7.2):

StatusMeaningADR Action
SelectedDecision made, ready for ADRGenerate full ADR
PendingUnder evaluationGenerate ADR with Proposed status
N/ANot applicable to projectSkip or generate minimal ADR with explanation

Required BRD Fields per Topic:

FieldRequiredDescription
StatusYesSelected/Pending/N/A
Business DriverYesWhy this decision matters
Business ConstraintsYesLimitations affecting decision
Alternatives OverviewIf SelectedOption comparison table
Cloud Provider ComparisonIf SelectedGCP/Azure/AWS comparison

Topic Prioritization:

def prioritize_topics(topics: list) -> list:
    """
    Priority order:
    1. Selected topics (ready for full ADR)
    2. Pending topics (ADR with Proposed status)
    3. N/A topics (minimal ADR with explanation)
    """
    return sorted(topics, key=lambda t: (
        0 if t.status == "Selected" else
        1 if t.status == "Pending" else 2
    ))

Phase 3: ADR Generation

Generate ADR documents with Context-Decision-Consequences format.

Skill Delegation: This phase follows rules defined in

doc-adr
skill. See:
.claude/skills/doc-adr/SKILL.md
for complete ADR creation guidance.

Quality Guidance: Uses

quality-advisor
skill for real-time feedback during generation. See:
.claude/skills/quality-advisor/SKILL.md
for quality monitoring.

Generation Process:

  1. Reserve ADR ID:

    # Check for next available ID
    ls docs/05_ADR/ADR-*.md docs/05_ADR/ADR-*/ADR-*.0_*.md 2>/dev/null | \
      grep -oP 'ADR-\K\d+' | sort -n | tail -1
    # Increment for new ADR
    
  2. Load ADR Template:

  • Primary:
    ai_dev_ssd_flow/05_ADR/ADR-MVP-TEMPLATE.md
  • Validation schema:
    ai_dev_ssd_flow/05_ADR/ADR_MVP_SCHEMA.yaml
  1. Generate Document Control Section:

    FieldValue
    Project NameFrom BRD
    Document Version0.1.0
    Date CreatedCurrent date (YYYY-MM-DD)
    Last UpdatedCurrent date (YYYY-MM-DD)
    Document OwnerFrom BRD stakeholder analysis
    Prepared ByAI Assistant
    StatusProposed (or Accepted if Selected)
    SYS-Ready ScoreCalculated after generation
  2. Generate Context Section (Section 4):

    Section 4.1 Problem Statement (from BRD):

    • Business Driver (BRD.NN.32.XX Business Driver field)
    • Business Constraints (BRD.NN.32.XX Constraints field)
    • Technical Options Evaluated (from PRD Section 18)
    • Evaluation Criteria (from PRD Section 18)

    Section 4.2 Background:

    • Current state description
    • Why decision is needed now
    • Stakeholder concerns

    Section 4.3 Driving Forces:

    • Business requirements pushing this decision
    • Technical requirements
    • Regulatory/compliance needs

    Section 4.4 Constraints:

    • Budget limitations
    • Timeline constraints
    • Technology restrictions
    • Team skills/capacity
  3. Generate Decision Section (Section 5):

    Section 5.1 Chosen Solution:

    • Clear statement of what is decided
    • Reference to technology stack (ADR-00)

    Section 5.2 Key Components:

    • Components involved in decision
    • Integration points
    • Dependencies

    Section 5.3 Implementation Approach:

    • High-level implementation strategy
    • Phasing if applicable
    • Migration considerations
  4. Generate Consequences Section (Section 7):

    Section 7.1 Positive Outcomes:

    • Benefits of the decision
    • Improvements enabled
    • Risk reductions

    Section 7.2 Negative Outcomes:

    • Trade-offs accepted
    • New risks introduced
    • Technical debt implications
  5. Generate Alternatives Section (Section 12):

    From BRD Alternatives Overview table:

    AlternativeDescriptionProsConsFit ScoreWhy Rejected
    Option A.........BetterSelected
    Option B.........GoodCost concerns
    Option C.........PoorScalability limits
  6. Real-Time Quality Feedback (via

    quality-advisor
    skill):

    • Monitor section completion as content is generated
    • Detect anti-patterns (AP-001 to AP-017) during creation
    • Validate element ID format compliance (ADR.NN.TT.SS)
    • Check for placeholder text ([TBD], TODO, XXX)
    • Verify Mermaid diagram presence (required for ADR)
    • Flag issues early to reduce post-generation rework
  7. Generate Remaining Sections:

    • Section 6: Requirements Satisfied (link to BRD/PRD)
    • Section 7: MVP/Next Cycle Scope (NEW in v2.0)
    • Section 8: Architecture Flow (Mermaid diagram REQUIRED)
    • Section 9: Implementation Assessment (complexity, dependencies)
    • Section 10: Impact Analysis
    • Section 11: Risk Thresholds (NEW in v2.0)
    • Section 12: Verification Approach
    • Section 13: Security Considerations
    • Section 14: Circuit Breaker Recovery (if applicable, NEW in v2.0)
    • Section 15: Related Decisions
    • Section 16: Implementation Notes
    • Section 17: Traceability
    • Section 18: References
  8. Generate MVP/Next Cycle Scope Section (Section 7 - NEW in v2.0):

    ### 7.1 MVP Scope (Phase 1)
    
    - Coordinator with basic intent classification
    - Risk Agent with position size circuit breaker
    - Execution Agent with IB order submission
    
    ### 7.2 Next Cycle Scope
    
    - Full multi-agent orchestration
    - All 7 circuit breakers active
    - Machine learning optimization
    

    Validation: Cross-check with parent PRD MVP scope for consistency.

  9. Generate Risk Thresholds Section (Section 11 - NEW in v2.0):

    Table 1: Risk Assessment:

    | Risk | Probability | Impact | Mitigation |
    |------|-------------|--------|------------|
    | Coordinator overload | Medium | High | Queue management, rate limiting |
    | Database unavailable | Low | Critical | Redis fallback, circuit breaker |
    

    Table 2: Risk Thresholds (quantified parameters):

    | Parameter | Value | Description |
    |-----------|-------|-------------|
    | `max_concurrent_requests` | 100 | Maximum simultaneous requests |
    | `queue_max_size` | 500 | Maximum pending requests |
    | `backpressure_threshold` | 80% | Queue utilization trigger |
    
  10. Generate Circuit Breaker Recovery Section (Section 14 - if applicable, NEW in v2.0):

    Only include if ADR mentions circuit breakers, rate limits, or control mechanisms.

    Table 1: Circuit Breaker Definitions:

    | Circuit Breaker | Trigger | Action | Recovery |
    |-----------------|---------|--------|----------|
    | CB-01: Rate Limit | >100 req/min | Block requests | Auto-reset after 1 min |
    | CB-02: Error Rate | >5% errors | Degrade service | Manual reset |
    

    Table 2: Reset Procedures:

    | Circuit Breaker | Authorization Level | Required Documentation | Cooldown Period |
    |-----------------|---------------------|------------------------|-----------------|
    | CB-01 (Rate Limit) | Auto | None | 60 seconds |
    | CB-02 (Error Rate) | Operator | Incident review | 15 minutes |
    
  11. Add Cumulative Tags (Section 16):

    Layer 5 Required Tags:

    @brd: BRD.NN.32.XX
    @prd: PRD.NN.18.XX
    @ears: EARS.NN.25.XX
    @bdd: BDD.NN.14.XX
    
  12. File Output (ALWAYS use nested folder):

    • Monolithic (<20k tokens):
      docs/05_ADR/ADR-NN_{slug}/ADR-NN_{slug}.md
    • Sectioned (≥20k tokens):
      docs/05_ADR/ADR-NN_{slug}/ADR-NN.0_index.md
      ,
      ADR-NN.1_core.md
      , etc.
    • Master Index (always):
      docs/05_ADR/ADR-00_index.md
      (create or update)

    Nested Folder Rule: ALL ADRs use nested folders (

    ADR-NN_{slug}/
    ) regardless of size. This keeps companion files (review reports, fix reports, drift cache) organized with their parent document.

Element ID Format (per

doc-naming
skill):

Element TypeCodeExample
Decision10ADR.02.10.01
Alternative12ADR.02.12.01
Consequence13ADR.02.13.01

Phase 4: ADR Validation

After ADR generation, validate structure and SYS-Ready score.

Skill Delegation: This phase uses validation rules from

doc-adr-validator
skill. See:
.claude/skills/doc-adr-validator/SKILL.md
for complete validation rules.

Validation Command:

python ai_dev_ssd_flow/05_ADR/scripts/validate_adr.py docs/05_ADR/ADR-NN_{slug}.md --verbose

Validation Checks (8 Total):

CheckTypeDescription
CHECK 1ErrorRequired Document Control Fields (7 fields)
CHECK 2ErrorADR Structure Completeness (required sections)
CHECK 3ErrorSYS-Ready Score Validation (format, threshold)
CHECK 4ErrorUpstream Traceability Tags (@brd, @prd, @ears, @bdd)
CHECK 5WarningDecision Quality Assessment
CHECK 6WarningArchitecture Documentation (Mermaid diagrams)
CHECK 7WarningImplementation Readiness
CHECK 8ErrorElement ID Format Compliance (unified 4-segment)

SYS-Ready Scoring Criteria (100%):

CategoryWeightCriteria
Decision Completeness30%Context/Decision/Consequences/Alternatives documented
Architecture Clarity35%Mermaid diagrams (REQUIRED), component responsibilities
Implementation Readiness20%Complexity assessment, dependencies, rollback strategies
Verification Approach15%Testing strategy, success metrics, operational readiness

Minimum Score: 90%

Auto-Fix Actions:

IssueAuto-Fix Action
Invalid element ID formatConvert to ADR.NN.TT.SS format
Missing traceability sectionInsert from template
Missing Document Control fieldsAdd placeholder fields
Legacy patterns (DEC-XXX, ALT-XXX, CON-XXX)Convert to unified format
Missing SYS-Ready ScoreCalculate and insert
Missing Mermaid diagramInsert template diagram

Validation Loop:

LOOP (max 3 iterations):
  1. Run doc-adr-validator
  2. IF errors found: Apply auto-fixes
  3. IF warnings found: Review and address if critical
  4. IF SYS-Ready Score < 90%: Enhance sections
  5. IF clean: Mark VALIDATED, proceed
  6. IF max iterations: Log issues, flag for manual review

Phase 5: Review & Fix Cycle (v2.1)

Iterative review and fix cycle to ensure ADR quality before completion.

flowchart TD
    A[Phase 5 Start] --> B[Run doc-adr-reviewer]
    B --> C[Generate Review Report]
    C --> D{Review Score >= 90?}

    D -->|Yes| E[PASS - Proceed to Final Checks]
    D -->|No| F{Iteration < Max?}

    F -->|Yes| G[Run doc-adr-fixer]
    G --> H[Apply Fixes]
    H --> I[Generate Fix Report]
    I --> J[Increment Iteration]
    J --> B

    F -->|No| K[Flag for Manual Review]
    K --> L[Generate Final Report with Remaining Issues]
    L --> E

5.1 Initial Review

Run

doc-adr-reviewer
to identify issues.

/doc-adr-reviewer ADR-NN

Output:

ADR-NN.A_audit_report_v001.md
(legacy-compatible reviewer report may still exist)

5.2 Fix Cycle

If review score < 90%, invoke

doc-adr-fixer
.

/doc-adr-fixer ADR-NN --revalidate

Fix Categories:

CategoryFixes Applied
Missing FilesCreate glossary, reference docs
Broken LinksUpdate paths, create targets
Element IDsConvert legacy patterns (DEC-XXX, ALT-XXX, CON-XXX), fix invalid type codes
ContentReplace template placeholders, update dates
ReferencesUpdate traceability tags
DiagramsAdd missing Mermaid diagrams

Output:

ADR-NN.F_fix_report_v001.md

5.3 Re-Review

After fixes, automatically re-run reviewer.

/doc-adr-reviewer ADR-NN

Output:

ADR-NN.A_audit_report_v002.md

5.4 Iteration Control

ParameterDefaultDescription
max_iterations
3Maximum fix-review cycles
target_score
90Minimum passing score
stop_on_manual
falseStop if only manual issues remain

Iteration Example:

Iteration 1:
  Review v001: Score 85 (2 errors, 4 warnings)
  Fix v001: Fixed 5 issues, added 1 diagram

Iteration 2:
  Review v002: Score 94 (0 errors, 2 warnings)
  Status: PASS (score >= 90)

5.5 Quality Checks (Post-Fix)

After passing the fix cycle:

  1. All ADRs Complete:

    • All 7 mandatory topic categories addressed
    • Each ADR has SYS-Ready score >= 90%
    • No placeholder text remaining
  2. Cross-ADR Consistency:

    • No conflicting decisions between ADRs
    • Technology choices align with ADR-00 stack
    • Dependencies between ADRs documented
  3. Traceability Matrix Update:

    # Update ADR-00_TRACEABILITY_MATRIX.md
    

python ai_dev_ssd_flow/scripts/update_traceability_matrix.py
--type ADR
--matrix docs/05_ADR/ADR-00_TRACEABILITY_MATRIX.md


4. **SYS-Ready Report**:

SYS-Ready Score Breakdown

Decision Completeness: 30/30 (Context/Decision/Consequences) Architecture Clarity: 33/35 (Mermaid diagrams present) Implementation Readiness: 19/20 (Complexity assessment) Verification Approach: 14/15 (Testing strategy)

Total SYS-Ready Score: 96/100 (Target: >= 90) Status: READY FOR SYS GENERATION


5. **Summary Report Generation**:

ADR Generation Summary

Total ADRs Generated: 7

Status Distribution: Accepted: 5 Proposed: 2 N/A: 0

SYS-Ready Scores: ADR-01 (Infrastructure): 95% ADR-02 (Data Architecture): 92% ADR-03 (Integration): 94% ADR-04 (Security): 96% ADR-05 (Observability): 91% ADR-06 (AI/ML): 90% ADR-07 (Technology): 93%

Average SYS-Ready Score: 93%

Next Steps: 1. Review Proposed ADRs for stakeholder approval 2. Run doc-sys-autopilot to generate SYS from ADRs


---

## Execution Modes

### Single ADR Mode

Generate one ADR from a specific BRD topic.

```bash
# Example: Generate ADR-01 from Infrastructure topic
/doc-adr-autopilot BRD.01.32.01

# Output:
# Analyzing BRD.01.32.01 (Infrastructure)...
# Status: Selected
# Generating ADR-01_infrastructure.md...
# SYS-Ready Score: 94%
# Complete.

Batch Mode (All 7 Topics)

Generate all ADRs from BRD Section 7.2.

# Example: Generate all ADRs from BRD-01
/doc-adr-autopilot BRD-01 --all-topics

# Output:
# Scanning BRD-01 Section 7.2...
# Found 7 ADR topics:
#   BRD.01.32.01 (Infrastructure) - Selected
#   BRD.01.32.02 (Data Architecture) - Selected
#   BRD.01.32.03 (Integration) - Selected
#   BRD.01.32.04 (Security) - Selected
#   BRD.01.32.05 (Observability) - Pending
#   BRD.01.32.06 (AI/ML) - Pending
#   BRD.01.32.07 (Technology) - Selected
#
# Generating ADRs...
# [================>          ] 5/7 Complete

Dry Run Mode

Preview ADR generation plan without creating files.

/doc-adr-autopilot BRD-01 --dry-run

# Output:
# ADR Generation Plan (Dry Run)
# ============================
# Source: BRD-01 Section 7.2
#
# Planned ADRs:
# 1. ADR-01 (Infrastructure) - Full generation
# 2. ADR-02 (Data Architecture) - Full generation
# 3. ADR-03 (Integration) - Full generation
# 4. ADR-04 (Security) - Full generation
# 5. ADR-05 (Observability) - Proposed status
# 6. ADR-06 (AI/ML) - Proposed status
# 7. ADR-07 (Technology) - Full generation
#
# No files will be created in dry-run mode.

Review Mode (v2.1)

Validate existing ADR documents and generate a quality report without modification.

Purpose: Audit existing ADR documents for compliance, quality scores, and identify issues.

Command:

# Review single ADR
/doc-adr-autopilot ADR-01

# Review all ADRs
/doc-adr-autopilot ADR-ALL --mode review --output-report tmp/adr_review_report.md

Review Process:

flowchart TD
    A[Input: Existing ADR] --> B[Load ADR Documents]
    B --> C[Run Validation Checks]
    C --> D[Calculate SYS-Ready Score]
    D --> E[Check v2.0 Compliance]
    E --> F[Validate Structure]
    F --> G[Identify Issues]
    G --> H{Generate Report}
    H --> I[Fixable Issues List]
    H --> J[Manual Review Items]
    H --> K[Score Breakdown]
    I --> L[Output: Review Report]
    J --> L
    K --> L

Review Report Structure:

# ADR Review Report: ADR-01_infrastructure

## Summary
- **SYS-Ready Score**: 87% 🟡
- **Total Issues**: 11
- **Auto-Fixable**: 7
- **Manual Review**: 4

## Score Breakdown
| Category | Score | Status |
|----------|-------|--------|
| Decision Completeness | 27/30 | 🟡 |
| Architecture Clarity | 32/35 | 🟡 |
| Implementation Readiness | 18/20 | ✅ |
| Verification Approach | 12/15 | 🟡 |

## v2.0 Compliance
| Check | Status | Details |
|-------|--------|---------|
| Folder Structure | ✅ | Nested structure used correctly |
| Visual Score Indicator | ❌ | Missing emoji indicator |
| Risk Thresholds Table | ❌ | Section 11 missing quantified parameters |
| Circuit Breaker Recovery | 🟡 | CB mentioned but no recovery table |
| MVP/Next Cycle Scope | ✅ | Section 7 present |
| Traceability Format | 🟡 | 2 tags missing hierarchical format |
| Index File | ✅ | ADR-01.00_index.md present |

## Structure Validation
| Section | Present | Status |
|---------|---------|--------|
| Context | ✅ | Complete |
| Decision | ✅ | Complete |
| Consequences | ✅ | Complete |
| Alternatives | 🟡 | Missing "Why Rejected" column |
| Architecture Flow | ❌ | Mermaid diagram missing |

## Auto-Fixable Issues
| # | Issue | Location | Fix Action |
|---|-------|----------|------------|
| 1 | Missing visual indicator | Document Control | Add ✅/🟡/❌ to SYS-Ready Score |
| 2 | Legacy element ID | Section 5:L45 | Convert DEC-001 to ADR.01.10.01 |
| 3 | Missing traceability tag | Section 17 | Add @bdd tag |
| ... | ... | ... | ... |

## Manual Review Required
| # | Issue | Location | Reason |
|---|-------|----------|--------|
| 1 | Incomplete context | Section 4.2:L78 | Domain knowledge needed |
| 2 | Missing Mermaid diagram | Section 8 | Architecture decision required |
| ... | ... | ... | ... |

## Recommendations
1. Run fix mode to address 7 auto-fixable issues
2. Add Mermaid architecture diagram
3. Complete Risk Thresholds table (Section 11)
4. Add Circuit Breaker Recovery table if applicable

Review Configuration:

review_mode:
  enabled: true
  checks:
    - structure_validation      # Document control, required sections
    - element_id_compliance     # ADR.NN.TT.SS format
    - mermaid_diagrams          # Architecture flow presence
    - v2_compliance             # New v2.0 sections
    - cumulative_tags           # 4 upstream tags
    - score_calculation         # SYS-Ready score
    - folder_structure          # Nested vs flat
  output:
    format: markdown           # markdown, json, html
    include_line_numbers: true
    include_fix_suggestions: true
  thresholds:
    pass: 90
    warning: 85
    fail: 0

Fix Mode (v2.1)

Auto-repair existing ADR documents while preserving manual content.

Purpose: Apply automated fixes to ADR documents to improve quality scores and compliance.

Command:

# Fix single ADR
/doc-adr-autopilot ADR-01 --mode fix

# Fix with backup
/doc-adr-autopilot ADR-01 --mode fix --backup

# Fix specific issue types only
/doc-adr-autopilot ADR-01 --mode fix --fix-types "element_ids,tags,v2_sections"

# Dry-run fix (preview changes)
/doc-adr-autopilot ADR-01 --mode fix --dry-run

Fix Process:

flowchart TD
    A[Input: Existing ADR] --> B[Run Review Mode]
    B --> C[Identify Fixable Issues]
    C --> D{Backup Enabled?}
    D -->|Yes| E[Create Backup]
    D -->|No| F[Skip Backup]
    E --> G[Apply Fixes by Category]
    F --> G

    subgraph FixCategories["Fix Categories"]
        G --> H[Element ID Fixes]
        G --> I[Structure Fixes]
        G --> J[v2.0 Section Fixes]
        G --> K[Traceability Fixes]
        G --> L[Visual Indicator Fixes]
    end

    H --> M[Preserve Manual Content]
    I --> M
    J --> M
    K --> M
    L --> M

    M --> N[Re-validate]
    N --> O{Score Improved?}
    O -->|Yes| P[Generate Fix Report]
    O -->|No| Q[Log Warnings]
    Q --> P
    P --> R[Output: Fixed ADR + Report]

Fix Categories and Actions:

CategoryIssueAuto-Fix ActionPreserves Content
Element IDsLegacy DEC-XXX formatConvert to ADR.NN.10.SS
Element IDsLegacy ALT-XXX formatConvert to ADR.NN.12.SS
Element IDsLegacy CON-XXX formatConvert to ADR.NN.13.SS
StructureMissing Document Control fieldsAdd from template
StructureMissing traceability sectionInsert from template
StructureMissing SYS-Ready ScoreCalculate and insert
v2.0 SectionsMissing visual indicatorAdd ✅/🟡/❌ based on score
v2.0 SectionsMissing Risk ThresholdsAdd template table
v2.0 SectionsMissing MVP ScopeAdd Section 7 template
v2.0 SectionsMissing CB RecoveryAdd template if CB mentioned
TraceabilityMissing cumulative tagsAdd with placeholder references
TraceabilityNon-hierarchical formatConvert to BRD.NN.TT.SS format
DiagramsMissing MermaidInsert template diagram

Content Preservation Rules:

  1. Never delete existing decision content
  2. Never modify Context section text
  3. Never change Alternatives evaluation
  4. Only add missing sections and metadata
  5. Only replace legacy element IDs
  6. Backup first if
    --backup
    flag is set

Fix Report Structure:

# ADR Fix Report: ADR-01_infrastructure

## Summary
- **Before SYS-Ready Score**: 87% 🟡
- **After SYS-Ready Score**: 94% ✅
- **Issues Fixed**: 7
- **Issues Remaining**: 4 (manual review required)

## Fixes Applied
| # | Issue | Location | Fix Applied |
|---|-------|----------|-------------|
| 1 | Legacy element ID | Section 5:L45 | Converted DEC-001 → ADR.01.10.01 |
| 2 | Missing visual indicator | Document Control | Added ✅ 94% (Target: ≥90%) |
| 3 | Missing @bdd tag | Section 17 | Added @bdd: BDD.01.14.01 |
| 4 | Missing Risk Thresholds | Section 11 | Added template table |
| ... | ... | ... | ... |

## Files Modified
- docs/05_ADR/ADR-01_infrastructure/ADR-01.00_index.md
- docs/05_ADR/ADR-01_infrastructure/ADR-01.1_context.md
- docs/05_ADR/ADR-01_infrastructure/ADR-01.5_decision.md

## Backup Location
- tmp/backup/ADR-01_infrastructure_20260209_143022/

## Remaining Issues (Manual Review)
| # | Issue | Location | Reason |
|---|-------|----------|--------|
| 1 | Incomplete context | Section 4.2:L78 | Domain knowledge needed |
| 2 | Missing Mermaid diagram | Section 8 | Architecture decision required |
| ... | ... | ... | ... |

## Score Breakdown Impact
| Category | Before | After | Delta |
|----------|--------|-------|-------|
| Decision Completeness | 27/30 | 29/30 | +2 |
| Architecture Clarity | 32/35 | 33/35 | +1 |
| Implementation Readiness | 18/20 | 19/20 | +1 |
| Verification Approach | 12/15 | 13/15 | +1 |

## Next Steps
1. Add Mermaid architecture diagram to Section 8
2. Review and complete context in Section 4.2
3. Re-run validation to confirm score
4. Commit changes if satisfied

Fix Configuration:

fix_mode:
  enabled: true
  backup:
    enabled: true
    location: "tmp/backup/"
    retention_days: 7

  fix_categories:
    element_ids: true        # Legacy ID conversion
    structure: true          # Document sections
    v2_sections: true        # New v2.0 sections
    traceability: true       # Cumulative tags
    visual_indicators: true  # Score emoji indicators
    mermaid: false           # Diagram insertion (risky)

  preservation:
    context_section: true    # Never modify context
    decision_section: true   # Never modify decision
    alternatives: true       # Never modify evaluation
    comments: true           # Preserve user comments

  validation:
    re_validate_after_fix: true
    require_score_improvement: false
    max_fix_iterations: 3

  element_id_migration:
    DEC_XXX_to_ADR_NN_10_SS: true   # DEC-001 → ADR.01.10.01
    ALT_XXX_to_ADR_NN_12_SS: true   # ALT-001 → ADR.01.12.01
    CON_XXX_to_ADR_NN_13_SS: true   # CON-001 → ADR.01.13.01

Command Line Options (Review/Fix):

OptionModeDefaultDescription
--mode review
Review-Run review mode only
--mode fix
Fix-Run fix mode
--output-report
BothautoReport output path
--backup
FixtrueCreate backup before fixing
--fix-types
FixallComma-separated fix categories
--dry-run
FixfalsePreview fixes without applying
--preserve-all
FixfalseExtra cautious preservation
--min-score-gain
Fix0Minimum score improvement required

Output Artifacts

Generated Files

All ADRs use nested folders (

ADR-NN_{slug}/
) regardless of size. Document sectioning (monolithic vs sectioned) depends only on document size (>20k tokens = sectioned).

FilePurposeLocation
ADR-NN_{slug}/ADR folder (ALWAYS created)
docs/05_ADR/
ADR-NN_{slug}.mdMain ADR document (monolithic <20k tokens)
docs/05_ADR/ADR-NN_{slug}/
ADR-NN.0_index.mdSection index (sectioned ≥20k tokens)
docs/05_ADR/ADR-NN_{slug}/
ADR-NN.S_{section}.mdSection files (sectioned ≥20k tokens)
docs/05_ADR/ADR-NN_{slug}/
ADR-NN.A_audit_report_v{VVV}.mdCombined audit report (preferred)
docs/05_ADR/ADR-NN_{slug}/
ADR-NN.R_review_report_v{VVV}.mdReviewer report (legacy-compatible)
docs/05_ADR/ADR-NN_{slug}/
ADR-NN.F_fix_report_v{VVV}.mdFix report
docs/05_ADR/ADR-NN_{slug}/
.drift_cache.jsonDrift detection cache
docs/05_ADR/ADR-NN_{slug}/

Validation Reports

ReportPurposeLocation
adr_validation_report.jsonValidation results
tmp/
sys_ready_scores.jsonSYS-Ready breakdown
tmp/
adr_autopilot_log.mdExecution log
tmp/

Error Handling

Error Categories

CategoryHandlingExample
BRD Section 7.2 MissingAbort with messageNo Architecture Decision Requirements found
Topic Status InvalidFlag for manual reviewStatus not Selected/Pending/N/A
Validation FailureAuto-fix, retryMissing required section
SYS-Ready Below 90%Enhance sections, retryScore at 85%
Max Retries ExceededFlag for manual reviewPersistent validation errors

Recovery Actions

def handle_error(error_type: str, context: dict) -> Action:
    match error_type:
        case "BRD_SECTION_MISSING":
            return Action.ABORT_WITH_MESSAGE
        case "TOPIC_STATUS_INVALID":
            return Action.FLAG_MANUAL_REVIEW
        case "VALIDATION_FAILURE":
            if context["retry_count"] < 3:
                return Action.AUTO_FIX_RETRY
            return Action.FLAG_MANUAL_REVIEW
        case "SYS_READY_LOW":
            return Action.ENHANCE_SECTIONS
        case _:
            return Action.FLAG_MANUAL_REVIEW

Configuration

Default Configuration

# config/adr_autopilot.yaml
adr_autopilot:
  version: "1.0"

  scoring:
    sys_ready_min: 90
    strict_mode: false

  execution:
    max_parallel: 3        # HARD LIMIT - do not exceed
    chunk_size: 3          # Documents per chunk
    pause_between_chunks: true
    auto_fix: true
    continue_on_error: false
    timeout_per_topic: 180  # seconds

  output:
    structure: auto  # auto, monolithic, sectioned
    size_threshold_kb: 25
    report_format: markdown

  validation:
    skip_validation: false
    fix_iterations_max: 3
    require_mermaid: true

  topics:
    generate_all: true
    skip_na_topics: false

Command Line Options

OptionDefaultDescription
--min-sys-ready
90Minimum SYS-Ready score
--no-auto-fix
falseDisable auto-fix (manual only)
--continue-on-error
falseContinue if one topic fails
--dry-run
falsePreview execution plan only
--output-format
autoForce monolithic or sectioned output
--skip-na
falseSkip N/A topics entirely

Context Management

Chunked Parallel Execution (MANDATORY)

CRITICAL: To prevent conversation context overflow errors ("Prompt is too long", "Conversation too long"), all autopilot operations MUST follow chunked execution rules:

Chunk Size Limit: Maximum 3 documents per chunk

Chunking Rules:

  1. Chunk Formation: Group ADR topics into chunks of maximum 3 at a time
  2. Sequential Chunk Processing: Process one chunk at a time, completing all ADRs in a chunk before starting the next
  3. Context Pause: After completing each chunk, provide a summary and pause for user acknowledgment
  4. Progress Tracking: Display chunk progress (e.g., "Chunk 2/3: Processing ADR-04, ADR-05, ADR-06")

Execution Pattern:

ADR Topics: ADR-01, ADR-02, ADR-03, ADR-04, ADR-05, ADR-06, ADR-07

Chunk 1: [ADR-01, ADR-02, ADR-03] → Process → Summary → Pause
Chunk 2: [ADR-04, ADR-05, ADR-06] → Process → Summary → Pause
Chunk 3: [ADR-07]                  → Process → Summary → Complete

Chunk Completion Summary Template:

Chunk N/M Complete:
├── Generated: ADR-01, ADR-02, ADR-03
├── SYS-Ready Scores: 94%, 92%, 91%
├── Status: All validated
└── Next: Continue with Chunk N+1? [Y/n]

Why Chunking is Required:

  • Prevents "Conversation too long" errors during batch processing
  • Allows context compaction between chunks
  • Enables recovery from failures without losing all progress
  • Provides natural checkpoints for user review

Integration Points

Pre-Execution Hooks

# Hook: pre_adr_generation
# Runs before ADR generation starts
./hooks/pre_adr_generation.sh

# Example: Verify BRD Section 7.2 exists
grep -q "7.2.*Architecture Decision Requirements" docs/01_BRD/BRD-*.md || {
  echo "ERROR: BRD Section 7.2 required"
  exit 1
}

Post-Execution Hooks

# Hook: post_adr_generation
# Runs after ADR generation completes
./hooks/post_adr_generation.sh

# Example: Trigger SYS autopilot for validated ADRs
if [ "$ALL_ADRS_VALIDATED" = "true" ]; then
  echo "Invoke downstream workflow: /doc-sys-autopilot ADR-ALL"
fi

CI/CD Integration

# .github/workflows/adr_autopilot.yml
name: ADR Autopilot

on:
  push:
    paths:
      - 'docs/01_BRD/**/BRD-*.md'

jobs:
  generate-adr:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Run ADR Autopilot
        run: |
          echo "/doc-adr-autopilot BRD-01 --all-topics --validate"

      - name: Upload Validation Report
        uses: actions/upload-artifact@v4
        with:
          name: adr-validation
          path: tmp/adr_validation_report.json

Quality Gates

Phase Gates

PhaseGateCriteria
Phase 1BRD GateBRD Section 7.2 exists with ADR topics
Phase 2Topic GateAll 7 categories identified
Phase 3Generation GateAll sections generated per topic
Phase 4Validation GateSYS-Ready Score >= 90%
Phase 5Review GateNo blocking issues remaining

Blocking vs Non-Blocking

Issue TypeBlockingAction
Missing Context sectionYesMust fix before proceeding
Missing Decision sectionYesMust fix before proceeding
SYS-Ready Score < 90%YesMust enhance sections
Invalid element ID formatYesMust convert to unified format
Missing Mermaid diagramYesMust add architecture flow
Missing optional sectionNoLog warning, continue
Style/formatting issuesNoAuto-fix, continue

Related Resources

  • ADR Creation Skill:
    .claude/skills/doc-adr/SKILL.md
  • ADR Validator Skill:
    .claude/skills/doc-adr-validator/SKILL.md
  • Quality Advisor Skill:
    .claude/skills/quality-advisor/SKILL.md
  • Naming Standards Skill:
    .claude/skills/doc-naming/SKILL.md
  • ADR Template:
    ai_dev_ssd_flow/05_ADR/ADR-MVP-TEMPLATE.md
  • ADR Creation Rules:
    ai_dev_ssd_flow/05_ADR/ADR_MVP_CREATION_RULES.md
  • ADR Validation Rules:
    ai_dev_ssd_flow/05_ADR/ADR_MVP_VALIDATION_RULES.md
  • Technology Stack:
    docs/05_ADR/ADR-00_technology_stack.md
  • BRD Autopilot Skill:
    .claude/skills/doc-brd-autopilot/SKILL.md
  • PRD Autopilot Skill:
    .claude/skills/doc-prd-autopilot/SKILL.md

Quick Reference

InputOutputKey Metric
BRD Section 7.2ADR-01 to ADR-07SYS-Ready >= 90%

Usage:

/doc-adr-autopilot <BRD-ID> [OPTIONS]

Common Commands:

# Generate all ADRs from BRD-01
/doc-adr-autopilot BRD-01 --all-topics

# Generate single ADR from specific topic
/doc-adr-autopilot BRD.01.32.01

# Preview only
/doc-adr-autopilot BRD-01 --dry-run

# Resume after failure
/doc-adr-autopilot resume

BRD Section 7.2 to ADR Mapping:

BRD ElementADRTopic
BRD.NN.32.01ADR-01Infrastructure
BRD.NN.32.02ADR-02Data Architecture
BRD.NN.32.03ADR-03Integration
BRD.NN.32.04ADR-04Security
BRD.NN.32.05ADR-05Observability
BRD.NN.32.06ADR-06AI/ML
BRD.NN.32.07ADR-07Technology Selection

Validation Rules (v2.0)

CheckRequirementError Code
Folder StructureNested for >2 decisions per topicADR-E030
Visual ScoreEmoji indicator (✅/🟡/❌) presentADR-E031
Risk ThresholdsQuantified parameter table in Section 11ADR-E032
Circuit BreakerRecovery table if CB mentionedADR-E033
MVP ScopeSection 7.1/7.2 presentADR-E034
Traceability FormatHierarchical dot notation (@brd:BRD.NN.TT.SS)ADR-E035
Index FileADR-NN.00_index.md for nested foldersADR-E036

SYS-Ready Score Display (v2.0)

Visual Status Indicators:

| **SYS-Ready Score** | ✅ 92% (Target: ≥90%) |  # Passing
| **SYS-Ready Score** | 🟡 87% (Target: ≥90%) |  # Near threshold
| **SYS-Ready Score** | ❌ 75% (Target: ≥90%) |  # Failing

Review Document Standards (v2.2)

IMPORTANT: Review reports generated by this autopilot are formal project documents.

See:

.claude/skills/REVIEW_DOCUMENT_STANDARDS.md
for complete standards.

Quick Reference

RequirementValue
Storage LocationSame folder as reviewed ADR
File Name
ADR-NN.A_audit_report_vNNN.md
(preferred),
ADR-NN.R_review_report_vNNN.md
(legacy)
YAML FrontmatterMANDATORY - see shared standards
Parent ReferenceMANDATORY - link to ADR document

Example Location:

docs/05_ADR/
├── ADR-03_data_architecture.md
├── ADR-03.A_audit_report_v001.md    # ← Preferred report stored here
└── ADR-03.R_review_report_v001.md    # ← Legacy-compatible reviewer report

Version History

VersionDateChanges
2.62026-02-27Migrated frontmatter to
metadata
; removed non-existent script/template references; normalized ADR MVP paths to
ai_dev_ssd_flow
; aligned output/report contracts to prefer
ADR-NN.A_audit_report_vNNN.md
with legacy reviewer compatibility
2.52026-02-26Updated skill dependency reference from 17-section to 11-section MVP structure (aligned with ADR-MVP-TEMPLATE.md v1.1)
2.42026-02-11Smart Document Detection: Added automatic document type recognition; Self-type input (ADR-NN) triggers review mode; Multiple upstream-type inputs (BDD/EARS/PRD/BRD-NN) trigger generate-if-missing or find-and-review; Updated input patterns table with type-based actions
2.32026-02-10Review & Fix Cycle: Replaced Phase 5 with iterative Review -> Fix cycle using
doc-adr-reviewer
and
doc-adr-fixer
; Added
doc-adr-fixer
skill dependency; Phase 5 now includes flowchart, iteration control, and quality checks sections (5.1-5.5)
2.22026-02-10Added Review Document Standards: review reports stored alongside reviewed documents with YAML frontmatter and parent references
2.12026-02-09Added Review Mode for validating existing ADR documents without modification; Added Fix Mode for auto-repairing ADR documents while preserving manual content; Added fix categories (element_ids, structure, v2_sections, traceability, visual_indicators); Added content preservation rules; Added backup functionality for fix operations; Added review/fix report generation with score breakdown impact; Added element ID migration support (DEC_XXX, ALT_XXX, CON_XXX to unified format)
2.02026-02-09Added Phase 1.5: Folder Structure Analysis with nested folder support; Added Section 7: MVP/Next Cycle Scope; Added Section 11: Risk Thresholds with quantified parameters; Added Section 14: Circuit Breaker Recovery; Added visual SYS-Ready score indicators (✅/🟡/❌); Added validation rules ADR-E030 to ADR-E036; Added hierarchical traceability format
1.02026-02-08Initial skill creation with 5-phase workflow; Integrated doc-naming, doc-adr, doc-adr-validator, quality-advisor skills; Added BRD Section 7.2 to ADR mapping; Context-Decision-Consequences generation