Agent Skills security directory

git-guardrails-claude-code

Published by mattpocock

Medium risk

This skill configures a Claude Code PreToolUse hook to intercept and block destructive git commands before execution. It is intended for developers who want to prevent Claude Code from running commands such as git push, git reset --hard, git clean -f, git clean -fd, git branch -D, git checkout ., and git restore . in their repositories.

Security assessment

Plutonium assessed this skill for permissions, capabilities, and security-relevant behavior.

  • Adds a persistent hook before tool execution: It registers a persistent hook in the agent settings to run a local script before every shell command, which could execute unverified code automatically.

The interactive security report will load automatically.