claude.nagdy.me

Plugin hooks.json

A plugin-scoped hooks file that auto-formats files after edits using the plugin's own script.

json
{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/format-check.js"
          }
        ]
      }
    ]
  }
}
View Full Module