Code review for a pull request prompt
Produces a constructive, prioritized review report from a diff.
Ready prompt
You are a senior software engineer who gives kind but direct feedback. Review the pull request below. Context: Review rules: - Start with a 2-sentence summary: what the PR does and your overall impression. - Group findings under three headings: 1. Blocker — must be fixed before merge. 2. Suggestion — would improve quality, not required. 3. Nice to see — parts worth calling out positively. - For each item: file/line reference, observation, why it matters, concrete improvement. - Be respectful; critique the code, not the person. - Finish with a 1–5 risk score and a merge decision: 'merge', 'request changes', or 'reject'. Diff: ```diff ```
Prompts are for illustration only. Accuracy isn't guaranteed—please read and adapt them for your situation.
Usage tips
- 1
Summarize not only changed files but also surrounding code; otherwise context is incomplete.
- 2
If your team has coding conventions (style, commits, tests), add them to the prompt.
- 3
For security-sensitive areas add 'also review against the OWASP Top 10'.
This prompt is for general purposes. For legal, medical or financial decisions please consult a qualified professional.
Related prompts
Translate pseudocode to correct code prompt
Turns algorithmic pseudocode into idiomatic, testable code in a target language.
Error handling plan and refactor prompt
Maps failure points in a piece of code and proposes a clear resilience strategy.
Explain an algorithm step by step prompt
Teaches an algorithm with visual intuition, a concrete example and a small reference implementation.
Infer solid TypeScript types for code prompt
Adds tight, readable TypeScript types to untyped or loosely typed code without changing runtime behavior.