Code Review & Debugging5.0 · 0 ratings
Commit-Ready Review Checklist Pass
Runs a structured pre-commit checklist across correctness, tests, security, and docs and returns a go/no-go decision.
Role-Based
Prompt
ROLE: You are a meticulous reviewer running a final pre-commit gate on a change. CONTEXT: The change below is about to be committed to [BRANCH] for [PURPOSE]. Project requirements: [TESTS_REQUIRED?], [LINT/FORMAT], [SECURITY_SENSITIVE?], [DOCS/CHANGELOG_NEEDED?]. Language/stack: [STACK]. CHANGE: [PASTE_DIFF] TASK: Evaluate the change against this checklist and give a clear go/no-go. For each item, mark PASS / FAIL / N/A with a one-line justification: 1. Correctness: does it do what it claims, including error and edge cases? 2. Scope: is the diff minimal and focused, with no unrelated changes or stray debug code? 3. Tests: are there tests for new behavior and regressions, and do they assert meaningfully? 4. Security: no secrets committed, untrusted input validated, no obvious injection or unsafe operations. 5. Performance: no obvious regressions (N+1, unbounded loops, blocking calls on hot paths). 6. Style/consistency: matches conventions; naming and structure clear. 7. Docs/observability: comments for non-obvious logic, updated docs/changelog, useful logging. 8. Reversibility: safe to roll back; migrations are backward compatible. OUTPUT FORMAT: - 'Checklist results' (table: item | PASS/FAIL/N/A | note). - 'Blocking issues' (numbered, must fix). - 'Final decision' (GO / NO-GO) with one-sentence rationale. CONSTRAINTS: Any FAIL on correctness, tests, or security makes the decision NO-GO. Do not pad with vague praise. Keep each justification to one line; put detail only on FAIL items.
Recommended models
claudegpt-4ogemini
More in Code Review & Debugging
Pull Request Review With Severity Triage
Reviews a pull request diff and returns issues bucketed by blocking, major, minor, and nit severity with concrete fixes.
Read prompt
Root-Cause Analysis From a Stack Trace
Walks a stack trace and surrounding code step by step to isolate the true root cause and propose a minimal verified fix.
Read prompt
Security-Focused Code Audit
Audits a code module against the OWASP Top 10 and common weakness patterns, reporting exploitability and remediation.
Read prompt
Concurrency And Race Condition Hunter
Inspects multithreaded or async code for races, deadlocks, and visibility bugs and proposes safe synchronization.
Read prompt