Event Hooks

anthropic-essentials

2 events · 2 hooks

From anthropic-essentials
Install
1
Run in your terminal
$
npx claudepluginhub anthropics/claude-plugins-official --plugin terraform
Source

Defined inline in plugin.json manifest

Configuration
{
  "Stop": [
    {
      "hooks": [
        {
          "type": "prompt",
          "prompt": "Check if this turn made significant code changes (new features, architecture changes, discovered gotchas). If so, briefly suggest the user run /revise-claude-md to capture learnings in CLAUDE.md. Only suggest if meaningful patterns were discovered. Do not suggest for trivial changes, and do not repeat if already suggested this session."
        }
      ]
    }
  ],
  "SessionEnd": [
    {
      "hooks": [
        {
          "type": "prompt",
          "prompt": "This session is ending. If significant codebase changes were made and CLAUDE.md was not updated, remind the user to run /revise-claude-md in their next session to capture learnings."
        }
      ]
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": false
  },
  "typeStats": {
    "prompt": 2
  },
  "eventStats": {
    "Stop": 1,
    "SessionEnd": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 0,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Stars14571
Forks1519
Actions