LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

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-11

Capabilities

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

Source

  • Spec: SKILL.md
git
claude-code
hooks
pretooluse
security
guardrails
Copy hook script to target directory
Make hook script executable
Update settings configuration with hook
Verify script execution with test input
Installation scope preference
Custom git command rules
Bundled script file
Executable hook script file
Updated settings.json file
Hook verification test output