create-pr
Standardizes the pull request process by handling branching, commits, and structured documentation.
Install
mkdir -p .claude/skills/create-pr-charleschang012 && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14556" && unzip -o skill.zip -d .claude/skills/create-pr-charleschang012 && rm skill.zipInstalls to .claude/skills/create-pr-charleschang012
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.
Create a feature branch, commit finished changes, push to remote, and open a high-quality pull request with a structured description. Use when implementation is complete and the work is ready for review.Key capabilities
- →Review changes using `git diff`
- →Create a branch with a work-type prefix
- →Commit finished changes with a semantic message
- →Push the branch to the remote repository
- →Prepare a structured pull request description
- →Create a pull request using GitHub MCP tool or manually
How it works
The skill reviews changes, creates a new branch with a semantic name, commits the work, and pushes it. It then prepares a structured pull request description and creates the pull request.
Inputs & outputs
When to use create-pr
- →Submitting new features
- →Opening PRs for bug fixes
- →Finalizing code refactors
About this skill
Create Pull Request
Creates a reviewable branch, commits completed work, pushes it, and prepares a clear pull request.
When To Use
Use this skill when:
- A feature is complete
- A bug fix is complete
- A refactor is complete
- UI changes are complete
- Database or backend changes are complete
Do not use this skill before implementation is finished.
Step 1 — Review Changes
Review the diff before creating any branch, commit, or pull request.
git diff
Summarise:
- What changed
- Why it changed
- Files affected
- Risks
- Testing performed
Step 2 — Create a Branch and Commit
Use a branch name that matches the work type:
feature/<short-description>for featuresfix/<short-description>for bug fixesrefactor/<short-description>for refactors
Run the appropriate commands:
git checkout -b feature/$ARGUMENTS
git add .
git commit -m "feat: $ARGUMENTS"
git push origin feature/$ARGUMENTS
Adjust the branch prefix and commit message to match the actual change.
Preferred semantic commit prefixes:
feat:new featurefix:bug fixrefactor:code refactorui:UI changesdb:database changestest:testsdocs:documentation
Example:
git commit -m "feat: show category name instead of category id in recipe view"
Step 3 — Prepare the Pull Request Description
Use this template:
# Pull Request: $ARGUMENTS
## Summary
[Brief summary of changes]
## Changes Made
- [Change 1]
- [Change 2]
- [Change 3]
## Testing Done
- [Test 1]
- [Test 2]
- [Test 3]
## Screenshots / GIFs
[If applicable]
## Implementation Notes
[Any special implementation considerations]
## Breaking Changes
[List any breaking changes]
## Related Issues
Closes #[issue number]
## Reviewers
[Suggested reviewers if any]
Step 4 — Create the Pull Request
If the GitHub MCP tool is available, use it to create the pull request with the prepared title and body.
Example implementation:
try {
const templateContent = `# Pull Request
## Summary
${$ARGUMENTS}
## Changes Made
- Updated relevant files
- Implemented requested feature or fix
- Adjusted logic and UI where necessary
## Testing Done
- Verified feature works
- Checked edge cases
- Confirmed no regressions
## Implementation Notes
See commits for detailed implementation.
## Breaking Changes
None
## Related Issues
Closes # [issue number]
## Checklist
- [x] Code follows project standards
- [x] Self-review completed
- [x] No new warnings
- [x] Tests pass
`;
const pullRequest =
await mcp__modelcontextprotocol_server_github__server_github.createPullRequest({
owner: "jerseycheese",
repo: "narraitor",
title: `Fix: ${$ARGUMENTS}`,
body: templateContent,
head: `feature/${$ARGUMENTS}`,
base: "develop",
});
console.log(`Successfully created PR: ${pullRequest.html_url}`);
} catch (error) {
console.error("Error creating PR with MCP GitHub tool:", error);
console.log("Please create the PR manually using this URL:");
console.log(
`https://github.com/jerseycheese/narraitor/compare/develop...feature/${$ARGUMENTS}`
);
}
If MCP is unavailable, create the PR manually using the compare URL pattern shown above.
Output Format
After creating the pull request, return:
- Branch name
- Files changed
- Commit message
- PR title
- PR description
- PR link
- Risks
- Testing summary
Rules
- Do not commit directly to
mainordevelop - Always create a feature, fix, or refactor branch
- Always review the diff before committing
- Always write a clear PR description
- Always link related issues if available
- Prefer small PRs over large PRs
- Ensure no secrets or credentials are committed
- Document database changes when present
- Ensure permissions and visibility rules are not broken
When not to use it
- →Before implementation is finished
- →When committing directly to `main` or `develop`
- →When not creating a feature, fix, or refactor branch
Limitations
- →The skill does not commit directly to `main` or `develop`.
- →The skill requires a clear PR description.
- →The skill requires linking related issues if available.
How it compares
This workflow enforces a structured and semantic approach to creating pull requests, ensuring clear documentation and adherence to branching strategies, unlike ad-hoc 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 |
| github-contributor | 1 | 2mo | Review | Intermediate |
| open-source-maintainer | 1 | 6mo | Review | Intermediate |
| code-changelog | 0 | 9mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
github-contributor
daymade
Strategic guide for becoming an effective GitHub contributor. Covers opportunity discovery, project selection, high-quality PR creation, and reputation building. Use when looking to contribute to open-source projects, building GitHub presence, or learning contribution best practices.
open-source-maintainer
numman-ali
End-to-end GitHub repository maintenance for open-source projects. Use when asked to triage issues, review PRs, analyze contributor activity, generate maintenance reports, or maintain a repository. Triggers include "triage", "maintain", "review PRs", "analyze issues", "repo maintenance", "what needs attention", "open source maintenance", or any request to understand and act on GitHub issues/PRs. Supports human-in-the-loop workflows with persistent memory across sessions.
code-changelog
bear2u
AI가 만든 모든 코드 변경사항을 reviews 폴더에 기록하고 간단한 HTML 뷰어로 웹 브라우저에서 실시간 확인할 수 있습니다. 매 수정마다 문서가 생성되고 Python 서버로 즉시 확인 가능합니다.
code-review
jonatron55
Instructions for reviewing changes and ensuring quality before completion. Use when asking for a review or before committing changes.
pr
mlrun
Analyze branch changes and generate a fully filled PR description ready to paste into GitHub
pr
Chemaclass
Push branch and create a GitHub PR following the bashdep PR template