Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计提醒

doc-adr-autopilot文档 ADR 自动驾驶仪

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

649

周安装

26

GitHub Stars

14

下载量

210
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:doc-adr-autopilot(文档 ADR 自动驾驶仪)
来源仓库:https://github.com/vladm3105/aidoc-flow-framework
仓库路径:skills/doc-adr-autopilot
安装命令:
npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill doc-adr-autopilot
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill doc-adr-autopilot

简介

自动化生成符合规范的架构决策记录(ADR),支持多输入源与格式输出。

  • 适用于从 BRD、PRD 等上游文档自动生成结构化 ADR 文件。
  • 提供模板填充、验证与追踪能力,确保决策可追溯且格式统一。
  • 需通过 GitHub 安装,依赖 IPLAN 标准输入合同,支持并行执行模式。
  • doc-adr-autopilot 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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-namingElement ID format (ADR.NN.xxxx), threshold tags, legacy pattern detectionAll Phases
doc-adrADR creation rules, 11-section MVP structure, lifecycle statesPhase 3: ADR Generation
quality-advisorReal-time quality feedback during ADR generationPhase 3: ADR Generation
doc-adr-validatorValidate ADR structure, content, SYS-Ready scorePhase 4: ADR Validation
doc-adr-reviewerContent review, link validation, quality scoringPhase 5: Review
doc-adr-fixerApply 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

Document Type Contract (MANDATORY)

When generating ADR document instances, the autopilot MUST:

  1. Read instance_document_type from template:

- Source: ai_dev_ssd_flow/05_ADR/ADR-MVP-TEMPLATE.yaml - Field: metadata.instance_document_type: "adr-document"

  1. Set document_type in generated document frontmatter: custom_fields: document_type: adr-document # NOT "template" artifact_type: ADR layer: 5
  2. Validation: Generated documents MUST have document_type: adr-document

- Templates have document_type: template - Instances have document_type: adr-document - Schema validates both values

Error Handling: If instance_document_type is missing from template, default to adr-document.


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-NNSelf typeReview existing ADR document
BDD-NNPrimary upstreamGenerate if missing, review if exists
EARS-NNAlternative upstreamGenerate if missing, review if exists
PRD-NNAlternative upstreamGenerate if missing, review if exists
BRD-NNAlternative 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.2docs/01_BRD/BRD-NN_{slug}/Architecture Decision Requirements
2PRD Section 18docs/02_PRD/PRD-NN_{slug}/Architecture Decision Requirements (inherited)
3Technology Stackdocs/05_ADR/ADR-00_technology_stack.mdApproved 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 fileADR-02_Session_Architecture.md
1-to-many (multiple decisions)Nested folderADR-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: Field Value Project Name From BRD Document Version 0.1.0 Date Created Current date (YYYY-MM-DD) Last Updated Current date (YYYY-MM-DD) Document Owner From BRD stakeholder analysis Prepared By AI Assistant Status Proposed (or Accepted if Selected) SYS-Ready Score Calculated after generation
  2. Generate Context Section (Section 4): Section 4.1 Problem Statement (from BRD): Section 4.2 Background: Section 4.3 Driving Forces: Section 4.4 Constraints:

- 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) - Current state description - Why decision is needed now - Stakeholder concerns - Business requirements pushing this decision - Technical requirements - Regulatory/compliance needs - Budget limitations - Timeline constraints - Technology restrictions - Team skills/capacity

  1. Generate Decision Section (Section 5): Section 5.1 Chosen Solution: Section 5.2 Key Components: Section 5.3 Implementation Approach:

- Clear statement of what is decided - Reference to technology stack (ADR-00) - Components involved in decision - Integration points - Dependencies - High-level implementation strategy - Phasing if applicable - Migration considerations

  1. Generate Consequences Section (Section 7): Section 7.1 Positive Outcomes: Section 7.2 Negative Outcomes:

- Benefits of the decision - Improvements enabled - Risk reductions - Trade-offs accepted - New risks introduced - Technical debt implications

  1. Generate Alternatives Section (Section 12): From BRD Alternatives Overview table: Alternative Description Pros Cons Fit Score Why Rejected Option A......... Better Selected Option B......... Good Cost concerns Option C......... Poor Scalability limits
  2. 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.xxxx) - Check for placeholder text ([TBD], TODO, XXX) - Verify Mermaid diagram presence (required for ADR) - Flag issues early to reduce post-generation rework

  1. 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

  1. 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.
  2. 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 | `
  3. 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 |
  4. 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
  5. File Output (ALWAYS use nested folder): 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.

- 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)

Element ID Format (per doc-naming skill):

Element TypeCodeExample
Decision10ADR.02.1001
Alternative12ADR.02.1201
Consequence13ADR.02.1301

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 3-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.xxxx 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_iterations3Maximum fix-review cycles
target_score90Minimum passing score
stop_on_manualfalseStop 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

  1. Cross-ADR Consistency:

- No conflicting decisions between ADRs - Technology choices align with ADR-00 stack - Dependencies between ADRs documented

  1. 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.

Example: Generate ADR-01 from Infrastructure topic

/doc-adr-autopilot BRD.01.3201

Output:

Analyzing BRD.01.3201 (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.3201 (Infrastructure) - Selected

BRD.01.3202 (Data Architecture) - Selected

BRD.01.3203 (Integration) - Selected

BRD.01.3204 (Security) - Selected

BRD.01.3205 (Observability) - Pending

BRD.01.3206 (AI/ML) - Pending

BRD.01.3207 (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

CategoryScoreStatus
Decision Completeness27/30🟡
Architecture Clarity32/35🟡
Implementation Readiness18/20
Verification Approach12/15🟡

v2.0 Compliance

CheckStatusDetails
Folder StructureNested structure used correctly
Visual Score IndicatorMissing emoji indicator
Risk Thresholds TableSection 11 missing quantified parameters
Circuit Breaker Recovery🟡CB mentioned but no recovery table
MVP/Next Cycle ScopeSection 7 present
Traceability Format🟡2 tags missing hierarchical format
Index FileADR-01.00_index.md present

Structure Validation

SectionPresentStatus
ContextComplete
DecisionComplete
ConsequencesComplete
Alternatives🟡Missing "Why Rejected" column
Architecture FlowMermaid diagram missing

Auto-Fixable Issues

#IssueLocationFix Action
1Missing visual indicatorDocument ControlAdd ✅/🟡/❌ to SYS-Ready Score
2Legacy element IDSection 5:L45Convert DEC-001 to ADR.01.1001
3Missing traceability tagSection 17Add @bdd tag
............

Manual Review Required

#IssueLocationReason
1Incomplete contextSection 4.2:L78Domain knowledge needed
2Missing Mermaid diagramSection 8Architecture 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.xxxx 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**:

| Category | Issue | Auto-Fix Action | Preserves Content |
| --- | --- | --- | --- |
| **Element IDs** | Legacy DEC-XXX format | Convert to ADR.NN.10.SS | ✅ |
| **Element IDs** | Legacy ALT-XXX format | Convert to ADR.NN.12.SS | ✅ |
| **Element IDs** | Legacy CON-XXX format | Convert to ADR.NN.13.SS | ✅ |
| **Structure** | Missing Document Control fields | Add from template | ✅ |
| **Structure** | Missing traceability section | Insert from template | ✅ |
| **Structure** | Missing SYS-Ready Score | Calculate and insert | ✅ |
| **v2.0 Sections** | Missing visual indicator | Add ✅/🟡/❌ based on score | ✅ |
| **v2.0 Sections** | Missing Risk Thresholds | Add template table | ✅ |
| **v2.0 Sections** | Missing MVP Scope | Add Section 7 template | ✅ |
| **v2.0 Sections** | Missing CB Recovery | Add template if CB mentioned | ✅ |
| **Traceability** | Missing cumulative tags | Add with placeholder references | ✅ |
| **Traceability** | Non-hierarchical format | Convert to BRD.NN.xxxx format | ✅ |
| **Diagrams** | Missing Mermaid | Insert 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

#IssueLocationFix Applied
1Legacy element IDSection 5:L45Converted DEC-001 → ADR.01.1001
2Missing visual indicatorDocument ControlAdded ✅ 94% (Target: ≥90%)
3Missing @bdd tagSection 17Added @bdd: BDD.01.1401
4Missing Risk ThresholdsSection 11Added 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)

#IssueLocationReason
1Incomplete contextSection 4.2:L78Domain knowledge needed
2Missing Mermaid diagramSection 8Architecture decision required
............

Score Breakdown Impact

CategoryBeforeAfterDelta
Decision Completeness27/3029/30+2
Architecture Clarity32/3533/35+1
Implementation Readiness18/2019/20+1
Verification Approach12/1513/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.1001 ALT_XXX_to_ADR_NN_12_SS: true # ALT-001 → ADR.01.1201 CON_XXX_to_ADR_NN_13_SS: true # CON-001 → ADR.01.1301


**Command Line Options (Review/Fix)**:

| Option | Mode | Default | Description |
| --- | --- | --- | --- |
| `--mode review` | Review | - | Run review mode only |
| `--mode fix` | Fix | - | Run fix mode |
| `--output-report` | Both | auto | Report output path |
| `--backup` | Fix | true | Create backup before fixing |
| `--fix-types` | Fix | all | Comma-separated fix categories |
| `--dry-run` | Fix | false | Preview fixes without applying |
| `--preserve-all` | Fix | false | Extra cautious preservation |
| `--min-score-gain` | Fix | 0 | Minimum 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).

| File | Purpose | Location |
| --- | --- | --- |
| ADR-NN_{slug}/ | ADR folder (ALWAYS created) | `docs/05_ADR/` |
| ADR-NN_{slug}.md | Main ADR document (monolithic <20k tokens) | `docs/05_ADR/ADR-NN_{slug}/` |
| ADR-NN.0_index.md | Section index (sectioned ≥20k tokens) | `docs/05_ADR/ADR-NN_{slug}/` |
| ADR-NN.S_{section}.md | Section files (sectioned ≥20k tokens) | `docs/05_ADR/ADR-NN_{slug}/` |
| ADR-NN.A_audit_report_v{VVV}.md | Combined audit report (preferred) | `docs/05_ADR/ADR-NN_{slug}/` |
| ADR-NN.R_review_report_v{VVV}.md | Reviewer report (legacy-compatible) | `docs/05_ADR/ADR-NN_{slug}/` |
| ADR-NN.F_fix_report_v{VVV}.md | Fix report | `docs/05_ADR/ADR-NN_{slug}/` |
| .drift_cache.json | Drift detection cache | `docs/05_ADR/ADR-NN_{slug}/` |

### Validation Reports

| Report | Purpose | Location |
| --- | --- | --- |
| adr_validation_report.json | Validation results | `tmp/` |
| sys_ready_scores.json | SYS-Ready breakdown | `tmp/` |
| adr_autopilot_log.md | Execution log | `tmp/` |

---

## Error Handling

### Error Categories

| Category | Handling | Example |
| --- | --- | --- |
| BRD Section 7.2 Missing | Abort with message | No Architecture Decision Requirements found |
| Topic Status Invalid | Flag for manual review | Status not Selected/Pending/N/A |
| Validation Failure | Auto-fix, retry | Missing required section |
| SYS-Ready Below 90% | Enhance sections, retry | Score at 85% |
| Max Retries Exceeded | Flag for manual review | Persistent 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

| Option | Default | Description |
| --- | --- | --- |
| `--min-sys-ready` | 90 | Minimum SYS-Ready score |
| `--no-auto-fix` | false | Disable auto-fix (manual only) |
| `--continue-on-error` | false | Continue if one topic fails |
| `--dry-run` | false | Preview execution plan only |
| `--output-format` | auto | Force monolithic or sectioned output |
| `--skip-na` | false | Skip 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

| Phase | Gate | Criteria |
| --- | --- | --- |
| Phase 1 | BRD Gate | BRD Section 7.2 exists with ADR topics |
| Phase 2 | Topic Gate | All 7 categories identified |
| Phase 3 | Generation Gate | All sections generated per topic |
| Phase 4 | Validation Gate | SYS-Ready Score >= 90% |
| Phase 5 | Review Gate | No blocking issues remaining |

### Blocking vs Non-Blocking

| Issue Type | Blocking | Action |
| --- | --- | --- |
| Missing Context section | Yes | Must fix before proceeding |
| Missing Decision section | Yes | Must fix before proceeding |
| SYS-Ready Score < 90% | Yes | Must enhance sections |
| Invalid element ID format | Yes | Must convert to unified format |
| Missing Mermaid diagram | Yes | Must add architecture flow |
| Missing optional section | No | Log warning, continue |
| Style/formatting issues | No | Auto-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-TEMPLATE.md`
- **ADR Validation Rules**: `ai_dev_ssd_flow/05_ADR/ADR_MVP_SCHEMA.yaml`
- **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

| Input | Output | Key Metric |
| --- | --- | --- |
| BRD Section 7.2 | ADR-01 to ADR-07 | SYS-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.3201

Preview only

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

Resume after failure

/doc-adr-autopilot resume


**BRD Section 7.2 to ADR Mapping**:

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

---

## Validation Rules (v2.0)

| Check | Requirement | Error Code |
| --- | --- | --- |
| Folder Structure | Nested for >2 decisions per topic | ADR-E030 |
| Visual Score | Emoji indicator (✅/🟡/❌) present | ADR-E031 |
| Risk Thresholds | Quantified parameter table in Section 11 | ADR-E032 |
| Circuit Breaker | Recovery table if CB mentioned | ADR-E033 |
| MVP Scope | Section 7.1/7.2 present | ADR-E034 |
| Traceability Format | Hierarchical dot notation (@brd:BRD.NN.xxxx) | ADR-E035 |
| Index File | ADR-NN.00_index.md for nested folders | ADR-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

| Requirement | Value |
| --- | --- |
| Storage Location | Same folder as reviewed ADR |
| File Name | `ADR-NN.A_audit_report_vNNN.md` (preferred), `ADR-NN.R_review_report_vNNN.md` (legacy) |
| YAML Frontmatter | MANDATORY - see shared standards |
| Parent Reference | MANDATORY - 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

| Version | Date | Changes |
| --- | --- | --- |
| 2.6 | 2026-02-27 | Migrated 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.5 | 2026-02-26 | Updated skill dependency reference from 17-section to 11-section MVP structure (aligned with ADR-MVP-TEMPLATE.md v1.1) |
| 2.4 | 2026-02-11 | **Smart 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.3 | 2026-02-10 | **Review & 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.2 | 2026-02-10 | Added Review Document Standards: review reports stored alongside reviewed documents with YAML frontmatter and parent references |
| 2.1 | 2026-02-09 | Added 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.0 | 2026-02-09 | Added 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.0 | 2026-02-08 | Initial 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 |

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.98%
按下载量换算69

Claude

30.5%
按下载量换算64

Cursor

19.87%
按下载量换算42

Gemini CLI

9.45%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills