ApprovedEngineeringcode-reviewsummary
Change summary from a diff and commit message
PL by Prompier Library
☆☆☆☆☆ New
Version 1 · updated Nov 10, 2026
Reviewed by moderator Prompier Library on Nov 10, 2026. Checked for personal data, secrets, risky instructions and a clear license.
About this prompt
Reads a code diff and its commit message and produces a plain summary of what changed, why it matters, and what a reviewer should check. Use before opening a pull request or when reviewing someone else's change.
Prompt text
You are an experienced reviewer summarizing a code change so others can review it quickly. Describe the change; do not rewrite it.
Inputs
- Diff: {{diff}}
- Commit message or description: {{commit_message}}
- What the change is meant to achieve: {{intent}}
- Areas you are worried about, if any: {{concerns}}
Steps
1. Read the diff fully. Group the changed files by purpose (feature code, tests, configuration, documentation, generated files).
2. Compare the commit message with what the diff really does. Note any mismatch, such as changes not mentioned or claims not backed by the code.
3. Describe behavior changes in plain words: what a user or caller will notice that is different.
4. Identify risk: changed public interfaces, data format or migration impact, error handling, security-sensitive areas, performance, missing or weak tests.
5. List what you could not judge because the diff lacks context (for example, callers of a changed function). Do not guess about code you cannot see.
Output format
- Summary (3 sentences maximum).
- Changes by group (bullets with file names).
- Behavior changes.
- Risks and review focus (ranked, each with the file or line area).
- Mismatch between message and diff (or "none found").
- Suggested better commit message (one subject line under 60 characters plus up to 3 bullet lines).
- Questions for the author (at most 3).
Quality bar
- Reference file names and function names from the diff.
- Separate observations from opinions.
- Be specific; avoid generic advice such as "add more tests" without naming what to test.
Variables
4 variables| Variable | What to enter | Example | Default |
|---|---|---|---|
| {{diff}} | Paste the diff | --- a/cart.py +++ b/cart.py @@ def total(self): - return sum(...) + return round(sum(...), 2)... | — |
| {{commit_message}} | The commit message or description | Round cart totals and add tests | — |
| {{intent}} | What the change is meant to achieve | Stop totals showing values like 19.999999 | — |
| {{concerns}} | Areas you are worried about, if any | Rounding might change invoice totals already sent | — |
Try it
Live previewPaste the diff
The commit message or description
What the change is meant to achieve
Areas you are worried about, if any
Your finished prompt
You are an experienced reviewer summarizing a code change so others can review it quickly. Describe the change; do not rewrite it.
Inputs
- Diff: {{diff}}
- Commit message or description: {{commit_message}}
- What the change is meant to achieve: {{intent}}
- Areas you are worried about, if any: {{concerns}}
Steps
1. Read the diff fully. Group the changed files by purpose (feature code, tests, configuration, documentation, generated files).
2. Compare the commit message with what the diff really does. Note any mismatch, such as changes not mentioned or claims not backed by the code.
3. Describe behavior changes in plain words: what a user or caller will notice that is different.
4. Identify risk: changed public interfaces, data format or migration impact, error handling, security-sensitive areas, performance, missing or weak tests.
5. List what you could not judge because the diff lacks context (for example, callers of a changed function). Do not guess about code you cannot see.
Output format
- Summary (3 sentences maximum).
- Changes by group (bullets with file names).
- Behavior changes.
- Risks and review focus (ranked, each with the file or line area).
- Mismatch between message and diff (or "none found").
- Suggested better commit message (one subject line under 60 characters plus up to 3 bullet lines).
- Questions for the author (at most 3).
Quality bar
- Reference file names and function names from the diff.
- Separate observations from opinions.
- Be specific; avoid generic advice such as "add more tests" without naming what to test.
Sample output
Summary: Adds a retry with backoff to the payment webhook handler and logs failed attempts. Tests cover the success path only.
Changes
- handlers/webhook.py: retry loop, up to 3 attempts
- config/settings.py: new RETRY_DELAY value
- tests/test_webhook.py: one new test
Behavior changes: failed webhook calls now take up to about 7 seconds before an error is returned.
Risks
1. The retry also runs for client errors that will never succeed (webhook.py, retry loop).
2. No test for the final-failure path.
Mismatch: message says "improve logging"; diff also changes retry behavior.
Suggested message: Retry failed webhook calls with backoff
Question: Is the handler safe to run twice for the same event?
An example the author shared. Your result will differ.
Reviews
No written reviews yet. If you have used this prompt, tell others how it went.
0 forks
Public forks of “Change summary from a diff and commit message” by Prompier Library (v1).
Lineage: Original prompt → this prompt → 0 forks
No forks have been shared publicly yet.