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.
Skills similaires
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Claude CodeCursoradvanced
890
234
3,488
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
claudeCursorWindsurfbeginner
259
72
1,385
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.
claudeCursorWindsurfintermediate
156
44
1,267