From frontend-skills
Installs PreToolUse hooks that block dangerous git commands (push, reset --hard, clean, branch -D, checkout ., restore .) before execution.
How this skill is triggered — by the user, by Claude, or both
Slash command
/frontend-skills:git-guardrails-claude-codeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Install PreToolUse Bash hook blocking dangerous git before Claude runs it.
Install PreToolUse Bash hook blocking dangerous git before Claude runs it.
Blocks: git push, git reset --hard, git clean -f/-fd, git branch -D, git checkout ., git restore ..
.claude/settings.json or global ~/.claude/settings.json.scripts/block-dangerous-git.sh to:
.claude/hooks/block-dangerous-git.sh~/.claude/hooks/block-dangerous-git.shchmod +x hook.{"hooks":{"PreToolUse":[{"matcher":"Bash","hooks":[{"type":"command","command":".claude/hooks/block-dangerous-git.sh"}]}]}}
npx claudepluginhub redpanda-data/ui-harness --plugin frontend-skillsSets up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D) before execution. Useful for preventing destructive git operations in Claude Code.
Installs PreToolUse hooks that block destructive git/shell commands (force-push to protected branches, git reset --hard with unstaged work, rm -rf outside worktree). Useful before unattended runs or after a near-miss.
Blocks destructive Bash commands like rm -rf, DROP TABLE, git force-push, reset --hard, and restricts file edits to a specific directory. Use for protection on critical systems.