Skip to main content
在 Manus 中运行任何 Skill
一键导入

branch-guard

星标1
分支0
更新时间2026年6月27日 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.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly