Event Hooks
Community

runbook

1 event · 1 hook

Install
1
Install the plugin
$
npx claudepluginhub jason-hchsieh/marketplace --plugin runbook

Want just this hook?

Then install: npx claudepluginhub u/[userId]/[slug]

Source

Defined in hooks/hooks.json

Configuration
{
  "Stop": [
    {
      "hooks": [
        {
          "type": "prompt",
          "prompt": "If you just completed a substantive task (not a trivial question, clarification, or incomplete work), check if .claude/runbooks.json exists in the project root. If it does, read it and find any enabled runbooks with trigger \"task_complete\". For each matching runbook, check its \"mode\" field: if \"auto\", execute actions immediately without asking; if \"ask\" (or unset), show the user what will run and ask for confirmation before executing. For each action, check the \"type\" field: \"shell\" actions are executed via Bash; \"prompt\" actions are instructions you follow directly (including invoking skills with the Skill tool if the instruction references a skill like /bump or /commit). Replace template variables in both commands and instructions: {{task_description}} with a brief summary of what was completed, {{date}} with the current date, {{branch}} with the current git branch. Skip execution if the task was trivial or if no runbooks match."
        }
      ],
      "matcher": ""
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": false
  },
  "typeStats": {
    "prompt": 1
  },
  "eventStats": {
    "Stop": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 0,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Stars0
Forks0
Last CommitFeb 11, 2026

Similar Hooks