What problem does it solve? Accidentally committing directly to the main branch bypasses code review, CI checks, and the pull request workflow, creating messy history and blocking parallel work. This Skill intercepts that mistake before it happens and provides a clean recovery path if it already did. ## Core Features & Use Cases - Commit Prevention: Triggers when you are about to run git commit while on the main or master branch, stopping the action before it lands. - Guided Branch Workflow: Provides the exact commands to create a feature branch, commit, push, and open a pull request with gh pr create. - Accidental Commit Recovery: Supplies a step-by-step recovery sequence using git checkout -b and git reset --hard origin/main to move an unpushed commit off main cleanly. - Use Case: An agent or developer finishes a fix and runs git commit without noticing they are on main; the Skill intervenes, redirects the work onto a short-lived branch, and opens a PR instead. ## Quick Start Before committing, ask the assistant to check the current git branch and move the work onto a new branch with a pull request if it is main.