Orchestrate specialized review agents for comprehensive code quality assessment
Orchestrates 15 specialized agents for comprehensive code review with evidence-based findings.
/plugin marketplace add thkt/claude-config/plugin install complete-workflow-system@thkt-development-workflows[target files or scope]opusOrchestrate specialized review agents with confidence-based filtering and evidence requirements.
!`git status --porcelain 2>/dev/null || echo "(not a git repository)"`
!`git diff --name-only HEAD 2>/dev/null | head -10`
Search for spec.md:
.claude/workspace/planning/**/spec.mdIf spec.md exists: Verify implementation aligns with FR-xxx requirements. If not: Review proceeds with code-only analysis.
Invoke audit-orchestrator:
Task({
subagent_type: "audit-orchestrator",
description: "Comprehensive code review",
prompt: `
Execute code review:
### Context
- Changed files: ${gitDiff}
- Specification: ${specContext || "none"}
### Review Process
1. Context Discovery: Analyze repo structure, tech stack
2. Parallel Reviews: Launch specialized agents concurrently
3. Filter & Consolidate: Apply confidence filters (>0.7)
### Agents to Invoke (Full Review Mode)
All agents run on every audit for maximum accuracy:
**Core Agents**:
- structure-reviewer, readability-reviewer, progressive-enhancer
- type-safety-reviewer, design-pattern-reviewer, testability-reviewer
- silent-failure-reviewer, root-cause-reviewer
**Enhanced Agents (pr-review-toolkit)**:
- silent-failure-hunter, comment-analyzer
- type-design-analyzer, code-simplifier
**Production Agents**:
- security-reviewer, performance-reviewer, accessibility-reviewer
### Output Requirements
- Evidence required: file:line for all findings
- Confidence markers: ✓ (>0.8), → (0.5-0.8)
- Group by severity: Critical, High, Medium, Low
- Report in Japanese
`,
});
| Agent | Focus |
|---|---|
structure-reviewer | Code organization, DRY, coupling |
readability-reviewer | Clarity, naming, complexity |
type-safety-reviewer | TypeScript coverage, any usage |
silent-failure-reviewer | Empty catch, unhandled Promise |
design-pattern-reviewer | Pattern consistency |
progressive-enhancer | CSS-first solutions |
testability-reviewer | Test design, coverage gaps |
root-cause-reviewer | Root cause analysis |
| Agent | Focus | Complements |
|---|---|---|
silent-failure-hunter | Detailed error handling analysis | silent-failure-reviewer |
comment-analyzer | Comment quality, documentation rot | (new category) |
type-design-analyzer | Type design (invariants, encapsulation) | type-safety-reviewer |
code-simplifier | Simplification suggestions | readability-reviewer |
| Agent | Focus |
|---|---|
security-reviewer | OWASP, vulnerabilities |
performance-reviewer | Bottlenecks, bundle size |
accessibility-reviewer | WCAG, keyboard nav, ARIA |
Automatic Exclusions:
Review Summary
- Files Reviewed: [count]
- Total Issues: Critical [X] / High [X] / Medium [X]
- Overall Confidence: [✓/→] [score]
## ✓ Critical Issues 🚨 (Confidence > 0.9)
### Issue #1: [Title]
- File: path/to/file.ts:42
- Evidence: [specific code or pattern]
- Impact: [user/system impact]
- Recommendation: [fix with example]
## ✓ High Priority ⚠️ (Confidence > 0.8)
[issues...]
## → Medium Priority 💡 (Confidence 0.7-0.8)
[issues with inference reasoning...]
Recommended Actions
1. Immediate [✓]: [critical fixes]
2. Next Sprint [→]: [high priority]
3. Backlog [→]: [improvements]
| Category | Agents |
|---|---|
| Core | 8 |
| pr-review-toolkit | 4 |
| Production | 3 |
| Total | 15 |
Agents run in parallel. Typical execution: ~3-5 min.
# Full review (all 15 agents)
/audit
# Target specific scope
/audit "src/components"
After review is complete, update the IDR (Implementation Decision Record) with audit results.
Before updating IDR, check if it's required:
idr_required field (Section 11)idr_required: false → Skip IDR updateidr_required: true or no spec → Update IDRFor detailed logic: @../references/commands/shared/idr-generation.md
Search for existing IDR:
~/.claude/workspace/planning/**/idr.md (SOW-related)~/.claude/workspace/idr/**/idr.md (standalone)Append /audit section to IDR:
## /audit - [YYYY-MM-DD HH:MM]
### Review Summary
| Severity | Count | Resolved |
| -------- | ----- | -------- |
| Critical | X | X |
| High | X | X |
### Issues & Actions
| # | Issue | Severity | File:Line | Action |
| --- | ------- | -------- | ------------ | -------------- |
| 1 | [issue] | High | src/xxx.ts:1 | Fixed/Deferred |
### Recommendations Applied
- [applied recommendations]
After review:
/fix/think → /code/test