description: Push the branch and open a pull request with template body, labels, and assignee argument-hint: "[issue-number]" allowed-tools: "Read, Bash(git *), Bash(gh *)"
Create Pull Request
Context
!git branch --show-current
!git log main..HEAD --oneline
!git diff main..HEAD --stat
Instructions
-
Never open a PR from
main. If the current branch ismain, create a branch first and move the commits onto it. -
Push:
git push -u origin HEAD -
Title — conventional commit style, under 70 chars:
<type>(<scope>): <description>. Derive the type from the branch prefix (feat/→ feat,fix/→ fix,ref/→ ref). If$ARGUMENTSholds an issue number, read its title for context:gh issue view <number> --json title -q '.title' -
Read
.github/PULL_REQUEST_TEMPLATE.mdand reuse its exact headers — do not hardcode them here. -
Create:
gh pr create --title "<title>" --assignee Chemaclass --label "<label>" --body "$(cat <<'EOF' <exact headers from the template, filled in> Closes #<issue-number> EOF )"Label — pick the single most relevant:
| Label | When | |---|---| |
bug| branch starts withfix/| |enhancement| branch starts withfeat/| |documentation| docs only | |refactoring| restructuring, no behavior change | |dependencies| dependency bumps |Body: what changed and why, not how. Under 15 lines. Use
Closes #<n>so merging closes the issue. -
Report the PR URL.
Note on emoji
The PR template headers carry emoji and should keep them. GitHub squash-merges copy the title verbatim into history — keep emoji out of the title.
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.