SuperAPI AI Directory

branch-guard

Coding & development

View repository

Updated 10-27 10:28

About this skill

branch-guard

This repository has branch-guard installed. On Claude Code and Copilot CLI, mutating actions on a protected branch (main, master, production, develop/development, the repo's detected default branch, or anything listed in .config/branch-guard/protected-branches) trigger the harness's own approval prompt, every time, with no memory of a prior approval. On Codex, the action proceeds with a reminder note attached instead of a prompt — Codex doesn't block here.

If you're asked to confirm or see a reminder: tell the user which branch you're on. If they didn't ask for this branch specifically, switch to a feature branch instead. If they do want the change here, say so and continue.