creating-pr — Claude Code skill: review-ready pull requests
A skill that walks the agent through opening a pull request: branch prep, title, structured description, self-review and reviewer requests.
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a claude-codeWhat creating-pr does
The skill lays out a six-step workflow. First the branch is brought up to date with the base: git fetch origin, then rebase or merge depending on project convention, followed by a look at the commits and diff stats. Fixup commits can be squashed if the project wants clean history, or kept separate if it prefers granular commits.
Titles follow <type>: <short description>, with types feat, fix, refactor, docs, test, chore and perf. The description has three parts: a Summary of 1–3 sentences with Closes #123, a list of changes, and a Test Plan with checkboxes. Before requesting review the skill has you read the whole diff, strip debug code, and run tests, type checks and lint.
The PR itself goes out through git push -u origin HEAD and gh pr create with a heredoc body. Then come reviewers, labels, and a file-by-file review order comment when the diff tops 400 lines. You need gh installed and authenticated against GitHub, or the create step fails. The skill suggests keeping changes under 300 lines and splitting bigger ones into stacked PRs.
What it helps with
- draft a PR description with Summary, Changes and Test Plan sections
- sync the branch with the base before opening the PR
- pick the right title type from feat, fix, refactor and the rest
- run tests, type checks and lint before asking for review
- split an oversized diff into stacked pull requests
Example prompts for the agent
- create a PR from the current branch
- prepare a pull request with a description and test plan
- review the diff and strip debug code before requesting review
How to install creating-pr
1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a claude-code2Manually: put the files in place
~/.claude/skills/creating-pr/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/creating-pr/
1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a codex2Manually: put the files in place
.agents/skills/creating-pr/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a cursor2Manually: put the files in place
.cursor/skills/creating-pr/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install spencerpauly/awesome-cursor-skills creating-pr2Manually: put the files in place
.github/skills/creating-pr/SKILL.md1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a gemini-cli2Platform CLI
gemini skills install https://github.com/spencerpauly/awesome-cursor-skills --path resources/creating-prManually: put the files in place
.devin/skills/creating-pr/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about creating-pr
How do I install creating-pr in Claude?
Run npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a claude-code. The skill lands in ~/.claude/skills/creating-pr/SKILL.md.
What does creating-pr do?
It walks the agent through opening a pull request: branch prep, a typed title, a structured description, a self-review of the diff, and reviewer requests.
What do I need for the skill to work?
The PR step calls gh pr create, so the GitHub CLI has to be installed and authenticated.
Source text
SKILL.md · CC0-1.0
--- name: creating-pr description: Create a clean, review-ready pull request with a good title, structured description, linked issues, and appropriate reviewers. user-invocable: true --- # Creating a PR Package work into a pull request that's easy to review and merge. ## Workflow ### 1. Prepare the Branch Before creating the PR: ```bash # Ensure branch is up to date with base git fetch origin git rebase origin/main # or merge, depending on project convention # Check what will be in the PR git log origin/main..HEAD --oneline git diff origin/main --stat ``` Squash fixup commits if the project prefers clean history. Keep logical commits separate if the project prefers granular history. ### 2. Write the Title Format: `<type>: <short description>` | Type | When | |------|------| | `feat` | New feature | | `fix` | Bug fix | | `refactor` | Code change that neither fixes a bug nor adds a feature | | `docs` | Documentation only | | `test` | Adding or fixing tests | | `chore` | Build, CI, deps, or tooling | | `perf` | Performance improvement | Examples: - `feat: add dark mode toggle to settings page` - `fix: prevent duplicate form submissions on checkout` - `refactor: extract auth middleware into shared module` ### 3. Write the Description Use this structure: ```markdown ## Summary 1-3 sentences explaining what this PR does and why. Closes #123 ## Changes - Added `ThemeToggle` component with system/light/dark options - Updated `Layout` to read theme from context - Added theme persistence to localStorage ## Test Plan - [ ] Toggle between light/dark/system themes - [ ] Refresh page — theme persists - [ ] Check no flash of unstyled content on load ``` ### 4. Self-Review Before requesting review: - Read every line of the diff yourself - Remove debug code (`console.log`, `TODO`, commented-out code) - Verify tests pass: `npm test` - Verify types: `npx tsc --noEmit` - Verify lint: `npm run lint` - Check for files that shouldn't be committed (`.env`, lockfile conflicts) ### 5. Create the PR ```bash git push -u origin HEAD gh pr create --title "<title>" --body "$(cat <<'EOF' ## Summary ... ## Changes ... ## Test Plan ... EOF )" ``` ### 6. Request Review - Tag the appropriate reviewers (code owners, domain experts) - If the PR is large (>400 lines), add a comment explaining the best order to review files - If the PR depends on another PR, note it in the description - Label the PR appropriately (feature, bug, breaking change, etc.) ## Tips - Small PRs get reviewed faster — aim for <300 lines changed - If a PR is too big, split it into stacked PRs - Screenshots/recordings for UI changes make review much faster - Draft PRs are useful for early feedback before the work is complete
© spencerpauly · CC0-1.0 · spencerpauly/awesome-cursor-skills