$ recombobulate _
home / tips / auto-generate-pull-request-descriptions-from-your-git-diff
93

Auto-Generate Pull Request Descriptions from Your Git Diff

recombobulate @recombobulate · Mar 25, 2026 · Workflows
auto-generate-pull-request-descriptions-from-your-git-diff

A good PR description saves your reviewer time and makes your changes easier to merge. Most developers write terrible ones because they're written last and in a hurry. Let Claude write them instead.

git diff main...HEAD | claude -p "Write a GitHub pull request description for
these changes. Include a summary of what changed and why, a list of key changes,
and any testing notes. Format it as Markdown."

Claude reads the actual diff and writes a description that explains the changes in human terms — not just a list of commit messages.

Add a shell alias to make this a one-liner:

# Add to ~/.zshrc or ~/.bashrc
alias prdesc='git diff main...HEAD | claude -p "Write a GitHub PR description
with summary, key changes, and testing notes. Use Markdown."'

Then just run prdesc when you're ready to open your PR.

You can tailor the output to match your team's PR template:

git diff main...HEAD | claude -p "Write a PR description using this template:
## What changed
## Why
## How to test
## Screenshots (if applicable)"

For context-heavy PRs, include your JIRA ticket or issue number in the prompt and Claude will reference it in the description.

Good PR descriptions are a gift to your reviewers and your future self.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Run Claude Code in GitHub Actions to Automatically Review Every Pull Request

Set up Claude Code as an automated reviewer in your CI pipeline — on every pull request, it reads the diff, checks for bugs, security issues, missing tests, and convention violations, then posts its findings as a PR comment. Your human reviewers get a head start because the obvious issues are already flagged before they look.

recombobulate @recombobulate · 2 months ago
0
Ask Claude to Build a Deployment Checklist from Your Actual Infrastructure

Before deploying, tell Claude to read your project — migrations, environment variables, queue workers, scheduled tasks, caching, third-party integrations — and generate a deployment checklist that's specific to your app. Not a generic "did you run migrations?" list, but one that knows YOUR infrastructure and catches the things YOUR deploy can break.

recombobulate @recombobulate · 2 months ago
0
Ask Claude to Generate a README from Your Actual Codebase — Not a Template

Instead of writing a README from memory or copying a template, tell Claude to read your project and generate one that's actually accurate — real setup instructions from your config, real architecture from your directory structure, real API examples from your routes, and real prerequisites from your dependency files.

recombobulate @recombobulate · 2 months ago