From flow
Commit staged changes, push to remote, and create a pull request — all in one step. Usage: /commit-push-pr [description]
How this skill is triggered — by the user, by Claude, or both
Slash command
/flow:commit-push-prThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
One command to go from local changes to a pull request.
One command to go from local changes to a pull request.
The user invokes /commit-push-pr [optional description]. You then:
If the user provides a description, use it to guide the commit message and PR body. If not, derive everything from the diff.
Run these in parallel:
git status
git diff --cached --stat
git diff --stat
git log --oneline -5
git branch --show-current
Understand:
If there are unstaged changes that look intentional (not build artifacts), stage them. Ask the user if unclear.
Read the project's CLAUDE.md for PR conventions (e.g., "PRs target develop" or "PRs target main"). If no convention is documented, default to main.
git log --oneline main..HEAD 2>/dev/null || git log --oneline origin/main..HEAD 2>/dev/null
Review ALL commits that will be in the PR, not just the latest.
If there are uncommitted changes to include:
git add <relevant files>
git commit -m "$(cat <<'EOF'
<commit message>
Co-Authored-By: Claude <[email protected]>
EOF
)"
If everything is already committed, skip to Step 4.
git push -u origin HEAD
If the branch doesn't exist on remote yet, this creates it.
Analyze ALL commits between base branch and HEAD to write the PR:
gh pr create --title "<short title, under 70 chars>" --body "$(cat <<'EOF'
## Summary
<1-3 bullet points covering all commits in this PR>
## Test plan
- [ ] <verification steps>
🤖 Generated with [Claude Code](https://claude.ai/code)
EOF
)"
Use the base branch determined in Step 2 (e.g., --base develop).
Show the PR URL. Keep it brief.
gh CLI — not MCP GitHub toolsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub enderyildirim/claude-skills --plugin flow