Skip to main content
Run any Skill in Manus
with one click

branch-guard

Stars1
Forks0
UpdatedJune 27, 2026 at 02:59

Assert you are on the designated working branch and NOT on a protected branch (main/integration/dev/claude/head/*) before committing, merging, or pushing. The idempotent, parameterized guard that keeps work on its actual working branch and off the protected tiers — so the wrong-branch / commit-to-main failure mode cannot recur. Backs the harness-level PreToolUse hook + the git pre-commit/pre-push hooks.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly