Review a change for correctness and maintainability | DevPrompt Lab
Focus a code review on behavior, edge cases, and future change cost.
prompt · Code review · intermediate
English Tiếng ViệtA general engineering review that prioritizes defects and concrete maintainability problems over style preference.
Reusable content
Review the change against its product intent and local conventions. Trace the affected user paths and data states. Look for incorrect behavior, edge cases, error handling gaps, race conditions, compatibility breaks, and complexity that makes the next change unsafe. Report only actionable findings with severity, location, scenario, and a specific correction. Separate blockers from optional improvements. If the change is sound, state that plainly and note any meaningful limits to the review.
Diff: {{DIFF}}
Product intent: {{PRODUCT_INTENT}}
Local conventions: {{CONVENTIONS}}
How to use it
Supply the exact diff and linked requirements. Keep personal preference comments out of defect findings.
Example
[P1] Existing saved resources disappear after pagination. Scenario: load page two, then return to page one. Fix: preserve the selected IDs across page fetches.