hook-creator
If the user's intent does not match this skill, route through /plugin-creator:plugin-lifecycle.
Hook Creator for Claude Code Plugins
Create hooks that integrate with the Claude Code event system. Hooks automate validation, enforcement, and context injection across the session lifecycle.
For the complete hooks I/O API and JSON schemas, activate /plugin-creator:hooks-io-api.
For working code examples and plugin hook configuration patterns, activate /plugin-creator:hooks-patterns.
For all hook events, matchers, and environment variables, activate /plugin-creator:hooks-core-reference.
Scope and Gate Placement
A hook ships with the plugin whose contract it enforces, and fires only for that contract. Scope it with an opt-in marker in the hook input or a plugin-namespaced agent name, so a session running unrelated work never pays for it. A hook that fires on every call in a session is a repo-level gate wearing a plugin's clothes.