/commit-push-pr
Commit staged changes, push to remote, and create a pull request
> /plugin marketplace add CloudAI-X/claude-workflow-v2 > /plugin install project-starter@claude-workflow
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/commit-push-pr
Context preview
What this command does when you run it.
Commit staged changes, push to remote, and create a pull request
Command definition
commit-push-pr.mdallowed-tools: Bash(git:*), Bash(gh:*) description: Commit staged changes, push to remote, and create a pull request argument-hint: "[optional PR title or description hint]"
Context
- Current branch: !`git branch --show-current`
- Default branch: !`git remote show origin 2>/dev/null | grep 'HEAD branch' | cut -d' ' -f5 || echo "main"`
- Git status: !`git status --short`
- Staged diff: !`git diff --cached`
- Unstaged diff: !`git diff`
- Commits ahead of origin: !`git log '@{u}..HEAD' --oneline 2>/dev/null || echo "No upstream branch"`
- Recent commits for style: !`git log --oneline -5 2>/dev/null || echo "No commits yet"`
Task
Execute the full git workflow:
1. **Branch check**: If the current branch is the default branch (see the context above), do not commit or push to it. Create a feature branch first (`git checkout -b feature/<short-description>`), or stop and ask if the user really wants to work on the default branch. 2. **Commit**: If there are staged changes, create a conventional commit 3. **Push**: Push the current branch to origin (set upstream if needed) 4. **PR**: Create a pull request using `gh pr create`
- Auto-generate title from commits
- Include a summary of changes in the PR body
- Link any related issues mentioned in commits
If any step fails, stop and report the issue.
$ARGUMENTS
A universal Claude Code workflow plugin with specialized agents, skills, hooks, and mode commands for any software project. Compatible with skills.sh — works with Claude Code, Cursor, Codex, and 35+ AI agents.
Repo: CloudAI-X/claude-workflow-v2
Other commands on project-starter.
architect
System design and architecture planning mode. Focuses on high-level design, trade-offs, and…
bootstrap-repo
Explore the repository with 10 parallel subagents to create comprehensive documentation.…
code-simplifier
Simplifies code after implementation. Reviews recent changes and suggests/applies…
dependency-upgrade
Safe, one-at-a-time dependency upgrades with verification after each. Detects package manager…

