LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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-21

Capabilities

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

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
git
branch-lock
hooks
dev-plugin
safety
Set branch lock
Clear branch lock
Check lock status
Block git branch switching
Target branch name
Command arguments
Pre-tool hook payloads
Branch lock state file
CLI status messages
Pre-tool hook block responses