.wai/resources/agent-config/skills/multi-agent-review/SKILL.md
Perform comprehensive multi-agent parallel code review using Wave/Gate architecture. Simulates security, performance, maintainability, requirements, and operations reviewers.
npx skillsauth add charly-vibes/wai multi-agent-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
I need a comprehensive multi-agent parallel code review using the Wave/Gate architecture.
CODE TO REVIEW: [paste code or specify: "Review all files in src/auth/"]
ARCHITECTURE: Wave 1 (Parallel) → Gate 1 (Sequential) → Wave 2 (Parallel) → Gate 2 (Sequential) → Wave 3 (Sequential)
Execute this workflow:
═══════════════════════════════════════════════════════════════ WAVE 1: PARALLEL INDEPENDENT ANALYSIS ═══════════════════════════════════════════════════════════════
Launch 5 parallel tasks. Each task is independent and can run simultaneously.
TASK 1: Security Review Role: Security Engineer Focus:
Output JSON format: { "issues": [ { "id": "SEC-001", "severity": "CRITICAL|HIGH|MEDIUM|LOW", "category": "authentication|input-validation|data-exposure|cryptography", "cwe_id": "CWE-XXX", "location": "file.js:line", "description": "Detailed description", "attack_vector": "How an attacker could exploit this", "recommendation": "Specific fix with code example" } ], "security_score": 0-3, "summary": "One-line summary" }
TASK 2: Performance Review Role: Performance Engineer Focus:
TASK 3: Maintainability Review Role: Future Developer (6 months out, original author gone) Focus:
TASK 4: Requirements Validation Role: QA Engineer Focus:
TASK 5: Operations Review Role: SRE (on-call at 3am when this breaks) Focus:
═══════════════════════════════════════════════════════════════ GATE 1: CONFLICT RESOLUTION (Wait for all Wave 1 tasks) ═══════════════════════════════════════════════════════════════
After all 5 tasks complete, consolidate findings:
TASK 6: Consolidation Role: Senior Technical Lead
Tasks:
DEDUPLICATE ISSUES
RESOLVE SEVERITY CONFLICTS Rules:
CALCULATE CONFIDENCE
IDENTIFY CROSS-CUTTING CONCERNS
═══════════════════════════════════════════════════════════════ WAVE 2: PARALLEL CROSS-VALIDATION ═══════════════════════════════════════════════════════════════
Launch 2-3 parallel tasks reviewing the consolidated findings.
TASK 7: Meta-Review Role: Quality Control Lead
Check:
TASK 8: Integration Analysis Role: Systems Architect
Check for:
═══════════════════════════════════════════════════════════════ GATE 2: FINAL SYNTHESIS (Wait for Wave 2) ═══════════════════════════════════════════════════════════════
TASK 9: Final Report
Generate:
EXECUTIVE SUMMARY
PRIORITIZED ACTION LIST
BLOCKING ASSESSMENT
CONVERGENCE METRICS
═══════════════════════════════════════════════════════════════ WAVE 3: CONVERGENCE CHECK ═══════════════════════════════════════════════════════════════
Determine if another iteration is needed:
CONVERGED if:
ESCALATE_TO_HUMAN if:
ITERATE if:
If ITERATE: Start Wave 1 again focusing only on CRITICAL and HIGH issues.
testing
Compare original and distilled prompts to verify the distillation is faithful and lossless. Checks completeness, accuracy, and appropriate conciseness.
development
Implement features following Test-Driven Development methodology. Red-Green-Refactor cycle with phased approach and verification at each step.
development
Orchestrate multi-agent code review with three waves - parallel analysis, cross-validation, and convergence check. Simulates specialist reviewers and synthesizes findings.
development
Apply Steve Yegge's Rule of 5 iterative review to any artifact - code, plans, research, issues, specs, or documents. Five stages from draft through excellence.