$ /plugin install hookify copy
Anthropic official marketplace plugin
What it does
Easily create custom hooks to prevent unwanted behaviors by analyzing conversation patterns or from explicit instructions.
How it works
Submit an explicit instruction (e.g. /hookify Warn me when I use rm -rf commands) or run the command without arguments to have the system analyze your recent conversations. Hookify creates .local.md files in the .claude/ directory that take effect immediately without requiring a restart.
Rules trigger on event types — bash commands, file edits, prompts, session stops — with actions such as warn or block.
Use cases
- On file save, run lint + format automatically.
- Run tests before every commit and surface the result.
- When files matching a specific pattern change, update related docs.