C4D Practice
← Browse by Chapter
#67Chapter 12 — Mods: Changing Claude Code from the Inside
Write a mod that [describe the behaviour and where it should appear]. Use only the events this needs, and name them before you write any code. Do not handle `tool.check`, `prompt.submit` or `tool.call` unless the behaviour requires it, and if it does, say why. Do not make network requests, start processes or read files outside the repository unless I asked for it. When the files are written, run `claude plugin validate` on the mod's directory and show me the `hooks:` and `calls:` lines exactly as printed. Then tell me, for each entry on those lines, which part of my request needed it.
Mastering Claude Code
Mastering Claude Code

These prompts are excerpts from the book. Get the full collection with explanations and use cases.

Get the Book →