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:

  1. Run git branch -a to list all branches
  2. If a feature branch exists (typically named like feature/*, feat/*, bugfix/*, fix/*, or Jira ticket like PROJ-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>
  3. 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
Related skills

More from ajaywadhara/agent-skills

Installs
2
GitHub Stars
1
First Seen
Mar 5, 2026