PlugMyPlugin
← Browse

branch-guard

karlkfi ★ 3

branch-guard is a PreToolUse hook for Claude Code that intelligently classifies git and gh commands by safety and branch context, auto-approving read-only operations, branch creation, and commits/pushes on feature branches while requiring confirmation for protected branches and destructive operations. It reduces routine approval prompts while maintaining guardrails for operations like pushing to main or force-resets that could cause problems.

DevOps Security No API key detected runs shell

Install

> /plugin marketplace add karlkfi/claude-bouncer/tree/HEAD/plugins/branch-guard
> /plugin install branch-guard

Source: https://github.com/karlkfi/claude-bouncer/tree/HEAD/plugins/branch-guard

What it's made of

2 hooks

Commands
0
Agents
0
Skills
0
MCP servers
0
Hooks
2 · PostToolUse, PreToolUse

What it needs & plugs into

API keys
none
Paid services
none detected
External tools
run-python-hook.cmd
Talks to
nothing external detected

Analyzed . Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.

Is this your plugin?

Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (karlkfi).