Add a new Claude Code hook
Creates a new Claude Code hook in the appropriate location (plugin, project, or marketplace). Use when you need to automate actions on specific events like file changes or command execution.
/plugin marketplace add racurry/neat-little-package/plugin install box-factory@neat-little-packageUse the hooks-writer agent to create a new hook.
Context Detection:
marketplace.json exists at project root → List plugins to choose from.claude-plugin/plugin.json exists in current directory → Use current plugin's hooks/ directory.claude/settings.json hooks section (standalone project)The hooks-writer will: