Pre-PR Review Prompt
Using ChatGPT as an automated first-pass review before requesting human review. Faster than waiting for a reviewer and catches security issues, type problems, and convention violations.
Syntax
chatgpt
Review this PR before human review.
Context: [What the PR does — 1-2 sentences]
Conventions:
[3-5 key rules or reference to standards doc]
Check for:
1. Security: [specific concern]
2. TypeScript strict mode issues
3. Edge cases: [error states, null, cleanup]
4. Convention violations
Format: [HIGH/MEDIUM/LOW] File:Line — Issue
HIGH+: suggest the fix.
[paste diff or changed files]Example
chatgpt
Review this PR before human review.
Context: Adds real-time task assignment notifications.
Conventions:
- Supabase calls in src/services/ only
- Components under 200 lines
- TanStack Query for all server state
- RLS enforces user_id ownership on all tables
Check for:
1. Notification data leaking between tenants
2. Subscription cleanup on component unmount
3. TypeScript strict mode violations
4. Convention violations above
Format: [HIGH/MEDIUM/LOW] File:Line — Issue
[paste changed files]