Event Hooks

guardrails

1 event · 2 hooks

From guardrails
Install
1
Run in your terminal
$
npx claudepluginhub jskswamy/claude-plugins --plugin guardrails
Risk Indicators
Executes bash commandsModifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/detect-refactoring-edit.sh",
          "timeout": 3000
        }
      ],
      "matcher": "Edit"
    },
    {
      "hooks": [
        {
          "type": "prompt",
          "prompt": "${CLAUDE_PLUGIN_ROOT}/hooks/commit-message-eval.md"
        }
      ],
      "matcher": "Bash"
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": true,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "prompt": 1,
    "command": 1
  },
  "eventStats": {
    "PreToolUse": 2
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 1,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Parent Repo Stars1
Parent Repo Forks0
Last CommitFeb 13, 2026