From pr-description
This skill should be used when the user asks to "write a PR description", "create a PR", "open a PR", "push and create PR", "submit PR", "pr-description", or when finishing a feature branch and needing to create a pull request. Triggers on phrases like "create PR", "open PR", "write PR", "push this up", "submit this for review", or "pr description".
How this skill is triggered — by the user, by Claude, or both
Slash command
/pr-description:pr-descriptionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Write standardized PR descriptions and create GitHub pull requests. Analyze the current branch's changes, write a description following team guidelines, confirm with the user, then push and create the PR.
Write standardized PR descriptions and create GitHub pull requests. Analyze the current branch's changes, write a description following team guidelines, confirm with the user, then push and create the PR.
Collect all information about the current branch's changes. Run these commands in parallel:
# Current branch and base
git branch --show-current
git log --oneline main...HEAD # or master...HEAD — detect the default branch
# Full diff against base branch for understanding changes
git diff main...HEAD --stat
git diff main...HEAD
# Check remote status
git status
Identify the base branch (main or master) automatically. If neither exists, ask the user.
Read the diff and commit history to understand:
Focus on the what, not the how. Implementation details belong in the code, not the PR description.
For detailed guidelines and examples, consult references/guidelines.md.
Write the description using this structure:
### Summary
- 3–8 bullets describing what changed from a user/reviewer perspective
- Mostly what. A little why. No how.
### Decisions *(include only if non-obvious tradeoffs were made)*
- 1–3 bullets explaining why, not how
### Not included *(include when work is intentionally deferred)*
- Temporary UI, known gaps, follow-up work
### Screenshots *(required for UI changes)*
*(placeholder — remind the user to add screenshots)*
### Testing
- [ ] Concrete, verifiable test scenarios
- [ ] Cover happy path, edge cases, persistence, regression
Writing rules:
[ ] unchecked — the author checks them off after verifyingPresent the full PR description draft using AskUserQuestion. Ask:
<type>(<package>): <description>After user confirms:
# Push with upstream tracking
git push -u origin $(git branch --show-current)
# Create PR with gh
gh pr create --title "<title>" --body "<description>"
Use a HEREDOC for the body to preserve formatting:
gh pr create --title "feat(bd): add entity deduplication toggle" --body "$(cat <<'EOF'
### Summary
- ...
### Testing
- [ ] ...
EOF
)"
Tell the user the PR URL and remind them to:
PR titles follow the commit message convention:
<type>(<package>): <description>
feat, fix, refactor, toolingbp (brand-dashboard), ap (applicant-portal), bd (backend), sdkFor the full PR description guidelines with examples and anti-patterns, consult:
references/guidelines.md — Complete guidelines with good/bad examples and a full example PRnpx claudepluginhub franchiseai/claude-code-plugins --plugin pr-descriptionGenerates a PR description from conversation context and git diff, then opens PR creation in browser. Useful for automating the PR drafting workflow.
Drafts conventional commit PR titles and Shopware 5-section descriptions for core PRs targeting trunk. Analyzes branch against trunk, uses session context, asks for missing info.
Creates GitHub pull requests from branch changes using git analysis and gh CLI, with conventional commit titles and standardized templated descriptions including summary, changes, testing, and checklists.