create-pr
Creates high-quality PRs with conventional commit standards and automated descriptions.
Install
mkdir -p .claude/skills/create-pr-rainerseventeen && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13623" && unzip -o skill.zip -d .claude/skills/create-pr-rainerseventeen && rm skill.zipInstalls to .claude/skills/create-pr-rainerseventeen
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Automate GitHub Pull Request creation for this Astro blog project. Use when changes are committed and you need to create a PR with an auto-generated conventional-commit title and a concise description.Key capabilities
- →Automate GitHub Pull Request creation
- →Validate branch state before PR creation
- →Gather PR context from git history
- →Generate conventional-commit compliant PR titles
- →Create PR descriptions using a template
How it works
The skill automates GitHub Pull Request creation by validating the branch state, gathering context from git history, and generating a conventional-commit compliant title and a templated description. It then uses the GitHub MCP tool to create the PR.
Inputs & outputs
When to use create-pr
- →Creating a PR
- →Opening a draft pull request
- →Automating PR creation workflow
- →Linking PRs to commits
About this skill
Create PR
Automatically create a high-quality GitHub Pull Request after the current branch is ready.
When to Use
Trigger when the user asks to create a PR, for example:
- "Create a PR"
- "Help me open a pull request"
- "Create PR for current branch"
- "Push this branch and open a draft PR"
Prerequisites:
- Code changes are committed to a git branch
- Current branch is not the default branch (
mainormaster) - Branch has commits not yet merged into the base branch
- Branch is pushed to the remote, or can be pushed first
Workflow
Step 1: Validate branch state
Use Bash to inspect the current git state:
git branch --show-current
git status -sb
git log origin/main..HEAD --oneline
git diff origin/main...HEAD --stat
git remote -v
Validation checklist:
- Current branch is not
mainormaster - Branch contains unique commits
- Base branch should usually be
main - If the branch is not pushed, push it before creating the PR
Step 2: Gather PR context
Collect the information needed for a good title and body:
git log origin/main..HEAD --format="%h %s%n%b"
git diff origin/main...HEAD --stat
When available, use GitHub MCP tools for commit context:
mcp__github__list_commits owner=<owner> repo=<repo> sha=<current_branch>
Extract:
- Main purpose of the change
- Affected areas or modules
- Testing that was run
- Related issue references
Step 3: Generate PR title and description
Title format must follow conventional commits:
<type>(<scope>): <summary>
- Type:
feat,fix,perf,test,docs,refactor,build,ci,chore,revert - Scope is optional
- Title must be in English
- Summary must start with a lowercase letter
- Use imperative present tense
- Do not end with a period
- For breaking changes, add
!before the colon - To exclude from changelog, add
(no-changelog)suffix
Validation regex:
^(feat|fix|perf|test|docs|refactor|build|ci|chore|revert)(\([a-zA-Z0-9 /_-]+\))?!?: [a-z].+[^.]$
PR body template:
## Summary
<1-2 paragraphs describing what changed and why>
### Changes
- <change 1>
- <change 2>
- <change 3>
## Testing
- Tests performed: <description>
OR
- Not run (not requested)
OR
- Not run (content-only changes)
## Related Issues
<issue references such as "Closes #123" or "N/A">
## Notes
<optional caveats or follow-up items>
Step 4: Create the PR
Use the GitHub MCP tool:
mcp__github__create_pull_request \
owner=<owner> \
repo=<repo> \
title="<conventional_commit_title>" \
head=<current_branch> \
base=<base_branch> \
body="<pr_description>"
Optional parameters:
draft=truemaintainer_can_modify=true
Step 5: Confirm result
Report:
- PR number and URL
- PR title
- Head and base branches
- Short summary of changed files or scope
Project-Specific Conventions
For this Momo / Astro blog repository, prefer these scopes when they fit:
content- blog posts, pages, and content structureconfig- site config and collection configui- Astro components, layouts, and stylesi18n- locale routing and translation filescomment- comment components and integrationbuild- Astro, pagefind, CI, and deployment
Examples:
feat(content): add related post backlinksfix(i18n): correct fallback locale routedocs(config): update blog publishing guiderefactor(ui): simplify post card layout
Error Handling
Common issues:
- Branch not pushed
- Run
git push -u origin <branch>
- No unique commits
- Report that the current branch has no changes relative to the base branch
- GitHub MCP failure
- Report the tool failure clearly and stop before inventing a PR URL
- Title format invalid
- Rewrite the title to match the conventional-commit rules before creating the PR
When not to use it
- →When code changes are not committed to a git branch
- →When the current branch is the default branch (`main` or `master`)
- →When the branch has no unique commits relative to the base branch
Limitations
- →Requires code changes to be committed to a git branch
- →Current branch must not be the default branch (`main` or `master`)
- →Branch must have commits not yet merged into the base branch
How it compares
This skill simplify the PR creation process by automating branch validation, context gathering, and conventional commit formatting, which is more efficient and consistent than manual PR creation.
Compared to similar skills
create-pr side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| create-pr (this skill) | 0 | 3mo | Review | Intermediate |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| openspec-onboard | 10 | 6mo | Review | Beginner |
| codex-cli-bridge | 9 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
openspec-onboard
studyzy
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
skill-sync
KyleKing
Syncs Claude Skills with other AI coding tools like Cursor, Copilot, and Codeium by creating cross-references and shared knowledge bases. Invoke when user wants to leverage skills across multiple tools or create unified AI context.
github-workflow-automation
ruvnet
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.