Pre-flight
!git diff --name-only main...HEAD 2>/dev/null || git diff --name-only HEAD~1 2>/dev/null || echo "No diff available"
!pytest tests/ --tb=short 2>&1 | tail -20
!cd frontend && npm run build 2>&1 | tail -15
Diff
!git diff main...HEAD 2>/dev/null || git diff HEAD~1 2>/dev/null || git diff --cached
Instructions
If any pre-flight check failed, list failures first with exact fixes.
Review the diff using the reviewer agent's checklist:
- Bugs: Logic errors, null risks, race conditions, silent error swallowing, fetchJSON header pattern
- Security: Unvalidated input, missing auth, token leakage, IDOR
- Performance: Three.js object allocation in loops, DOM thrashing, unbounded state serialization
- Test gaps: Untested critical paths
For each issue: file, line, what's wrong, how to fix it. Be specific.
Verdict: SHIP IT / NEEDS WORK / BLOCKED.
If SHIP IT: suggest the commit message in conventional commits format.