branch-lock - Pin the agent to a Git branch and block branch switching.
Locks the agent to a specific Git branch using pre-tool hooks and provides commands to set, change, or clear the lock.
Tags
Updated: 2026-09-21Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Set branch lock
- Clear branch lock
- Check lock status
- Block git branch switching
- Block work-destroying git commands
Inputs
- Target branch name
- Command arguments
- Pre-tool hook payloads
Outputs
- Branch lock state file
- CLI status messages
- Pre-tool hook block responses
Requirements
- Git repository
- red-skills-resource tool
- Claude Code or Codex with enabled plugin hooks
- Enabled dev plugin
