Create well-formatted pull requests from branch commits.
Usage
/pr # Create PR for current branch
/pr --draft # Create as draft PR
/pr --base develop # Target specific base branch
What This Skill Does
Analyze Commits - Read all commits on branch vs base
Generate Title - From branch name or primary commit
Write Description - Summary, changes, test plan
Add Labels - Based on commit types (feat, fix, etc.)
Create PR - Using gh CLI
PR Template
## Summary
Brief description of what this PR does and why.
## Changes
- Change 1
- Change 2
- Change 3
## Test Plan
- [ ] Unit tests pass
- [ ] Manual testing performed
- [ ] Edge cases considered
## Screenshots (if applicable)
## Related Issues
Closes #123
Branch Name Conventions
Pattern
PR Type
Label
feat/*
Feature
enhancement
fix/*
Bug Fix
bug
docs/*
Documentation
documentation
refactor/*
Refactor
refactor
test/*
Tests
tests
Commands Used
# Get current branch
git branch --show-current
# Get commits not in base
git log main..HEAD --oneline
# Get changed files
git diff main..HEAD --stat
# Create PR
gh pr create --title "Title" --body "Description"
# Create draft PR
gh pr create --draft --title "Title" --body "Description"
Generate title - From branch name or summarize commits
Write description - Summary, bullet points of changes
Identify related issues - From commit messages (#123)
Add test plan - Based on what changed
Create PR - Use gh CLI with generated content
Report URL - Show the created PR link
1---2name: pr3description: Pull Request Creator4---56# /pr - Pull Request Creator78Create well-formatted pull requests from branch commits.910## Usage11```12/pr # Create PR for current branch13/pr --draft # Create as draft PR14/pr --base develop # Target specific base branch15```1617## What This Skill Does18191. **Analyze Commits** - Read all commits on branch vs base202. **Generate Title** - From branch name or primary commit213. **Write Description** - Summary, changes, test plan224. **Add Labels** - Based on commit types (feat, fix, etc.)235. **Create PR** - Using gh CLI2425## PR Template2627```markdown28## Summary29Brief description of what this PR does and why.3031## Changes32- Change 133- Change 234- Change 33536## Test Plan37- [ ] Unit tests pass38- [ ] Manual testing performed39- [ ] Edge cases considered4041## Screenshots (if applicable)4243## Related Issues44Closes #12345```4647## Branch Name Conventions4849| Pattern | PR Type | Label |50|---------|---------|-------|51| `feat/*` | Feature | `enhancement` |52| `fix/*` | Bug Fix | `bug` |53| `docs/*` | Documentation | `documentation` |54| `refactor/*` | Refactor | `refactor` |55| `test/*` | Tests | `tests` |5657## Commands Used5859```bash60# Get current branch61git branch --show-current6263# Get commits not in base64git log main..HEAD --oneline6566# Get changed files67git diff main..HEAD --stat6869# Create PR70gh pr create --title "Title" --body "Description"7172# Create draft PR73gh pr create --draft --title "Title" --body "Description"74```7576## Instructions for Claude7778When /pr is invoked:79801. **Get current branch** - Ensure not on main/master812. **Find base branch** - Default to main or master823. **Analyze commits** - Extract types, scopes, descriptions834. **Generate title** - From branch name or summarize commits845. **Write description** - Summary, bullet points of changes856. **Identify related issues** - From commit messages (#123)867. **Add test plan** - Based on what changed878. **Create PR** - Use gh CLI with generated content889. **Report URL** - Show the created PR link
Run npx skillmds@latest add aretedriver/pr in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Pull Request Creator It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
AreteDriver (@aretedriver) published this skill. Their other Agent Skills are listed on their SkillMD profile.