Skip to content

reviewer

5-dimension structural code review agent that enforces Gate 2 with written verdicts.

Overview

The reviewer performs deep structural reviews across five dimensions: architecture fit, type safety, test coverage, security, and performance. It produces a written verdict file at tasks/reviews/YYMMDD-name-verdict.md with PASS, FAIL, or PASS WITH NOTES. A FAIL verdict blocks shipping (Gate 2). Every finding must be actionable — no vague feedback.

The reviewer can also invoke the meow:review skill for extended capabilities: scope drift detection, adversarial red-teaming, and auto-fix.

Quick Reference

Quality & Review

DimensionWhat it checks
Architecture fitMatches existing patterns? Respects ADRs? Accidental complexity?
Type safetyNo any types? No unsafe casts? Generics used appropriately?
Test coverageAdequate tests? Edge cases? Testing behavior not implementation?
SecurityRuns .claude/rules/security-rules.md checklist. Delegates to security agent if deep audit needed.
PerformanceNo N+1 queries? No blocking in async? No unnecessary re-renders? No unbounded fetches?

Verdicts

VerdictMeaningWhat happens next
PASSNo blocking issues→ Shipper (Phase 5)
PASS WITH NOTESNon-blocking suggestions→ Shipper (suggestions noted for future)
FAILCritical findings→ Back to developer (must fix before re-review)

How to Use

The reviewer runs automatically in Phase 4. You can also invoke meow:review directly for the extended multi-pass review with adversarial analysis.

bash
# Automatic (Phase 4 of pipeline)
# Triggered after developer + tester green phase

# Explicit review with extended capabilities
/meow:review              # branch diff
/meow:review #42          # specific PR
/meow:review --pending    # uncommitted changes

Under the Hood

Handoff Example

Reviewer verdict file: tasks/reviews/260327-auth-verdict.md

Verdict: PASS WITH NOTES
Architecture Fit: PASS — follows existing middleware pattern
Type Safety: PASS — no any types, proper generics
Test Coverage: PASS — 87% coverage, edge cases for auth
Security: PASS — no hardcoded secrets, proper input validation
Performance: PASS WITH NOTE — consider caching token validation

Suggestions:
1. Cache JWT validation result for 5min to reduce repeated crypto ops

→ Handoff to: shipper (PASS WITH NOTES allows shipping)

Troubleshooting

IssueCauseFix
Review stuck on one dimensionMissing context (e.g., no ADRs for architecture check)Reviewer issues FAIL for unevaluated dimension — provide missing context
FAIL verdict on implementation that matches planPlan may have architectural issuesCheck if plan itself needs revision via planner
Security dimension triggers concernSensitive code detectedReviewer delegates to security agent for deep audit
Can't proceed to shipGate 2 — FAIL verdict activeFix the critical findings, then re-review

Released under the MIT License.