name: pr description: Create a feature branch, commit changes, push, and open a PR to main. allowed-tools: Bash(git *), Bash(gh *), Read, Edit, Write, AskUserQuestion
PR
Create a feature branch from current changes, commit, push, and open a pull request.
Usage
/pr
Process
- Check state: Run
git diff,git diff --cached,git status -uto see all changes. - Determine branch name: Analyze changes and generate a branch name (
feat/xxx,fix/xxx,docs/xxx,refactor/xxx,chore/xxx). If already on a feature branch (notmain), skip branch creation. - Create branch:
git checkout -b {branch}(from main). - Stage & commit: Same rules as
/commit— analyze changes, draft message, stage specific files, commit withCo-Authored-By. - Push:
git push -u origin {branch} - Create PR:
gh pr createwith title and body.- PR title: same as commit first line (under 70 chars)
- PR body: summary bullets + test plan
Commit Message Format
- First line:
type: short summary(under 72 chars)- Types:
feat,fix,refactor,style,docs,chore
- Types:
- Blank line, then bullet-point details for non-trivial changes
- End with
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> - Write in English (per CLAUDE.md conventions)
- Pass the message via HEREDOC for proper formatting
PR Body Format
## Summary
<1-3 bullet points>
## Test plan
<bulleted checklist>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Multiple commits on same branch
If already on a feature branch with an open PR:
- Stage & commit only (no new branch, no new PR)
- Push to update the existing PR
Safety
- Never stage files that may contain secrets (.env, credentials, etc.)
- Never use
git add -A— always add specific files - Never force push
- Always create PR to main, never push directly to main
Skills similaires
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Claude CodeCursoradvanced
890
234
3,180
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
claudeCursorWindsurfbeginner
259
72
1,081
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.
claudeCursorWindsurfintermediate
156
44
941