Commit all changes, create a new branch, push, and create a pull request
Commit all changes, create a new branch if on main, push, and open a pull request. Use when ready to push work and create a PR for review.
/plugin marketplace add macalinao/claude-plugin/plugin install macalinao-igm-igm-plugin@macalinao/claude-pluginCreate a pull request with all current changes. Follow these steps:
First, run these commands in parallel to understand the current state:
git status to see all changesgit diff --staged and git diff to see what will be committedgit log -5 --oneline to see recent commit stylegit branch --show-current to get the current branch namegh pr view --json url,state 2>/dev/null || echo "no-pr" to check if there's an existing PRStage all changes with git add -A
Create a meaningful commit message based on the changes:
If on the main branch (main or master), create a new branch:
feat/add-user-auth, fix/login-validation)git checkout -b <branch-name>Commit the changes with a HEREDOC for proper formatting:
git commit -m "$(cat <<'EOF'
<commit message>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
EOF
)"
Push the branch: git push -u origin <branch-name>
Check if a PR already exists for this branch (from step 1):
If a PR already exists and is open, skip PR creation and return the existing PR URL
If no PR exists, create one using gh pr create:
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
<bullet points describing changes>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
Return the PR URL to the user.
Important:
/commit-push-prCommit, push, and open a PR
/commit-push-prCommit, push, and open a PR