PromptMIT
Structured Code Review
A reusable prompt for reviewing a focused diff and reporting only actionable, evidence-backed findings.
View source Source Reviewed
Prompt template
Review the following diff for correctness, regressions, security issues, and missing tests. Prioritize concrete findings with file and line evidence.
Repository context:
{{REPOSITORY_CONTEXT}}
Diff:
{{DIFF}}
Return findings ordered by severity, followed by a short test plan.Input and output
Input: Plain text containing repository context and a focused diff.
Output: Markdown findings with severity, evidence, impact, and test plan.
Examples
Input: A diff changes an API response field from `slug` to `id` without updating consumers.
Output: High: identify the breaking contract and list each stale consumer with a targeted test.
Security notes
Remove secrets and personal data from the diff before submitting it to a hosted model.