{
  "description": "PRD Plugin lifecycle hooks for Claude Code. Fires in every repo where the plugin is enabled, with no per-repo .claude/settings.json required. Exec-form (no shell, no console window) and addressed by ${CLAUDE_PLUGIN_ROOT} because a plugin hook's relative paths resolve against the plugin, not the project. Passes --source plugin so the dispatcher defers when a repo already wires PRD hooks in its own settings, avoiding a double fire (REQ-149).",
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "python",
            "args": [
              "${CLAUDE_PLUGIN_ROOT}/.prd_plugin/hooks/prd_hook_dispatch.py",
              "--event",
              "SessionStart",
              "--host",
              "claude",
              "--source",
              "plugin"
            ]
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "python",
            "args": [
              "${CLAUDE_PLUGIN_ROOT}/.prd_plugin/hooks/prd_hook_dispatch.py",
              "--event",
              "UserPromptSubmit",
              "--host",
              "claude",
              "--source",
              "plugin"
            ]
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "python",
            "args": [
              "${CLAUDE_PLUGIN_ROOT}/.prd_plugin/hooks/prd_hook_dispatch.py",
              "--event",
              "PreToolUse",
              "--host",
              "claude",
              "--source",
              "plugin"
            ]
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "python",
            "args": [
              "${CLAUDE_PLUGIN_ROOT}/.prd_plugin/hooks/prd_hook_dispatch.py",
              "--event",
              "PostToolUse",
              "--host",
              "claude",
              "--source",
              "plugin"
            ]
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "python",
            "args": [
              "${CLAUDE_PLUGIN_ROOT}/.prd_plugin/hooks/prd_hook_dispatch.py",
              "--event",
              "Stop",
              "--host",
              "claude",
              "--source",
              "plugin"
            ]
          }
        ]
      }
    ]
  }
}
