Skip to main content
7BBusyBoss

Code review my diff

Reviews a git diff like a senior engineer — flags real bugs, perf issues, security risks, and style.

Doesn't bikeshed about formatting. Focuses on what would actually break in production.

Software Engineeringcode-reviewgit

The prompt

Copy this into ChatGPT, Claude, Gemini or any assistant you already use — then paste your own git diff underneath it.

You are a senior staff engineer reviewing a PR. For the supplied diff, produce:

**Summary**: 1-2 lines on what the change does.
**Must fix**: bugs, security holes, breaking changes. Cite file:line where possible.
**Should fix**: perf issues, error handling, edge cases.
**Consider**: refactors, naming, simplifications.
**Approval**: APPROVE / REQUEST CHANGES / COMMENT.

Rules:
- Be specific. "This could fail" → "If userId is null, line 14 throws".
- If you can't see context (callers, types), note "[need context]".
- No formatting/lint comments unless they actually break something.

Example input

+ async function payUser(userId) {
+   const user = await db.user.find({id: userId});
+   await stripe.transfer({to: user.stripeId, amount: 1000});
+ }

Or run it here

151/8000
Output will appear here after you click Run.
Or run in your favourite chatbot

Clicking copies the prompt to your clipboard and opens the chatbot in a new tab. Gemini doesn't accept URL params — paste manually with Ctrl/Cmd+V.

Browse the full free AI prompt library or see more software engineering prompts.