PlugMyPlugin
← Browse

git-guardrails

dimokol ★ 2

This plugin intercepts bash commands before execution to block dangerous git operations like merging PRs, pushing to protected branches, and destructive commands unless explicitly approved by the user. It uses a PreToolUse hook to parse bash syntax (including quotes, variable substitution, and heredocs) and deny risky operations with actionable reasons, with an optional strict mode that requires approval for all commits and pushes.

Security DevOps No API key detected runs shell

Install

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

Source: https://github.com/dimokol/agent-dojo/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).