Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/creating-pr/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/creating-pr/

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

Similar skills

All skills for Git and GitHub →

From the same set59

codebase-onboarding Fires five explore subagents in parallel to cover architecture, data models, APIs, auth and deployment, then merges their findings into one onboarding doc. CX Codex +1 476installs auditing-performance A skill that audits app performance: bundle size, rendering, database queries and Core Web Vitals. Useful when pages load slowly or the UI stutters. CX Codex +1 476installs suggesting-cursor-hooks Watches for repetitive check requests and suggests automating them with Cursor hooks. Useful when you find yourself repeatedly asking the agent to run linters or tests. CX Codex +1 475installs building-skills-from-patterns Turns repeated multi-step workflows into reusable SKILL.md files. It triggers when an agent re-derives the same routine or needs the same user correction three times. CX Codex +1 466installs database-design Designs relational database schemas, foreign keys, indexes, and constraints from raw requirements, with output tailored for SQL, Prisma, or Drizzle. CX Codex +1 462installs parallel-exploring Launches several explore subagents at once so you can map a large codebase fast. Useful for onboarding and for tracing a feature across layers. CX Codex +1 459installs seo-auditing Audits technical SEO in web projects, covering meta tags, structured data, robots.txt, sitemaps, and Core Web Vitals. Useful before shipping pages to production. CX Codex +1 456installs writing-commit-messages This skill gives the agent a fixed format for commit messages: type, scope, body, footer. Useful when the model writes the commits, not you. CX Codex +1 454installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor