Does your agent write most of your code while nobody really reads it before it ships? These 9 free prompts help you split a giant change into reviewable pieces, check that the AI built what you asked for, catch its usual shortcuts, and decide whether to merge or fix first.
A simple review routine for code an AI wrote, so you catch the bugs, shortcuts, and surprises before you merge, not after your users do.
9 prompts in 4 sections. Replace everything in [BRACKETS IN CAPS], then copy and paste into your AI tool.
Claude Code or Cursor's Agent: Prompts 1.1, 1.2, 2.2, 2.3, 3.1, 3.2, 4.1, and 4.2 read your project or run git, so they need a coding tool opened in it. The tips mention Claude Code's /code-review (alias /review, any plan), Anthropic's Code Review service (Team and Enterprise only, reads REVIEW.md, never approves or blocks a pull request), and Cursor's Bugbot (reads .cursor/BUGBOT.md, its check doesn't block merges on findings by default), checked against each tool's docs.
ChatGPT or Claude, in a normal chat: Prompt 2.1 also works with your request and the diff pasted in.
Plain git and GitHub: the prompts and tips use git diff --stat, git diff main...HEAD, git add -p, gh pr create --draft --body-file, gh pr view --comments, gh pr checks, and branch protection settings (authors can't approve their own pull requests; rules skip admins unless bypassing is turned off), checked against git, GitHub CLI, and GitHub docs.
Written for use with Claude Code, Cursor's Agent, ChatGPT or Claude. Not yet tested against them.
1.1 Split a Giant AI Change Into Reviewable Pieces
Untested: not yet run against a model.
Use this when the agent changed a lot of files in one go and the diff is too big to review well. It's for splitting the changes you already have into a few small commits, each with one clear purpose.
Use in: Claude Code or Cursor's Agent, opened in your project.
Fill in: [WHAT THE AGENT WAS ASKED TO DO] (e.g. "add a settings page with dark mode and email preferences"), [MY MAIN BRANCH] (usually "main").
The agent made a big change and I want to split it into small commits I can review one at a time. Don't write or edit any code. Only sort and commit what's already there, and undo something only if I say so. Explain each git command in one plain line.
What the agent was asked to do: [WHAT THE AGENT WAS ASKED TO DO]
My main branch: [MY MAIN BRANCH]
Please:
1. Run git status and git diff --stat and tell me which branch I'm on and which files changed. If I'm on [MY MAIN BRANCH], stop and help me move these changes to a new branch first.
2. Group the changes by purpose, for example: the main feature, small fixes it needed, new packages, settings or config, and anything that doesn't seem related to the task. Show the groups as a list with the files in each.
3. Flag the "doesn't seem related" group clearly. For each file in it, tell me what changed and ask me whether to keep it, undo it, or save it for later.
4. Suggest an order for the commits, so each one still makes sense on its own, and a short, plain commit message for each.
5. After my OK, make the commits one group at a time. If one file holds changes from two groups, show me and ask before splitting it.
6. Finish with git log --oneline for the new commits, so I can see the result.
Tips to customize: Git's git add -p (short for --patch) lets you pick which parts of a file go into a commit, one piece at a time, if you want to do the splitting yourself. Small commits pay off later: you can review each one in a few minutes, and undo one without losing the rest. Next time, ask the agent for one small step at a time, so you don't need this prompt as often.
1.2 Write a PR Description a Reviewer Can Check
Untested: not yet run against a model.
Use this when you're about to open a pull request and the description is empty or just says "updates." It's for a short description that tells any reviewer what the change should do and how to check it.
Use in: Claude Code or Cursor's Agent, opened in your project, on the branch you want to merge.
Fill in: [WHY I MADE THIS CHANGE] (e.g. "users kept asking for dark mode"), [MY MAIN BRANCH] (usually "main"), [HOW I TESTED IT MYSELF] (e.g. "clicked through the settings page on my phone", or "I haven't yet").
Write a pull request description for the changes on this branch. A reviewer, human or AI, should be able to check the change against it. Don't change any code.
Why I made this change: [WHY I MADE THIS CHANGE]
My main branch: [MY MAIN BRANCH]
How I tested it myself: [HOW I TESTED IT MYSELF]
Read the real changes first (git diff [MY MAIN BRANCH]...HEAD and the commit messages). Then write the description with these parts, in plain words:
1. What this does: two or three sentences a non-coder could follow.
2. What should now be true: a short checklist of results someone can check, like "a logged-out user who opens /settings goes to the login page."
3. What changed: one line per area (screens, database, settings, packages), not one line per file.
4. Risky parts: anything touching login, payments, user data, the database, or secrets. Write "none" if there's nothing.
5. How to test it: steps a reviewer can follow, including one thing that should NOT work, like a blocked action.
6. Not tested yet: be honest. List anything nobody has checked.
7. Out of scope: things a reviewer might expect here that this change doesn't do.
Only describe what's really in the diff. If the diff and my reason don't match, tell me instead of smoothing it over.
Save the description to a file called pr-description.md and show it to me.
Tips to customize: If you use GitHub's command line tool, gh pr create --draft --title "Add dark mode" --body-file pr-description.md opens a draft pull request with this text (change the title to fit). A draft tells people it isn't ready to merge yet. Delete pr-description.md afterwards, or add it to .gitignore, so it doesn't get committed. The "What should now be true" checklist is what Prompt 2.1 checks against, so keep it.
Section 2: Review It Three Ways
2.1 Did It Build What I Asked For?
Untested: not yet run against a model.
Use this when the code works but you're not sure it's what you asked for. It's for checking the change against your original request, line by line, to find missing pieces and extras you never wanted.
Use in: a fresh session in Claude Code or Cursor's Agent, opened in your project. Or a normal chat with ChatGPT or Claude, with the diff pasted in.
Fill in: [WHAT I ASKED FOR] (paste your original request or the "What should now be true" list from Prompt 1.2), [MY MAIN BRANCH] (usually "main"; in a normal chat, paste your diff at the very end of the prompt).
Check whether this change does what I asked for: no less and no more. Don't change any code. Just review and report.
What I asked for:
[WHAT I ASKED FOR]
The changes: everything on this branch compared with [MY MAIN BRANCH] (use git diff [MY MAIN BRANCH]...HEAD), plus any uncommitted changes. If you can't see my project, I've pasted the diff at the end of this message, so use that.
Please:
1. Split my request into a numbered list of separate requirements, including small ones hidden in a sentence, like "and show an error if it fails."
2. For each requirement, give a verdict: done, partly done, or missing. For done, point to the file and lines that do it. For partly done or missing, say what's not there.
3. List everything the change does that I did NOT ask for: extra features, renamed things, changed styles, new packages, edits to unrelated files. For each one, say whether it looks needed for my request or not.
4. List any choices the code made that I never decided, like a default value, a limit, or what happens on an error. I may want a say in those.
5. End with a one-line verdict: "Matches the request," "Close, with gaps," or "Doesn't match yet," and the top 3 things to fix.
Base every verdict on the code, not on commit messages or what the agent said it did.
Tips to customize: Extras aren't always bad, but each one is code nobody asked for or tested. Undo the ones you don't need before you merge. If you use Claude Code, the docs say /code-review (alias /review) runs a built-in bug review of your branch and uncommitted changes on any plan. It looks for bugs, not for "did it match my request," so this prompt and that command work well together.
2.2 Catch the AI's Usual Shortcuts
Untested: not yet run against a model.
Use this when the agent says everything works and the tests pass, and you want to make sure it didn't get there by cutting corners. It's for spotting weakened tests, hidden errors, fake data, and other "make it look done" moves.
Use in: a fresh session in Claude Code or Cursor's Agent, opened in your project.
Fill in: [MY MAIN BRANCH] (usually "main"), [WHAT THE AGENT WAS FIXING OR BUILDING] (e.g. "the failing checkout test and the login bug").
Review the changes on this branch for shortcuts an AI coding agent might take to make something look finished. Don't change any code. Just report.
My main branch: [MY MAIN BRANCH]
What the agent was fixing or building: [WHAT THE AGENT WAS FIXING OR BUILDING]
Look at git diff [MY MAIN BRANCH]...HEAD plus any uncommitted changes, and check for each of these:
1. Tests that were deleted, skipped, commented out, or made weaker (fewer checks, looser expected values, or a test changed to match the new wrong result).
2. Errors that are caught and then ignored, so a failure now looks like a success.
3. Hard-coded or fake values standing in for real ones: sample data, a fixed user ID, a "return true," or a mock left in the real app code.
4. Checks that were removed or loosened: login checks, permission checks, input validation, type checks turned off.
5. Leftovers: TODOs, "temporary" code, debug logs, commented-out blocks, or files that look like experiments.
6. Settings changed to make an error go away, like turning off a lint rule or a type check.
For each thing you find, quote the lines, say which check it fails, and explain in plain words why it matters. Rate each one high, medium, or low.
If you find nothing for a check, write "nothing found" for it. Don't invent problems.
End by running the tests and showing me the real output, and tell me how many tests exist now compared with [MY MAIN BRANCH], if you can count them.
Tips to customize: A changed test isn't always cheating. Sometimes the old test was wrong. The question to ask is: "Did the test change because the requirement changed, or because the code couldn't pass it?" If the answer is the second one, send it back. For security checks in more depth, use Ship It Safe (Prompt 7.1).
2.3 What Could Break in Production?
Untested: not yet run against a model.
Use this when the change looks right on your computer but you're about to merge something that touches the database, settings, outside services, or anything users already rely on. It's for finding what could go wrong once it's live, and how you'd undo it.
Use in: a fresh session in Claude Code or Cursor's Agent, opened in your project.
Fill in: [MY MAIN BRANCH] (usually "main"), [WHERE MY APP RUNS] (e.g. "Vercel with Supabase", or "not sure"), [HOW MANY PEOPLE USE IT] (e.g. "just me", "about 50 people a day").
This change works on my computer. Before I merge it, help me find what could break once it's live. Don't change any code. Just review and report.
My main branch: [MY MAIN BRANCH]
Where my app runs: [WHERE MY APP RUNS]
How many people use it: [HOW MANY PEOPLE USE IT]
Look at git diff [MY MAIN BRANCH]...HEAD and check:
1. Data that already exists: does any change to tables, columns, or saved data assume new data only? What happens to rows, users, or files that were created before this change?
2. Database changes: are there migrations? Can they be undone? Could any of them delete or lock data, or fail halfway?
3. Settings: does the change need a new environment variable, secret, or setting on the host? List each one and whether it's set up yet.
4. Outside services: new API calls, webhooks, emails, or payments. What happens if the service is slow, down, or returns an error?
5. Things that only show up with real users: big lists, slow connections, two people doing the same thing at once, old app versions or open browser tabs still using the old code.
6. Order of steps: does anything need to happen in a certain order when this goes live (for example, run the migration before the new code)?
7. Undo plan: if this goes wrong after merging, what's the fastest safe way back? Say clearly if the code can be undone but the data can't.
For each risk, rate it high, medium, or low for an app my size, and give me one small step that would lower it. Skip anything that doesn't apply.
End with a short "before I merge" checklist.
Tips to customize: Database changes are the riskiest part, because git can undo code but not data. If a migration deletes or renames something, back up first, or test it on a copy. For host settings, our Ship It Live pack covers environment variables and failed deploys, and It Broke in Production helps if something slips through anyway.
Section 3: Act on the Review
3.1 Turn Review Comments Into a Fix List
Untested: not yet run against a model.
Use this when you have review comments from one or more places (an AI review, a review bot on GitHub, a friend) and don't know which ones matter. It's for checking each comment against the code and turning the real ones into a short, ordered fix list.
Use in: Claude Code or Cursor's Agent, opened in your project, on the branch that was reviewed.
Fill in: [THE REVIEW COMMENTS] (paste them all, with the file and line if they have one), [WHAT THE CHANGE IS SUPPOSED TO DO] (e.g. "add dark mode to the settings page").
I got review comments on my change. Help me decide which ones to act on. Don't fix anything yet.
What the change is supposed to do: [WHAT THE CHANGE IS SUPPOSED TO DO]
The review comments:
[THE REVIEW COMMENTS]
Please:
1. Merge duplicates. If two reviewers said the same thing, list it once and say who raised it.
2. For each comment, check it against the actual code and give a verdict: real problem, not a problem (and why), or not sure (and what would settle it). Quote the lines you checked. Reviewers, including AI ones, can be wrong.
3. Sort the real problems into:
- Must fix before merging: bugs, data loss, security, or anything that breaks the "supposed to do" part.
- Should fix soon: real but small, and safe to leave for a follow-up.
- Skip: style preferences, or changes outside this task.
4. For each "must fix," write one plain line describing the fix and which files it touches. Keep each fix as small as possible.
5. Put the must-fix items in a sensible order, so one fix doesn't undo another.
6. Write the "should fix soon" items as short to-do notes I can save for later.
Wait for my OK before fixing anything.
Tips to customize: If you use GitHub's command line tool, gh pr view --comments shows a pull request's comments and reviews, so you can copy them all at once. "Not a problem" is a fine answer, but ask for the reason in one line, and keep it. If the same comment comes back next time, you'll know why you said no. When two reviewers disagree, Two AIs, One Project (Prompt 3.2) helps you settle it with evidence.
3.2 Check the Fixes, Then Decide: Merge or Not Yet
Untested: not yet run against a model.
Use this when the fixes from your review are done and you want to know if the change is finally ready. It's for confirming each fix really landed, checking that the fixes didn't add new problems, and getting a clear merge or not-yet answer.
Use in: a fresh session in Claude Code or Cursor's Agent, opened in your project, on the branch you want to merge.
Fill in: [MY FIX LIST] (the must-fix list from Prompt 3.1), [MY MAIN BRANCH] (usually "main"), [HOW I CHECK THE APP] (e.g. "npm run build and npm test", or "please find it").
I fixed the problems from my code review. Check the fixes and tell me if this branch is ready to merge. Don't change any code. Just check and report.
My fix list:
[MY FIX LIST]
My main branch: [MY MAIN BRANCH]
How I check the app: [HOW I CHECK THE APP]
Please:
1. For each item on my fix list, find the code that fixes it and give a verdict: fixed, partly fixed, or not fixed. Quote the lines.
2. Look only at what changed since the review (the newest commits or uncommitted changes) and check whether the fixes added anything new: new bugs, unrelated edits, deleted tests, or new packages.
3. Run my checks and show me the real output. If something fails, say whether it's from the fixes or was already failing.
4. Check the branch is up to date enough to merge: tell me if [MY MAIN BRANCH] has new commits this branch doesn't have, and whether any of them touch the same files.
5. Give me a short manual test to click through myself, covering the parts that were fixed.
6. End with one line: "Ready to merge" or "Not yet," and the reasons.
Base this on the code and the check results, not on what the agent said it fixed.
Tips to customize: If you use GitHub, gh pr checks shows whether the checks on your pull request passed. If the answer is "Not yet" for the second time on the same item, stop and ask a different AI or a person, rather than looping. "Ready to merge" from an AI is still a second opinion. Do your own click-through before you merge.
Section 4: Make Review a Habit
4.1 Write a Review Checklist for My Project
Untested: not yet run against a model.
Use this when you keep telling every reviewer the same things about your project, or the same kind of bug keeps slipping through. It's for a short checklist file, built from your real code and past mistakes, that any AI reviewer can follow.
Use in: Claude Code or Cursor's Agent, opened in your project.
Fill in: [BUGS THAT SLIPPED THROUGH BEFORE] (e.g. "a page that showed other users' data, a form that saved empty names", or "none I remember"), [WHAT MATTERS MOST IN MY APP] (e.g. "payments and user privacy").
Help me write a short code review checklist for this project, so any AI reviewer checks the things that matter here. Don't change any code.
Bugs that slipped through before: [BUGS THAT SLIPPED THROUGH BEFORE]
What matters most in my app: [WHAT MATTERS MOST IN MY APP]
Please:
1. Look at the project to learn how it's built: the framework, where data is saved, how login works, and how tests are run. Summarize it in five lines.
2. Look at the recent git history (git log --oneline -30) for commits that fixed bugs. Tell me which kinds of mistakes keep coming back.
3. Write a checklist of 10 to 15 items, each one a yes/no question a reviewer can answer from a diff, like "Does every new database query check which user is asking?" Put the most important items first.
4. Add a short "Don't flag" list for things that aren't problems here, like generated files or a style choice I made on purpose.
5. Keep it under one page, in plain words.
6. Tell me where to save it. If my project already has an AGENTS.md or CLAUDE.md, tell me whether to put the checklist there or in its own file, and why.
Show me the checklist and wait for my OK before saving.
Tips to customize: Paste the checklist into Prompt 2.1 or 2.2 when you review, or ask your agent to "review this branch against our review checklist." Some review tools read their own file automatically. The Claude Code docs say Anthropic's Code Review service (Team and Enterprise plans only) reads a REVIEW.md file at the root of your repository, and the /code-review command reads your CLAUDE.md, not REVIEW.md. Cursor's docs say Bugbot reads .cursor/BUGBOT.md. File names and rules can change, so check your tool's docs before you rely on one. Add a new item every time a bug slips through.
4.2 Nothing Merges Into Main Without a Check
Untested: not yet run against a model.
Use this when you want a safety rule that stops unreviewed or broken code from reaching your main branch, even on a busy day. It's for setting up GitHub so changes go through a pull request with passing checks, and for choosing an automatic reviewer if you want one.
Use in: Claude Code or Cursor's Agent, opened in your project. You'll click the final settings on GitHub yourself.
Fill in: [MY MAIN BRANCH] (usually "main"), [JUST ME OR A TEAM] (e.g. "just me", or "me and two friends"), [THE CHECKS I HAVE] (e.g. "tests run on GitHub Actions", or "none yet").
Help me make sure nothing reaches my main branch without going through a pull request and a check. Explain each step in plain words. Don't change any GitHub settings yourself. Give me the steps and I'll click them.
My main branch: [MY MAIN BRANCH]
Just me or a team: [JUST ME OR A TEAM]
The checks I have: [THE CHECKS I HAVE]
Please:
1. Look at this project and tell me what automatic checks already run on pull requests, if any (for example, files in .github/workflows). If there are none, suggest one simple check, like running the build and tests, and show me the file, but don't save it without my OK.
2. Walk me through setting up a branch protection rule (or ruleset) for [MY MAIN BRANCH] on GitHub: require a pull request before merging, and require my checks to pass. Tell me where each setting is, and tell me to check GitHub's docs if a setting isn't there for my plan or repository.
3. If I work alone, explain that GitHub doesn't let you approve your own pull request, so requiring approvals would block me. Suggest what to require instead.
4. Explain that by default these rules don't apply to repository admins, and how to apply them to me too if I want to stop myself from skipping them.
5. Write my new routine as five short steps: branch, small commits, pull request with a description, review, merge only when checks pass.
6. If I want an automatic AI reviewer on every pull request, list the options I could look into and what to check in each tool's docs first (which plans have it, and what it costs to run). Don't set any of them up.
Tips to customize: GitHub's docs say pull request authors can't approve their own pull requests, and branch protection rules don't apply to admins unless you turn on "Do not allow bypassing the above settings." Automatic AI reviewers may only leave comments, not stop a merge. The Claude Code docs say Anthropic's Code Review never approves or blocks a pull request, and Cursor's docs say requiring the Bugbot check alone won't block merges on its findings. So read the comments before you click merge. Run Prompt 3.1 on them.
Get new free packs in your inbox
Optional. Every prompt here is free, and you don't need to sign up to use any of them. We email when we add new free packs. Unsubscribe anytime.
Thanks, you're on the list. Watch your inbox for the next prompt drop.