Event Hooks

zod-4

3 events · 4 hooks

Install
1
Install the plugin
$
npx claudepluginhub djankies/claude-configs --plugin zod-4

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/scripts/recommend-skills.sh",
          "timeout": 5000,
          "description": "Recommend Zod 4 skills when reading schema files"
        }
      ],
      "matcher": "Read"
    }
  ],
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/validate-zod-usage.sh",
          "timeout": 5000,
          "description": "Validate Zod usage patterns after reading files"
        }
      ],
      "matcher": "Read"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/check-deprecated-apis.sh",
          "timeout": 5000,
          "description": "Check for deprecated Zod v3 APIs after writing"
        }
      ],
      "matcher": "Write|Edit"
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/init-session.sh",
          "timeout": 5000,
          "description": "Initialize session state for Zod 4 plugin"
        }
      ]
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 4
  },
  "eventStats": {
    "PreToolUse": 1,
    "PostToolUse": 2,
    "SessionStart": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 4,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Stars0
Forks0
Last CommitNov 25, 2025
Actions

Similar Hooks