Skip to content
adr-review logo

ADR Review

adr-review

Multi-agent debate orchestration for Architecture Decision Records. Use when reviewing, validating, or refining ADRs. Triggers on "review this ADR", "validate ADR", "ADR debate", "critique this architecture decision", or when architect agent creates/updates an ADR. Coordinates architect, critic, ...

mattnigh/skills_collection0installs24stars

SKILL.md

Full skill instructions

<!-- markdownlint-disable MD040 --> <!-- Disabled: MD040 (nested code blocks in prompt examples) -->

ADR Review

Multi-agent debate pattern for rigorous ADR validation. Orchestrates 6 specialized agents through structured review rounds until consensus or 10 rounds maximum.

When to Use

MANDATORY Triggers (automatic, non-negotiable):

  • Architect creates or updates an ADR and signals orchestrator
  • ANY agent creates or updates a file matching .agents/​architecture/​ADR-*.md
  • Orchestrator detects ADR creation/​update signal from agent output

User-Initiated Triggers (manual):

  • User explicitly requests ADR review ("review this ADR", "validate this decision")
  • User requests multi-perspective validation for strategic decisions

Enforcement:

The architect agent is configured to ALWAYS signal orchestrator with MANDATORY routing when ADR files are created/​updated. Orchestrator is configured to BLOCK workflow continuation until adr-review completes.

Scope:

  • Primary location: .agents/​architecture/​ADR-*.md
  • Secondary location: docs/​architecture/​ADR-*.md (if project uses this structure)

Anti-Pattern:

  • Architect routes to planner without adr-review
  • Orchestrator proceeds to next agent without invoking adr-review
  • User must manually request adr-review after ADR creation

Correct Pattern:

  • Architect signals orchestrator: "MANDATORY: invoke adr-review"
  • Orchestrator invokes adr-review skill
  • Workflow continues only after adr-review completes

Agent Roles

AgentFocusTie-Breaker Role
architectStructure, governance, coherence, ADR complianceStructural questions
criticGaps, risks, alignment, completenessNone
independent-thinkerChallenge assumptions, surface contrarian viewsNone
securityThreat models, security trade-offsNone
analystRoot cause, evidence, feasibilityNone
high-level-advisorPriority, resolve conflicts, break tiesDecision paralysis

Debate Protocol

Phase 0: Related Work Research (NEW)

Before launching independent reviews, use analyst agent to search for related work:

Task(subagent_type="analyst", prompt="""
ADR Related Work Research

## ADR Being Reviewed
Title: [ADR title]
Key topics: [Extract 3-5 keywords from ADR]

## Research Tasks

1. **Search open Issues** for related discussions:
   ```bash
   gh issue list --state open --search "[keywords]" --json number,title,labels
  1. Search open PRs for in-progress work:

    gh pr list --state open --search "[keywords]" --json number,title,headRefName
    
  2. Search closed Issues for prior decisions:

    gh issue list --state closed --search "[keywords]" --limit 10 --json number,title,labels
    

Output Format

Related Issues

#TitleStatusRelevance
[number][title]open/​closed[How it relates to ADR]

Related PRs

#TitleBranchStatus
[number][title][branch][open/​merged/​closed]

Implications for ADR Review

  • [What existing work affects this ADR?]
  • [Are there gaps already known?]
  • [Should any issues be linked?]
  • [Are any PRs already implementing this?] """)

Include related work findings in each Phase 1 agent prompt as context.

### Phase 1: Independent Review

Invoke each agent with the ADR content AND related work findings. Each provides:

```markdown
## [Agent] Review

### Strengths
- [What aspects are sound]

### Weaknesses/​Gaps
- [What is missing, unclear, or problematic]

### Scope Concerns
- [Should this be split into multiple ADRs?]

### Questions
- [What needs clarification]

### Blocking Concerns
| Issue | Priority | Description |
|-------|----------|-------------|
| [Issue] | P0/​P1/​P2 | [Details] |

P0 = blocking, P1 = important, P2 = nice-to-have

Agent Invocation Pattern:

Task(subagent_type="architect", prompt="""
ADR Review Request (Phase 1: Independent Review)

## ADR Content
[Full ADR text]

## Instructions
1. Review for structural compliance with MADR 4.0
2. Check alignment with existing ADRs in .agents/​architecture/ and docs/​architecture/
3. Identify scope concerns (should this be split?)
4. Classify all issues as P0/​P1/​P2
5. Return structured review per Phase 1 format
""")

Repeat for: critic, independent-thinker, security, analyst, high-level-advisor.

Phase 2: Consolidation

After all 6 reviews complete:

  1. List consensus points (agents agree)
  2. List conflicts (agents disagree)
  3. Route conflicts to high-level-advisor for resolution
  4. Categorize all issues by priority after rulings
  5. Draft consolidated change recommendations

Conflict Resolution Pattern:

Task(subagent_type="high-level-advisor", prompt="""
ADR Conflict Resolution Required

## Conflict 1: [Description]
- **architect position**: [Position]
- **security position**: [Position]
- Evidence: [Facts]

## Conflict 2: [Description]
...

## Decision Required
For each conflict, provide:
1. Which position prevails
2. Rationale
3. Whether ADR should be split
4. Final P0/​P1/​P2 classification
""")

Phase 3: Resolution

  1. Propose specific updates addressing P0 and P1 issues
  2. Document dissenting views for "Alternatives Considered" section
  3. Record rationale for incorporated vs rejected feedback
  4. Generate complete updated ADR text

Scope Split Detection:

If 2+ agents flag scope concerns, recommend splitting:

## Scope Split Recommendation

**Original ADR**: [Title]

**Proposed Split**:
1. ADR-NNN-A: [Focused decision 1]
2. ADR-NNN-B: [Focused decision 2]

**Rationale**: [Why splitting improves clarity and enforceability]

Phase 4: Convergence Check

Re-invoke each agent to review proposed updates:

Task(subagent_type="[agent]", prompt="""
ADR Convergence Check (Round [N])

## Updated ADR
[Full updated ADR text]

## Changes Made
[Summary of changes from Phase 3]

## Your Previous Concerns
[Agent's Phase 1 concerns]

## Instructions
Provide ONE position:
- **Accept**: No blocking concerns remain
- **Disagree-and-Commit**: Reservations exist but agree to proceed (document dissent)
- **Block**: Unresolved P0 concerns (specify what remains)
""")

Consensus Criteria:

  • All 6 agents Accept OR Disagree-and-Commit = Consensus reached
  • Any agent Blocks = Another round required (if round < 10)
  • Round 10 with no consensus = Conclude with unresolved issues documented

Round Management

## Debate State

**Round**: [N] of 10
**Status**: [In Progress | Consensus | Concluded Without Consensus]

### Agent Positions
| Agent | Position | Notes |
|-------|----------|-------|
| architect | Accept/​D&C/​Block | [Brief note] |
| critic | Accept/​D&C/​Block | [Brief note] |
| independent-thinker | Accept/​D&C/​Block | [Brief note] |
| security | Accept/​D&C/​Block | [Brief note] |
| analyst | Accept/​D&C/​Block | [Brief note] |
| high-level-advisor | Accept/​D&C/​Block | [Brief note] |

### Unresolved Issues (if any)
[List P0 issues still blocking]

Artifact Storage

Save debate artifacts to .agents/​critique/:

Debate Log

Save to: .agents/​critique/​ADR-NNN-debate-log.md

# ADR Debate Log: [ADR Title]

## Summary
- **Rounds**: [N]
- **Outcome**: [Consensus | Concluded Without Consensus]
- **Final Status**: [proposed | accepted | needs-revision]

## Round [N] Summary

### Key Issues Addressed
- [Issue 1]
- [Issue 2]

### Major Changes Made
- [Change 1]
- [Change 2]

### Agent Positions
| Agent | Position |
|-------|----------|
| ... | ... |

### Next Steps
[If applicable]

Updated ADR

Save to: .agents/​architecture/​ADR-NNN-[title].md (or update in place)

Recommendations

Return to orchestrator with structured recommendations:

## ADR Review Complete

**ADR**: [Path]
**Consensus**: [Yes/​No]
**Rounds**: [N]

### Outcome
- **Status**: [accepted | needs-revision | split-recommended]
- **Updated ADR**: [Path to updated file]
- **Debate Log**: [Path to debate log]

### Scope Split (if applicable)
[Details of recommended splits]

### Planning Recommendations
[If ADR accepted and implementation planning needed]

**Recommend orchestrator routes to**:
- planner: Create implementation work packages
- task-generator: Break into atomic tasks
- None: ADR is informational only

Integration Points

Prior ADR Locations

Check these locations for existing ADRs and patterns:

  • .agents/​architecture/​ADR-*.md
  • docs/​architecture/​ADR-*.md

ADR Template Reference

Use MADR 4.0 format per architect.md. Key sections:

  • Context and Problem Statement
  • Decision Drivers
  • Considered Options
  • Decision Outcome (with Consequences and Confirmation)
  • Pros and Cons of Options

Reversibility Assessment

Every ADR must include reversibility assessment per architect.md:

  • Rollback capability
  • Vendor lock-in assessment
  • Exit strategy
  • Legacy impact
  • Data migration reversibility

Example Invocation

User triggers:

Review this ADR: .agents/​architecture/​ADR-005-api-versioning.md

Orchestrator triggers:

# When architect creates/​updates ADR
Task(subagent_type="orchestrator", prompt="""
Trigger adr-review skill for: .agents/​architecture/​ADR-005-api-versioning.md

Follow debate protocol in .claude/​skills/​adr-review/​SKILL.md
""")

Efficiency Notes

  • Phase 0 is critical: Related work research prevents duplicate effort and identifies existing gaps
  • Most reviews converge in 1-2 rounds when high-level-advisor resolves conflicts early
  • Skip Phase 1 re-invocation for agents with no relevant expertise (e.g., security for pure process ADRs)
  • Cache agent positions between rounds to avoid re-reading unchanged concerns
  • If Phase 0 finds an open PR already implementing the ADR, consider deferring review until PR is merged

Related Work Integration

When Phase 0 finds related items:

FindingAction
Open issue discussing same topicLink in ADR, acknowledge in review
Closed issue with prior decisionVerify ADR aligns or documents deviation
Open PR implementing featureWait for PR or coordinate with author
Known gap in backlogVerify ADR addresses the gap
Duplicate proposalConsider closing in favor of existing

More skills from mattnigh

spring-framework-patterns logo
mattnigh/skills_collection

spring-framework-patterns

Comprehensive Spring Framework and Spring Boot best practices including dependency injection patterns, bean lifecycle and scopes, REST API development, Spring Data JPA, service layer design, Spring Security, testing strategies, caching, AOP, async processing, error handling, and common anti-patte...

24 0
View

TypeScript厳格モードによる型安全性設計を専門とするスキル。 📖 参照書籍: - 『Effective TypeScript』(Dan Vanderkam): 型設計 📚 リソース参照: - `resources/Level1_basics.md`: レベル1の基礎ガイド - `resources/Level2_intermediate.md`: レベル2の実務ガイド - `resources/Level3_advanced.md`: レベル3の応用ガイド - `resources/Level4_expert.md`: レベル4の専門ガイド - `resources/di...

24 0
View
deploying-cloud-k8s logo
mattnigh/skills_collection

deploying-cloud-k8s

Deploys applications to cloud Kubernetes (AKS/GKE/DOKS) with CI/CD pipelines. Use when deploying to production, setting up GitHub Actions, troubleshooting deployments. Covers build-time vs runtime vars, architecture matching, and battle-tested debugging.

24 0
View
moai-alfred-agent-guide logo
mattnigh/skills_collection

moai-alfred-agent-guide

19-agent team structure, decision trees for agent selection, Haiku vs Sonnet model selection, and agent collaboration principles. Use when deciding which sub-agent to invoke, understanding team responsibilities, or learning multi-agent orchestration.

24 0
View
mermaid-diagram-generator logo
mattnigh/skills_collection

mermaid-diagram-generator

Converts architecture descriptions, module specs, or workflow docs into Mermaid diagrams. Use when visualizing brick module relationships, workflows (DDD, investigation), or system architecture. Supports: flowcharts, sequence diagrams, class diagrams, state machines, entity relationship diagrams,...

24 0
View
pre-flight-check logo
mattnigh/skills_collection

pre-flight-check

INVOKE FIRST before any code work. Validates git workflow (branch, issue, worklog) and checks approach. Use at START of every task and END before completing. Prevents skipped steps.

24 0
View
browser-dev-tools logo
mattnigh/skills_collection

browser-dev-tools

This skill should be used when working with browser-rendered artifacts (i.e. Bun, React/React Native) to proactively validate that development work on localhost is being built appropriately and to support debugging browser-rendered content. Use this skill after making frontend changes to verify t...

24 0
View
lead-dev logo
mattnigh/skills_collection

lead-dev

Lead Développeur - Coordination technique opérationnelle, code review, mentoring et livraison. Pair de web-dev-process au niveau OPÉRATIONS.

24 0
View
worker-monitor logo
mattnigh/skills_collection

worker-monitor

Monitor Docker workers, RQ queue health, and auto-scale workers (max 4). Use when: checking job progress, monitoring queue depth, scaling workers up/down, diagnosing slow processing, or waiting for jobs to complete. Referenced by data-quality skill during reprocessing.

24 0
View
quality-advisor logo
mattnigh/skills_collection

quality-advisor

Proactive quality guidance system that monitors artifact creation and provides real-time feedback on documentation quality

24 0
View
bump-version logo
mattnigh/skills_collection

bump-version

This skill should be used when the user wants to bump the version number in the workspace. It updates versions across all pyproject.toml files (root, tde, and tda packages) and the CHANGELOG.md to keep them synchronized.

24 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View