git-guardrails-claude-code - Install Git Guardrails Hook for Claude Code
Installs a PreToolUse hook and bash script to block dangerous git commands in project or global Claude Code settings.
Tags
Updated: 2026-09-11Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Copy hook script to target directory
- Make hook script executable
- Update settings configuration with hook
- Verify script execution with test input
Inputs
- Installation scope preference
- Custom git command rules
- Bundled script file
Outputs
- Executable hook script file
- Updated settings.json file
- Hook verification test output
Requirements
- Claude Code environment
- Bash shell
- File write permissions
