description: Push branch and create a PR with concise description and labels argument-hint: "[issue-number]" disable-model-invocation: true allowed-tools: "Read, Edit, Bash(git *), Bash(gh *)"
Create Pull Request
Context
!git branch --show-current
!git log main..HEAD --oneline
!git diff main..HEAD --stat
Instructions
-
Check CHANGELOG.md — if it wasn't updated for these changes, update it now and commit:
git add CHANGELOG.md && git commit -m "chore: update changelog" -
Push branch:
git push -u origin HEAD -
Generate PR title:
- If
$ARGUMENTScontains an issue number, fetch the issue title:gh issue view <number> --json title -q '.title' - PR title format:
<type>(<scope>): <short description>(conventional commit style, under 70 chars) - Derive the type from the branch prefix (
feat/→ feat,fix/→ fix,docs/→ docs)
- If
-
Read
.github/PULL_REQUEST_TEMPLATE.mdand use its exact section headers (including emojis) for the PR body. Do NOT hardcode headers — always read the template file first. -
Create PR using the headers from the template:
gh pr create --title "<title>" --assignee @me --label "<label>" --body "$(cat <<'EOF' <paste exact headers from .github/PULL_REQUEST_TEMPLATE.md> Closes #<issue-number> EOF )"Labels: Pick the single most relevant from:
bug— branch starts withfix/enhancement— branch starts withfeat/documentation— branch starts withdocs/refactoring— code restructuring with no behavior changepure testing— only test changesdependencies— dependency updates
Body guidelines:
- Focus on what and why, not implementation details
- Use
Closes #<number>so merging auto-closes the issue - Keep the entire body under 15 lines
-
Report the PR URL to the user.
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.