Back to Library
Code ReviewBeginner

Generate Pull Request Descriptions

Feed Claude a diff and a PR template to generate structured, high-quality PR descriptions that actually help reviewers.

gitpull-requestdocumentation

The Strategy

Consistently great PR descriptions improve review velocity. Using a template forces Claude to produce structured output that matches your team's review process.

prompt.txt
<task>
Generate a pull request description from the git diff below.
</task>

<template>
## What changed
[bullet list of changes]

## Why
[business or technical motivation]

## How to test
[step-by-step testing instructions]

## Screenshots (if UI change)
[placeholder]

## Checklist
- [ ] Tests added or updated
- [ ] Documentation updated
- [ ] No secrets committed
</template>

<diff>
[Paste git diff here]
</diff>

You might also need