PR Description Generator
Copilot can access git diffs natively in its workspace. Cursor reads diffs when pointed to them. The risk assessment section is the key differentiator — it forces the AI to think about consequences, not just describe changes.
Generate a PR description from the current git diff.
PR template to follow:
## What
One-sentence summary of the change.
## Why
The problem this solves or the feature it adds. Link to issue if applicable: {{issue_reference}}
## How
Technical approach in 3-5 bullet points. Focus on non-obvious decisions.
## Testing
- [ ] Unit tests added/updated for: (list specific test cases)
- [ ] Manual testing steps:
1. (step-by-step reproduction)
2. (expected result at each step)
## Screenshots
(Note where screenshots should be added if there are UI changes)
## Checklist
- [ ] Types are accurate (no \`any\` escapes)
- [ ] Error states are handled
- [ ] Loading states are handled
- [ ] Mobile responsive (if UI change)
- [ ] No console.log left in code
- [ ] Migrations are backward-compatible (if DB change)
## Risk Assessment
- Blast radius: (what could break)
- Rollback plan: (how to revert safely)
- Monitoring: (what to watch after deploy)
Read the diff carefully. Don't describe every line change — summarize the intent and highlight anything a reviewer should pay extra attention to.Variables to customize
Why this prompt works
Copilot can access git diffs natively in its workspace. Cursor reads diffs when pointed to them. The risk assessment section is the key differentiator — it forces the AI to think about consequences, not just describe changes.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Get thorough code reviews with actionable feedback tailored to your language, framework, and standards.
Context-Aware Code CompletionProviding the surrounding code and project context lets the model match existing patterns exactly. The constraint against modifying existing code prevents unwanted side effects.
Inline Code SuggestionConstraining suggestions to match existing style and scope produces insertions that feel native to the codebase. The 'no explanation' rule mimics real inline completion behavior.
Code ExplanationThe audience level parameter adjusts complexity automatically. Requiring a usage example ensures the explanation is practical, not just theoretical.