Event Hooks

ai

3 events · 5 hooks

Install
1
Install the plugin
$
npx claudepluginhub judigot/ai

Want just this hook?

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

Risk Indicators
Executes bash commandsModifies files
Source

Defined in ./hooks/hooks.json

Configuration
{
  "Stop": [
    {
      "hooks": [
        {
          "type": "prompt",
          "prompt": "Before finishing: Ensure commit messages are short and semantic. Verify no console.log statements were added."
        }
      ],
      "matcher": "*"
    }
  ],
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "prompt",
          "prompt": "Before writing files: Verify this change follows the coding standards (no console.log, use unknown instead of any, interfaces prefixed with 'I', handle null/undefined explicitly, use braces for void arrow functions)."
        }
      ],
      "matcher": "Write|Edit"
    },
    {
      "hooks": [
        {
          "type": "prompt",
          "prompt": "Before running bash: Use MSYS2 bash terminal, not PowerShell. Use POSIX-compliant sh syntax. Prefer awk over grep."
        }
      ],
      "matcher": "Bash"
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "[ -f \"$HOME/.devrc\" ] && . \"$HOME/.devrc\""
        },
        {
          "type": "command",
          "command": "cat ${CLAUDE_PLUGIN_ROOT}/settings/rules.md"
        }
      ],
      "matcher": "*"
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": true,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "prompt": 3,
    "command": 2
  },
  "eventStats": {
    "Stop": 1,
    "PreToolUse": 2,
    "SessionStart": 2
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 1,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 2
  }
}
Stats
Stars0
Forks0
Last CommitJan 19, 2026
Actions

Similar Hooks