Pull request description reviewers can act on
Turn a git diff or commit list into a clear pull request description with context, changes, testing steps, risks and screenshots checklist.
- Published
- Works with
- ChatGPT, Claude and Gemini
- Level
- Beginner
A vague pull request description slows reviews down: reviewers have to reverse-engineer why the change exists and how to test it. This prompt turns your diff or commit list into a pull request description with the problem, the approach, a summary of changes, testing steps and risks, so reviewers can approve faster and future readers understand the history.
The prompt
Act as a senior engineer writing a pull request description for teammates.
Repository / service:
Linked ticket:
Why this change is needed:
Diff or commit list: [PASTE git diff --stat AND KEY HUNKS, OR COMMIT MESSAGES]
How I tested it:
Team PR template, if any:
Write:
1. Title: under 70 characters, imperative mood ("Add retry to payment webhook").
2. Summary: what changes and why, in 2–4 sentences.
3. Changes: bullet list grouped by area (API, UI, database, config), describing behaviour, not every line.
4. How to test: numbered steps a reviewer can follow, including setup and expected result.
5. Risks and rollout: migrations, feature flags, backwards compatibility, rollback plan.
6. Reviewer notes: files that need the closest look and any decisions I'd like feedback on.
7. Checklist: tests added, docs updated, screenshots for UI changes.
If my team template is given, follow its headings. Don't claim tests exist that I didn't mention; mark gaps as {TODO}.
How to use it
- Paste
git diff --statplus the important hunks; whole diffs of big PRs can drown the summary. - Edit the "why" yourself; the model can only infer intent from code.
- Keep PRs small: if the description needs more than five change groups, consider splitting the PR.
Tips
- Add before-and-after screenshots for any visual change.
- Save the output format as a PR template so every description has the same sections.
Frequently asked questions
What does this prompt do?
Turn a git diff or commit list into a clear pull request description with context, changes, testing steps, risks and screenshots checklist.
Which AI tools does it work with?
It is written for ChatGPT, Claude and Gemini. It also works in other AI tools that accept text prompts, with small changes.
What do I need to fill in?
5 blanks: name; ticket id or "none"; problem or feature in 1–3 sentences; what you ran or checked; paste or "none". Click each blue blank on the page, type your details and press Copy prompt.
Is this prompt free to use?
Yes. You can copy and use it for personal and commercial work.