Event Hooks

git-guardrails

2 events · 7 hooks

From git-guardrails
Install
1
Run in your terminal
$
npx claudepluginhub cameronsjo/workbench --plugin git-guardrails
Risk Indicators
Executes bash commandsModifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "cadence-hooks guardrails warn-main-branch",
          "timeout": 5
        },
        {
          "type": "command",
          "command": "cadence-hooks guardrails check-idle-return",
          "timeout": 5
        }
      ],
      "matcher": "Edit|Write"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "cadence-hooks guardrails warn-cron-datetime",
          "timeout": 5
        }
      ],
      "matcher": "CronCreate"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "cadence-hooks guardrails guard-push-remote",
          "timeout": 5
        },
        {
          "type": "command",
          "command": "cadence-hooks guardrails guard-gh-dangerous",
          "timeout": 5
        },
        {
          "type": "command",
          "command": "cadence-hooks guardrails guard-gh-write",
          "timeout": 5
        }
      ],
      "matcher": "Bash"
    }
  ],
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "cadence-hooks guardrails guard-git-init",
          "timeout": 5
        }
      ],
      "matcher": "Bash"
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": true,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 7
  },
  "eventStats": {
    "PreToolUse": 6,
    "PostToolUse": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 0,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Stars0
Forks0
Last CommitMar 16, 2026