← Browse
nk-git-guardrail-hook
NickkkLian ★ 0
A PreToolUse hook for Claude Code that intercepts seven categories of destructive git and shell commands—force push, git add -A in shared checkouts, repo publication, pushing while behind, mass-deletion pushes, rm -rf on project roots, and curl piped to shell—and halts execution with a named incident in the prompt. It asks for confirmation by default, fails open on errors, and cites the real-world incident behind each rule.
Install
> /plugin marketplace add NickkkLian/nk-git-guardrail-hook
> /plugin install nk-git-guardrail-hook
What it's made of
no extra components
- Commands
- 0
- Agents
- 0
- Skills
- 0
- MCP servers
- 0
- Hooks
- 0
What it needs & plugs into
- API keys
- none
- Paid services
- none detected
- External tools
- none
- Talks to
- nothing external detected
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 (NickkkLian).