ADR Review
Multi-agent debate pattern for rigorous ADR validation. Orchestrates 6 specialized agents through structured review rounds until consensus or 10 rounds maximum.
Quick Start
# Manual triggers:
/adr-review .agents/architecture/ADR-005-api-versioning.md
"review this ADR"
"validate ADR-005"
Automatic Detection: A Claude Code hook (Invoke-ADRChangeDetection.ps1) runs at session start and detects ADR changes, prompting you to invoke this skill. The pre-commit hook also detects staged ADR files and displays a reminder.
| Input |
Output |
Consensus Required |
| ADR file path |
Debate log + Updated ADR |
6/6 Accept or D&C |
File Triggers
| Pattern |
Location |
Events |
ADR-*.md |
.agents/architecture/ |
create, update, delete |
ADR-*.md |
docs/architecture/ |
create, update, delete |
Detection: .claude/skills/adr-review/scripts/Detect-ADRChanges.ps1
When to Use
MANDATORY Triggers (automatic):
- Architect creates or updates an ADR
- ANY agent modifies
.agents/architecture/ADR-*.md
User-Initiated Triggers (manual):
- User requests ADR review ("review this ADR", "validate this decision")
- User requests multi-perspective validation for strategic decisions
Agent Roles
| Agent |
Focus |
Tie-Breaker Role |
| architect |
Structure, governance, coherence, ADR compliance |
Structural questions |
| critic |
Gaps, risks, alignment, completeness |
None |
| independent-thinker |
Challenge assumptions, surface contrarian views |
None |
| security |
Threat models, security trade-offs |
None |
| analyst |
Root cause, evidence, feasibility |
None |
| high-level-advisor |
Priority, resolve conflicts, break ties |
Decision paralysis |
Debate Protocol
| Phase |
Purpose |
Details |
| Phase 0 |
Related work research |
Search issues/PRs for context |
| Phase 1 |
Independent review |
Each agent reviews ADR |
| Phase 2 |
Consolidation |
Identify consensus and conflicts |
| Phase 3 |
Resolution |
Propose updates for P0/P1 issues |
| Phase 4 |
Convergence check |
Agents vote: Accept/D&C/Block |
Consensus: All 6 agents Accept OR Disagree-and-Commit. Max 10 rounds.
See references/debate-protocol.md for full phase details.
Deletion Workflow
| Phase |
Purpose |
| D1 |
Detection - identify deleted ADR |
| D2 |
Impact assessment - find dependencies |
| D3 |
Archival decision - archive accepted ADRs |
| D4 |
Cleanup - update references |
See references/deletion-workflow.md for full workflow.
Issue Resolution
| Priority |
Requirement |
Gate |
| P0 |
Must resolve |
BLOCKING |
| P1 |
Resolve OR defer with issue |
BLOCKING |
| P2 |
Document |
Non-blocking |
See references/issue-resolution.md for deferral protocol.
Phase 4: Strategic Review (Principal-Level Validation)
After structural and technical review, apply strategic lenses:
Strategic Validation Checklist
Chesterton's Fence (Change Justification)
Path Dependence (Irreversibility Recognition)
Core vs Context (Investment Prioritization)
Second-System Effect (Over-Engineering Detection)
Strategic Review Verdict
Overall Strategic Assessment: [APPROVED | CONCERNS | REJECTED]
Blocking Issues:
- [Strategic issue 1 with required mitigation]
- [Strategic issue 2 with required mitigation]
Recommendations:
- [Strategic improvement 1]
- [Strategic improvement 2]
Scripts
| Script |
Purpose |
Detect-ADRChanges.ps1 |
Detect ADR file changes for auto-trigger |
# Basic detection
& .claude/skills/adr-review/scripts/Detect-ADRChanges.ps1
# Compare to specific commit
& .claude/skills/adr-review/scripts/Detect-ADRChanges.ps1 -SinceCommit "abc123"
Verification Checklist
After skill invocation:
Anti-Patterns
| Avoid |
Why |
Instead |
| Single-agent ADR review |
Misses domain expertise |
Use full 6-agent debate |
| Skipping Phase 0 |
Duplicates existing work |
Always research first |
| Ignoring D&C dissent |
Loses important context |
Document all reservations |
| Manual ADR monitoring |
Error-prone |
Use Detect-ADRChanges.ps1 |
| Deleting accepted ADRs without archive |
Loses knowledge |
Always archive accepted ADRs |
References
| Document |
Content |
| debate-protocol.md |
Full Phases 0-4 workflow |
| deletion-workflow.md |
Phases D1-D4 workflow |
| issue-resolution.md |
P0/P1/P2 handling and deferral |
| artifacts.md |
Output formats and templates |
| agent-prompts.md |
Detailed agent prompt templates |
1---
2name: adr-review
3description: Multi-agent debate orchestration for Architecture Decision Records. Automatically triggers on ADR create/edit/delete. Coordinates architect, critic, independent-thinker, security, analyst, and high-level-advisor agents in structured debate rounds until consensus.
4license: MIT
5metadata:
6 source: https://skillmd.com/skills/aibot88/adr-review
7 subagent_model: claude-opus-4-5
8 domains: [architecture, governance, multi-agent, consensus]
9 type: orchestrator
10 inputs: [adr-file-path, change-type]
11 outputs: [debate-log, updated-adr, recommendations]
12 file_triggers:
13 patterns:
14 - ".agents/architecture/ADR-*.md"
15 - "docs/architecture/ADR-*.md"
16 events: [create, update, delete]
17 auto_invoke: true
18---
19
20# ADR Review
21
22Multi-agent debate pattern for rigorous ADR validation. Orchestrates 6 specialized agents through structured review rounds until consensus or 10 rounds maximum.
23
24## Quick Start
25
26```text
27# Manual triggers:
28/adr-review .agents/architecture/ADR-005-api-versioning.md
29"review this ADR"
30"validate ADR-005"
31```
32
33**Automatic Detection**: A Claude Code hook (`Invoke-ADRChangeDetection.ps1`) runs at session start and detects ADR changes, prompting you to invoke this skill. The pre-commit hook also detects staged ADR files and displays a reminder.
34
35| Input | Output | Consensus Required |
36|-------|--------|-------------------|
37| ADR file path | Debate log + Updated ADR | 6/6 Accept or D&C |
38
39## File Triggers
40
41| Pattern | Location | Events |
42|---------|----------|--------|
43| `ADR-*.md` | `.agents/architecture/` | create, update, delete |
44| `ADR-*.md` | `docs/architecture/` | create, update, delete |
45
46**Detection**: `.claude/skills/adr-review/scripts/Detect-ADRChanges.ps1`
47
48## When to Use
49
50**MANDATORY Triggers** (automatic):
51
52- Architect creates or updates an ADR
53- ANY agent modifies `.agents/architecture/ADR-*.md`
54
55**User-Initiated Triggers** (manual):
56
57- User requests ADR review ("review this ADR", "validate this decision")
58- User requests multi-perspective validation for strategic decisions
59
60## Agent Roles
61
62| Agent | Focus | Tie-Breaker Role |
63|-------|-------|------------------|
64| **architect** | Structure, governance, coherence, ADR compliance | Structural questions |
65| **critic** | Gaps, risks, alignment, completeness | None |
66| **independent-thinker** | Challenge assumptions, surface contrarian views | None |
67| **security** | Threat models, security trade-offs | None |
68| **analyst** | Root cause, evidence, feasibility | None |
69| **high-level-advisor** | Priority, resolve conflicts, break ties | Decision paralysis |
70
71## Debate Protocol
72
73| Phase | Purpose | Details |
74|-------|---------|---------|
75| **Phase 0** | Related work research | Search issues/PRs for context |
76| **Phase 1** | Independent review | Each agent reviews ADR |
77| **Phase 2** | Consolidation | Identify consensus and conflicts |
78| **Phase 3** | Resolution | Propose updates for P0/P1 issues |
79| **Phase 4** | Convergence check | Agents vote: Accept/D&C/Block |
80
81**Consensus**: All 6 agents Accept OR Disagree-and-Commit. Max 10 rounds.
82
83See [references/debate-protocol.md](references/debate-protocol.md) for full phase details.
84
85## Deletion Workflow
86
87| Phase | Purpose |
88|-------|---------|
89| **D1** | Detection - identify deleted ADR |
90| **D2** | Impact assessment - find dependencies |
91| **D3** | Archival decision - archive accepted ADRs |
92| **D4** | Cleanup - update references |
93
94See [references/deletion-workflow.md](references/deletion-workflow.md) for full workflow.
95
96## Issue Resolution
97
98| Priority | Requirement | Gate |
99|----------|-------------|------|
100| **P0** | Must resolve | BLOCKING |
101| **P1** | Resolve OR defer with issue | BLOCKING |
102| **P2** | Document | Non-blocking |
103
104See [references/issue-resolution.md](references/issue-resolution.md) for deferral protocol.
105
106## Phase 4: Strategic Review (Principal-Level Validation)
107
108After structural and technical review, apply strategic lenses:
109
110### Strategic Validation Checklist
111
112#### Chesterton's Fence (Change Justification)
113
114- [ ] If removing/changing existing patterns: Original purpose documented
115- [ ] Investigation evidence provided (git archaeology, interviews, documentation)
116- [ ] Confirmation original problem no longer exists
117- [ ] Assessment: [PASS | FAIL | N/A]
118
119#### Path Dependence (Irreversibility Recognition)
120
121- [ ] Historical constraints identified and documented
122- [ ] Reversibility assessment complete (rollback capability, vendor lock-in)
123- [ ] Migration/exit strategy defined if adding dependencies
124- [ ] Irreversible decisions explicitly flagged and justified
125- [ ] Assessment: [PASS | FAIL | N/A]
126
127#### Core vs Context (Investment Prioritization)
128
129- [ ] Capability classified as Core (differentiating) or Context (commodity)
130- [ ] If building Context: Justification for not buying/outsourcing
131- [ ] If Core: Competitive differentiation explained
132- [ ] Assessment: [PASS | FAIL | N/A]
133
134#### Second-System Effect (Over-Engineering Detection)
135
136- [ ] If replacing existing system: Scope boundaries explicit
137- [ ] Feature list justified (not "everything we didn't do last time")
138- [ ] Simplicity preservation strategy documented
139- [ ] Assessment: [PASS | FAIL | N/A]
140
141### Strategic Review Verdict
142
143**Overall Strategic Assessment**: [APPROVED | CONCERNS | REJECTED]
144
145**Blocking Issues**:
146
147- [Strategic issue 1 with required mitigation]
148- [Strategic issue 2 with required mitigation]
149
150**Recommendations**:
151
152- [Strategic improvement 1]
153- [Strategic improvement 2]
154
155## Scripts
156
157| Script | Purpose |
158|--------|---------|
159| `Detect-ADRChanges.ps1` | Detect ADR file changes for auto-trigger |
160
161```powershell
162# Basic detection
163& .claude/skills/adr-review/scripts/Detect-ADRChanges.ps1
164
165# Compare to specific commit
166& .claude/skills/adr-review/scripts/Detect-ADRChanges.ps1 -SinceCommit "abc123"
167```
168
169## Verification Checklist
170
171After skill invocation:
172
173- [ ] Debate log exists at `.agents/critique/ADR-NNN-debate-log.md`
174- [ ] ADR status updated (proposed/accepted/needs-revision)
175- [ ] All P0 issues addressed or documented
176- [ ] Dissent captured for Disagree-and-Commit positions
177- [ ] Recommendations provided to orchestrator
178
179## Anti-Patterns
180
181| Avoid | Why | Instead |
182|-------|-----|---------|
183| Single-agent ADR review | Misses domain expertise | Use full 6-agent debate |
184| Skipping Phase 0 | Duplicates existing work | Always research first |
185| Ignoring D&C dissent | Loses important context | Document all reservations |
186| Manual ADR monitoring | Error-prone | Use Detect-ADRChanges.ps1 |
187| Deleting accepted ADRs without archive | Loses knowledge | Always archive accepted ADRs |
188
189## References
190
191| Document | Content |
192|----------|---------|
193| [debate-protocol.md](references/debate-protocol.md) | Full Phases 0-4 workflow |
194| [deletion-workflow.md](references/deletion-workflow.md) | Phases D1-D4 workflow |
195| [issue-resolution.md](references/issue-resolution.md) | P0/P1/P2 handling and deferral |
196| [artifacts.md](references/artifacts.md) | Output formats and templates |
197| [agent-prompts.md](references/agent-prompts.md) | Detailed agent prompt templates |