dot_agents/skills/creating-github-pull-requests/SKILL.md
Create GitHub Pull Requests with consistent, high-quality titles and descriptions. Use when opening a PR on GitHub — covers title formatting, summary, decision log, and before/after comparison.
npx skillsauth add MrPointer/dotfiles creating-github-pull-requestsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create Pull Requests on GitHub with a consistent structure that is easy to review and understand.
Before writing anything, collect the raw material:
42 from feature/42-local-accounts).git log <base>..HEAD --oneline to understand the full scope.git diff <base>...HEAD (or --stat first for an overview). Read enough of the diff to understand what changed and why.Do not rely solely on commit messages — they often lack the bigger picture. Read the actual changes.
All PR content must describe the net change from the base branch to HEAD. Do not describe intermediate implementation steps, temporary refactors made during the session, or changes elsewhere in the worktree that are not part of the branch diff.
Format: <type>: <short description>
feat, fix, refactor, docs, test, chore, ci, perf.Examples:
feat: add support for local user accountsfix: prevent duplicate webhook deliveries on retryrefactor: extract payment validation into dedicated serviceThe PR body has three sections, plus an optional issue-closing line at the very end. All sections use plain, direct language — no filler, no marketing.
In the generated PR description, prefix each section heading with a matching emoji: 📝 Summary, 🔑 Key Decisions, 🔄 Before & After.
3–5 lines maximum. Answer: what changed and why does it matter?
Write for a reviewer who has not seen the ticket. State the problem or goal, then the approach taken. Do not list files or repeat commit messages.
Describe only the final reviewer-visible outcome relative to the base branch.
Each significant component or area that was added, changed, or removed gets its own ### sub-heading under this section. A short paragraph describes what changed and, when the rationale is not obvious from the ticket alone, why.
If a change isn't worth more than a single bullet point, it's not worth calling out here — the diff speaks for itself.
Do not explain the order you made changes during the session unless that order is visible in the final branch state and matters to the reviewer.
Include rationale when:
## Key Decisions
### Validation Service
Added `validation.Service` to encapsulate all input validation rules, replacing the inline checks that lived in HTTP handlers. The inline approach had zero test coverage — extracting it makes the rules unit-testable without HTTP scaffolding.
### Webhook Idempotency
Introduced an idempotency key on webhook delivery to prevent duplicates on retry. Chose optimistic locking over pessimistic since contention is rare and the retry cost is low.
A table comparing the previous state to the new state. This helps reviewers understand the net effect without reading every line of the diff.
Each row covers one meaningful area of change. Keep cells concise — short phrases, not sentences.
Every row must compare the base branch state to the final branch state. Never use intermediate states from the implementation process as the Before or After values.
## Before & After
| Area | Before | After |
|------|--------|-------|
| User creation | Only OAuth providers supported | Local username/password accounts available |
| Validation | Inline in HTTP handler | Extracted to `validation.Service` |
| Retry behavior | Webhooks re-sent on any failure | Idempotency key prevents duplicate delivery |
If the branch name contains a GitHub issue number, add a closing keyword as the last line of the PR body. This auto-closes the issue when the PR merges.
Always use Closes: Closes #42
Omit this line entirely if there is no associated issue.
Use the GitHub CLI:
gh pr create --title "<title>" --body "$(cat <<'EOF'
<description body>
EOF
)"
git push -u origin HEAD.base...HEAD, not the sequence of edits made while implementing the change.testing
Create implementation plans from a reviewed RFC. Uses the RFC as the approved design baseline, decomposes it into executable sub-plans, and runs RFC-specific plan review.
tools
Create implementation plans directly from user requirements when no reviewed RFC is available or the user explicitly declines RFC-first planning. Decomposes work into self-contained sub-plans with full iterative multi-agent plan review.
content-media
Decompose a reviewed RFC into sequenced features for a single project. Uses the RFC as the approved design baseline and produces a persistent epic plan reviewed for RFC fidelity and feature decomposition.
tools
Decompose large efforts directly from user requirements when no reviewed RFC is available or the user explicitly declines RFC-first epic planning. Produces a persistent epic plan with rich feature descriptions that feed into planning-project-features separately.