/pr-create:pr-createfrom pr-create
Creates GitHub pull requests with conventional commit-style titles. Use when creating PRs, submitting changes for review, or when user says /pr, /pr-create.
Ships in pr-create. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Creates GitHub pull requests with conventional commit-style titles and structured bodies.
Follows git workflow conventions from .claude/skills/pr-create/git-workflow.md.
/pr-create configure (install default PR template)/pr-create (create PR).github/PULL_REQUEST_TEMPLATE.md| Command | Purpose | When to Use |
|---|---|---|
/pr-create configure | Install default PR template | First time in a project or to reset template |
/pr-create | Create PR using template | Normal usage |
When: First time using /pr-create in a project, or to install/reset the PR template
What it does:
.github/PULL_REQUEST_TEMPLATE.md existstemplates/PULL_REQUEST_TEMPLATE.md to .github/PULL_REQUEST_TEMPLATE.md1. CHECK FOR EXISTING TEMPLATE
└─ Look for .github/PULL_REQUEST_TEMPLATE.md
2. DECIDE SOURCE
├─ If no template exists → use default
└─ If template exists → ask user: keep existing or replace?
3. INSTALL TEMPLATE
├─ mkdir -p .github
└─ Copy default template to .github/PULL_REQUEST_TEMPLATE.md
4. SAVE CONFIG
└─ Write pr-create.yaml with template source and path
Config path depends on the installation model. Detect which model is active by checking whether this skill is running from inside .claude/skills/pr-create/ (my-workflow) or from an external plugin directory (standalone).
| Installation Model | Config File | How to Detect |
|---|---|---|
| Standalone (external plugin) | .claude/skills/pr-create.yaml | Skill files are NOT inside .claude/skills/pr-create/ |
| my-workflow (copied into project) | .claude/skills/pr-create/pr-create.yaml | Skill files ARE inside .claude/skills/pr-create/ |
Precedence when reading (first found wins):
.claude/skills/pr-create/pr-create.yaml (my-workflow installation).claude/skills/pr-create.yaml (standalone installation)# .claude/skills/pr-create.yaml (standalone installation)
# .claude/skills/pr-create/pr-create.yaml (my-workflow installation)
version: 1
configured_at: "ISO timestamp"
template:
source: "default" # or "project"
path: ".github/PULL_REQUEST_TEMPLATE.md"
When: Creating a pull request
Reads config from (first found):
.claude/skills/pr-create/pr-create.yaml (my-workflow installation).claude/skills/pr-create.yaml (standalone installation)1. PRE-PR CHECKS
├─ Verify gh CLI installed and authenticated
├─ Verify on feature branch (not main/master)
└─ Verify changes are committed
2. GENERATE PR CONTENT
├─ Analyze commits on branch
├─ Generate title (conventional commit format)
└─ Generate body (use .github/PULL_REQUEST_TEMPLATE.md if exists)
3. VALIDATE (before creating)
├─ Check title for AI attribution (STOP if found)
├─ Check body for AI attribution (STOP if found)
└─ Check title length ≤ 50 chars
4. USER REVIEW
└─ Show preview, wait for approval
5. CREATE PR
└─ gh pr create with approved content
Before creating a PR, verify:
gh --version - if missing: brew install ghgh auth status - if not: gh auth login<type>(<scope>): <subject>
| Type | Use for |
|---|---|
feat | New features |
fix | Bug fixes |
chore | Maintenance, refactoring |
docs | Documentation |
test | Test changes |
perf | Performance improvements |
ci | CI/CD changes |
Scopes are optional and project-specific. Common patterns:
auth, api, db)config, logging)worker, gateway)COMPLETE VIOLATION - Never include ANY of the following in PR titles, bodies, or commits:
Co-Authored-By: Claude, Co-Authored-By: GPT, or any AI namePRs and commits must appear as human-authored work. This is a strict framework requirement.
Use the PR template at .github/PULL_REQUEST_TEMPLATE.md if it exists.
Run /pr-create configure to install a default template if the project doesn't have one.
Before creating the PR, present it to the user for review:
## PR Preview
**Title:** feat(auth): Add OAuth2 login support
**Body:**
## Description
Adds OAuth2 authentication via Google and GitHub providers.
Users can now log in with their existing accounts.
## Types of Changes
- [ ] Bug fix
- [x] New feature
...
---
Any changes I should make?
Wait for user confirmation:
See skill.yaml for the full procedure and patterns.
See sharp-edges.yaml for common failure modes.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dohernandez/claude-skills --plugin pr-create