← Browse by Chapter
Get the Book →
#69Chapter 12 — Mods: Changing Claude Code from the Inside
My mod in [directory] does nothing in [the kind of session: an interactive session with `--plugin-dir`, an installed plugin, a `claude -p` run]. Do not change any code yet. First run `claude plugin validate` on the directory and show me the `hooks:` and `calls:` lines. Then tell me which of these I should check next and the exact command for each: whether `/plugin` names the mod on its `mods active` line, where Claude Code writes the reason for a skipped or refused module in this kind of session, and whether `claude plugin test` from an empty directory says mods can load here. Only after I paste those results, tell me the most likely cause and the smallest change that would fix it.

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