name: create-pr description: Create a descriptive GitHub PR with summary and test plan using gh CLI user-invocable: true argument-hint: "[base branch, defaults to develop]"
Create PR Skill
Create a well-structured GitHub Pull Request using the gh CLI.
Instructions
-
Determine the base branch:
- Use
$ARGUMENTSif provided, otherwise default todevelop.
- Use
-
Gather context by running:
git log <base>..HEAD --oneline— all commits in this branchgit diff <base>...HEAD --stat— changed files summarygit branch --show-current— current branch name
-
Push the branch if needed:
git push -u origin HEAD -
Analyze ALL commits (not just the latest) to understand the full scope of changes.
-
Create the PR using
gh pr create:- Title: Under 70 characters, descriptive of the overall change
- Body using this template:
## Summary - <1-3 bullet points describing what changed and why> ## Changes - <key file modifications and their purpose> ## Test plan - [ ] <specific testing steps relevant to the changes> -
Use a HEREDOC to pass the body to ensure correct formatting:
gh pr create --title "..." --body "$(cat <<'EOF' ## Summary ... EOF )" -
Return the PR URL when done.
Related skills
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
Claude CodeCursoradvanced
890
234
3,488
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
claudeCursorWindsurfbeginner
259
72
1,385
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.
claudeCursorWindsurfintermediate
156
44
1,267