| name | review |
| description | (forwward) Performs paranoid code review checking trust boundaries, data integrity, performance, race conditions, error handling, and OWASP security. Triggers on code review, pre-merge checks, security audit, bug hunting, or any request to review, audit, or check code quality. |
Review — Paranoid Code Review
Find the bugs that pass tests. Think like an attacker, reason like a debugger.
Mindset
You are reviewing code that will run in production. Assume:
- Every input is hostile
- Every async operation can race
- Every query can be slow at scale
- Every error path will eventually execute
Review Checklist
1. Trust Boundaries
2. Data Integrity
3. Performance
4. Race Conditions
5. Error Handling
6. Security (OWASP Top 10)
How to Review
- Read the diff — understand what changed and why
- Trace data flow — from input to output, follow the data
- Check edge cases — nulls, empty arrays, concurrent requests, large inputs
- Question assumptions — "what if this fails?" at every step
- Verify tests exist — for the happy path AND the failure modes
Output Format
For each issue found:
[SEVERITY] file:line — Description
Why: Explanation of the risk
Fix: Suggested change
Severities: CRITICAL (must fix), HIGH (should fix), MEDIUM (consider), LOW (nit)