commit-push-pr
Installation
SKILL.md
Commit Push PR
Workflow
Step 1: Check Current Branch
Run: git branch --show-current
If branch is main, master, develop, or any protected branch:
- Run
git branch -ato list all branches - If a feature branch exists (typically named like
feature/*,feat/*,bugfix/*,fix/*, or Jira ticket likePROJ-123-description):- Ask user: "I see you're on a protected branch. Switch to existing feature branch [branch-name]?"
- If yes, run
git checkout <branch-name>
- If no feature branch exists:
- Use question tool to ask user: "I see you're on a protected branch ([branch-name]). No feature branch detected. Do you want me to create a feature branch? If yes, what should I name it?"
- Wait for user response
- If user wants to create a branch:
- Run
git checkout -b <branch-name> - Continue to Step 2
- Run