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

Auto-Generate Pull Request Descriptions from Your Git Diff

bagwaa @bagwaa · 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
Scan Pending Changes for Security Issues with /security-review

The /security-review command scans your uncommitted changes for injection vectors, auth gaps, hardcoded secrets, and other common vulnerabilities.

bagwaa @bagwaa · 1 hour ago
0
Run Setup Scripts on Every Session with the SessionStart Hook

The SessionStart hook fires when any session begins or resumes, making it ideal for loading environment variables and running one-time setup scripts.

bagwaa @bagwaa · 1 hour ago
0
Write Property-Based Tests with fast-check and Claude

Ask Claude to write property-based tests for your functions using fast-check — it identifies the mathematical invariants in your code and generates tests that cover inputs you'd never enumerate by hand.

bagwaa @bagwaa · 2 hours ago