Review a pull request diff for correctness, security, and maintainability with a structured checklist.
Produce a structured code review covering correctness, security vulnerabilities, and maintainability issues with actionable inline feedback.
When a developer submits a pull request diff and needs a thorough review before merging.
Analyze the pull request diff below and identify its purpose, scope, and the files/components changed: $pr_diff
Analyze the pull request diff below and identify its purpose, scope, and the files/components changed:
$pr_diffCheck for correctness issues: logic errors, off-by-one errors, unhandled edge cases, incorrect conditionals, broken error handling, and missing null/undefined checks.
Audit the diff for security vulnerabilities: injection risks (SQL, XSS, command), insecure deserialization, hardcoded secrets, improper authentication/authorization checks, and unsafe use of user-supplied input.
Evaluate maintainability: flag overly complex functions, poor naming, missing or misleading comments, duplicated logic, lack of test coverage, and violations of SOLID or DRY principles.
Summarize all findings into a structured review report with three labeled sections — Correctness, Security, and Maintainability — each containing numbered issues with file/line references, severity (Critical / Major / Minor), and a concrete suggested fix.
Provide an overall verdict: Approve, Request Changes, or Needs Discussion. Include a one-paragraph executive summary suitable for a non-technical stakeholder, and a prioritized list of the top 3 must-fix items before merging.
Structure the response with clearly labeled H2 sections: 'Summary', 'Correctness Issues', 'Security Issues', 'Maintainability Issues', 'Top 3 Must-Fix Items', and 'Overall Verdict'. Use numbered lists for issues. Each issue should follow the pattern: [Severity] File/line — Description — Suggested Fix.
Copy this skill into your library to inject it into Claude, ChatGPT, and Gemini — or install your whole library as / slash commands in Claude Code and Cowork.
Get started free →Related skills
Break a large user story into small, independently shippable stories that each deliver real user value.
Draft a blameless postmortem from an incident timeline and impact summary, following SRE best practices.
Transform a raw bug report into a structured triage summary with severity, reproduction steps, and priority recommendation.