Generates a PR title and description from the current branch diff against main. Analyzes commits, file changes, and templates to produce structured output.
Ships in recipe-commands. Installing the plugin adds it to Claude Code.
Generate a pull request title and description by analyzing the current branch's changes against the base branch.
Run git remote show origin or inspect common defaults to determine the base branch. Try main first, then master, then develop. Use whichever exists on the remote.
Run these commands to understand the full scope of changes:
git log --oneline <base>..HEAD -- list all commits on this branchgit diff <base>...HEAD --stat -- file-level summary of changesgit diff <base>...HEAD -- full diff for detailed analysisAlso check if there is a .github/PULL_REQUEST_TEMPLATE.md or similar template file. If one exists, use its structure instead of the default format below.
Read through the diff and commit history to understand:
If commit messages reference issue numbers (e.g., #123, JIRA-456), include them.
Write a concise PR title (under 72 characters) following this format:
feat: add user avatar upload (new feature)fix: resolve race condition in payment processing (bug fix)refactor: extract auth middleware into shared module (refactor)chore: upgrade React from 18 to 19 (maintenance)docs: add API authentication guide (documentation)Use the conventional commit prefix that best matches the changes.
Output the PR description in this format:
## Summary
One to three sentences describing the high-level purpose of this PR.
Reference any related issues: Closes #123, Relates to #456.
## Changes
- Bullet list of specific, meaningful changes
- Group related changes together
- Mention new dependencies, config changes, or migrations
- Note any breaking changes with a **BREAKING:** prefix
## Test Plan
- [ ] Describe how to verify the changes work
- [ ] List any manual testing steps
- [ ] Note which automated tests cover the changes
- [ ] Call out areas that need extra review attention
Present the title and description clearly so the user can copy them. Format the title on its own line, then the full description body. Do not wrap the output in an outer code fence -- present it as raw Markdown the user can paste directly into their PR.
What the command file sets; muted values are Claude Code's defaults
haiku7-day visitors to each command page
/recipe-commands:pr-descriptionfrom recipe-commands
npx claudepluginhub sagargupta16/claude-code-recipes --plugin recipe-commands15 commands in this plugin
/api-genStep 1 -- Understand the RequirementsGenerate REST API endpoints with routes, validation, error handling, and tests/audit-reposStep 1 -- List the ReposAudit all your GitHub repos for CI health, hygiene, security alerts, and staleness/check-all-prsStep 1 -- Find the PRsCheck all your open PRs across GitHub repos for CI, reviews, and merge readiness/code-reviewStep 1 -- Gather the DiffReview staged git changes for bugs, security issues, and style violations/commit-messageStep 1 -- Get the Staged DiffGenerate a conventional commit message from staged changes/component-genStep 1 -- Parse the RequestGenerate React or Vue components with prop types, styling, accessibility, and testsOther plugins' commands for the same job