modscode JA

modscode / Code

The Claude Code mods code reference

Read real mods' code and start building from it. For each thing you may want to build: the smallest form, written by modscode, and the code of public mods that do it, with their licence. The same code runs in the terminal and the desktop app.

Check the code yourself before you copy or install it. Mods run unsandboxed, with your permissions. modscode does not vouch for what the code does.

A mod is a plugin with a .claude-plugin/plugin.json, a hooks/hooks.json whose modules names your code, and a file that exports register(on). on(event, hook) handles an event, and each hook gets ($, e, next). See the guide; the primary source is Anthropic's official documentation.