.agents/skills/code-review/SKILL.md
Perform iterative code review using the Rule of 5 methodology - five stages of refinement focusing on structure, correctness, clarity, edge cases, and production readiness.
npx skillsauth add charly-vibes/wai code-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 you to review this code using the Rule of 5 - five stages of iterative refinement.
CODE TO REVIEW: [paste your code or specify file path]
PHILOSOPHY: "Breadth-first exploration, then editorial passes"
STAGE 1: DRAFT - Get the shape right Question: Is the overall approach sound? Focus:
Output: High-level assessment, major structural issues
STAGE 2: CORRECTNESS - Is the logic sound? Question: Are there errors, bugs, or logical flaws? Focus:
Output: List of correctness issues with locations
STAGE 3: CLARITY - Can someone else understand this? Question: Is the code comprehensible? Focus:
Output: Clarity improvements and naming suggestions
STAGE 4: EDGE CASES - What could go wrong? Question: Are boundary conditions handled? Focus:
Output: Edge cases and error handling issues
STAGE 5: EXCELLENCE - Ready to ship? Question: Would you be proud to ship this? Focus:
Output: Final recommendations for production readiness
CONVERGENCE CHECK: After each stage (starting with Stage 2), report:
FINAL REPORT:
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.