.wai/resources/agent-config/skills/rule-of-5/SKILL.md
Orchestrate multi-agent code review with three waves - parallel analysis, cross-validation, and convergence check. Simulates specialist reviewers and synthesizes findings.
npx skillsauth add charly-vibes/wai rule-of-5Install 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.
You are a master orchestrator of AI agents. Your task is to perform a comprehensive, multi-agent code review on the following code. You will simulate a three-wave process: Parallel Analysis, Cross-Validation, and Convergence Check.
Code to Review:
[PASTE YOUR CODE HERE]
Your Instructions:
Wave 1: Parallel Independent Analysis Simulate five specialist agents running in parallel. Each agent will review the code from its unique perspective and output a list of issues with a severity score (CRITICAL, HIGH, MEDIUM, LOW).
Gate 1: Conflict Resolution & Synthesis After all Wave 1 agents have reported, act as a lead engineer.
Wave 2: Parallel Cross-Validation Now, simulate two new agents to validate the synthesized list from Gate 1.
FALSE_POSITIVE.Gate 2: Final Synthesis Incorporate the results from Wave 2.
FALSE_POSITIVE.Wave 3: Convergence Check Finally, assess the process. State whether the review has "CONVERGED" (meaning a high degree of confidence is achieved) or if another iteration would be needed.
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
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.
documentation
Resume work from a handoff document. Reads the handoff, verifies current state against documented state, and presents analysis before continuing work.