PlugMyPlugin
← Browse

git-guardrails

dimokol ★ 1

This plugin intercepts Bash commands via a PreToolUse hook to prevent agents from merging PRs, pushing to protected branches, deleting remote branches, or running destructive git operations without explicit approval. It parses shell syntax including quotes, subshells, and variable assignments to identify and block risky git operations, with a strict mode that requires approval for all commits and pushes.

Security DevOps No API key detected runs shell

Install

> /plugin marketplace add dimokol/agent-workbench/tree/HEAD/plugins/git-guardrails
> /plugin install git-guardrails

Source: https://github.com/dimokol/agent-workbench/tree/HEAD/plugins/git-guardrails

What it's made of

1 hook

Commands
0
Agents
0
Skills
0
MCP servers
0
Hooks
1 · PreToolUse

What it needs & plugs into

API keys
none
Paid services
none detected
External tools
git-guardrails.sh
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 (dimokol).