Back to guide/Developer Tools

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.

github-copilot-vs-cursorissue_reference
Edit View
Prompt
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

{{issue_reference}}

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.