Prompt template
Risk-Focused Code Review
Review a patch for behavioral regressions, edge cases, and test gaps. Report reproducible findings by impact.
When to use it
Provide the patch and relevant tests. Useful for a pre-merge self-review or to prepare a focused handoff to a human reviewer.
- Author or publisher
- PromptAtlas
- Topic
- Code & development
Original template
Review this change for user-visible regressions, edge cases, and test gaps. Goal: [intended behavior and constraints] Patch: [paste diff] Context: [entry points, existing tests, compatibility requirements] Order findings by impact. For each, include the file or function, the trigger, the observed or expected impact, a repair direction, and the smallest test that would verify the fix. Separate evidence-backed findings from questions that need more context. If you find no defects, describe what you actually reviewed and list any scenarios still worth testing.