Event Hooks

rules

2 events · 2 hooks

Install
1
Install the plugin
$
npx claudepluginhub cameronsjo/rules --plugin rules

Want just this hook?

Add to a custom plugin, then install with one command.

Risk Indicators
Modifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/hooks/validate-skill-frontmatter.sh",
          "timeout": 5
        }
      ],
      "matcher": "Edit|Write"
    }
  ],
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/hooks/check-security-patterns.sh",
          "timeout": 5
        }
      ],
      "matcher": "Edit|Write"
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 2
  },
  "eventStats": {
    "PreToolUse": 1,
    "PostToolUse": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 2,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Stars0
Forks0
Last CommitMar 10, 2026
Actions

Similar Hooks