/commit:commit-push-prfrom commit
Commits staged/unstaged changes, pushes to remote, and creates a pull request in one step. Handles GPG signing, branch creation if on main/master, and PR creation via gh CLI.
Ships in commit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Commits staged/unstaged changes, pushes to remote, and creates a pull request in a single workflow.
git statusgit diff HEADgit branch --show-currentgit log --oneline -10Cache GPG passphrase if available:
if [ -n "$GPG_PASSPHRASE" ]; then
gpg --batch --pinentry-mode loopback \
--passphrase-file <(echo "$GPG_PASSPHRASE") \
--clearsign >/dev/null 2>&1 <<< "test" && echo "GPG passphrase cached" || echo "GPG cache failed"
else
echo "GPG_PASSPHRASE not set - GPG signing will prompt for passphrase"
fi
If currently on main or master, create a new branch first:
git checkout -b <descriptive-branch-name>
feat/add-auth, fix/login-bug, docs/update-readmeUse the context injected above (git status, diff, branch):
git addgit add <relevant-files>
git commit --signoff --gpg-sign -m "<type>: <description>"
Conventional commit format: <type>: <description> (imperative mood, <72 chars)
git push -u origin HEAD
gh pr create --title "<commit-message>" --body "$(cat <<'EOF'
## Summary
- <key change 1>
- <key change 2>
## Test plan
- [ ] Verify <main behavior>
EOF
)"
| Type | Use Case |
|---|---|
| feat | New feature |
| fix | Bug fix |
| docs | Documentation |
| style | Formatting, styling |
| refactor | Code restructure |
| perf | Performance |
| test | Tests |
| chore | Build/tools |
| ci | CI/CD |
| security | Security fix |
| build | Build system |
main/master — always branch first--signoff --gpg-sign on commit-u origin HEADUser: "/commit-push-pr"
Process:
1. Cache GPG ✓
2. Context loaded: 3 files modified in src/auth/
3. On branch main → create feat/add-jwt-auth
4. Commit: feat: add JWT authentication
5. Push: git push -u origin HEAD
6. PR created: https://github.com/org/repo/pull/42
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub pigfoot/claude-code-hubs --plugin commit