mods/ layout. Read Anthropic’s mods overview and the three reference mods in anthropics/claude-code/mods first.
Layout
claude-, anthropic- or cc-plugin- are reserved by Claude Code.
Engine rules
- Import types only from
'claude-code'; use relative imports for your own files. - Write
$as$.noun.event(...)at the call site. Never pass$to a helper. - Treat the event
eas frozen. - To block something, return
{ deny }without callingnext. Returning{}lets it through. - Options come from
plugin.jsonuserConfigand are read from user or managed settings, never project settings. Lists are comma-separated strings. - No secrets in code, no absolute paths, no
$.process.runthrough a shell.