Answer: You write three files: a manifest at `.claude-plugin/plugin.json`, a `hooks/hooks.json` that points to your code via the `modules` key, and a `register.js` hooks module that exports a `register` function. No Node.js or build step is mentioned; you load it with `claude --plugin-dir ./first-mod`. Status: Confirmed Entry: tool/claude-code/features/write-mod-yourself Revision: 2 Digest: sha256:16c29bca5c4a3b77 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:12Z Last changed: 2026-11-14T12:19:21Z (hooks config file: — → hooks.json) Last verified: 2026-11-20T12:23:37Z Next check: 2026-11-21T12:23:37Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of manifest file | plugin.json | [1] | 2026-11-20 hooks config file | hooks.json | [1] | 2026-11-20 code file | register.js | [1] | 2026-11-20 modules key | modules | [1] | 2026-11-20 load command | claude --plugin-dir ./first-mod | [1] | 2026-11-20 exported function | register | [1] | 2026-11-20 Sources: [1] Anthropic. "Create a mod". https://code.claude.com/docs/en/plugins/mods/create.md Role: primary. Accessed: 2026-11-20T12:23:37Z Quote: "**`plugin.json`**: the plugin's [manifest]" (Supports: manifest file) Quote: "**`hooks.json`**: [points to your code file]" (Supports: hooks config file) Quote: "**`register.js`**: your code, called the hooks module" (Supports: code file) Quote: "The `modules` key in that file gives the path to your code, and having it is what makes the plugin a mod." (Supports: modules key) Quote: "claude --plugin-dir ./first-mod" (Supports: load command) Quote: "When the mod loads, Claude Code calls the `register` function the file exports" (Supports: exported function) Published: 2026-11-20T02:57:07Z Snapshot SHA-256: d75d7e3fa6eb90bffc6697baa373ba8fa2ac2376f7afa8a3a11e5995b4561bc6 (captured 2026-11-14T12:19:20Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-14T12:19:21Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:23:37Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:23:37Z Last attempt: 2026-11-20T12:23:37Z Notes and limitations: Extracted automatically from a single official source (section "Write a mod yourself"). Related: https://latestn.com/tool/claude-code/ide-and-apps/available-surfaces What surfaces can I use Claude Code on (terminal, IDE, desktop app, browser)? https://latestn.com/tool/claude-code/ide-and-apps/choose-platform Which platforms can I run Claude Code on, and which one should I choose for my workflow? https://latestn.com/tool/claude-code/ide-and-apps/find-code-tab Where is the Code tab in the Claude desktop app? https://latestn.com/tool/claude-code/features/unavailable-features-google-cloud-anthropic-managed Which Claude Code features are not available when using Claude Models on Google Cloud (Anthropic managed)? https://latestn.com/tool/claude-code/features/voice-dictation-requirements What are the requirements to use voice dictation in Claude Code? https://latestn.com/tool/claude-code/features/what-to-share What should I share with my team about Claude Code and where should I post it? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-14T12:19:21Z | changed | hooks config file: — → hooks.json | [1] 2026-11-14T12:19:21Z | changed | modules key: "modules": ["./register.js"] → modules | [1] 2026-11-14T12:19:21Z | changed | code file: first-mod/hooks/register.js → register.js | [1] 2026-11-14T12:19:21Z | changed | hooks file: first-mod/hooks/hooks.json → — | [1] 2026-11-14T12:19:21Z | changed | manifest file: first-mod/.claude-plugin/plugin.json → plugin.json | [1] 2026-11-13T03:05:12Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/features/write-mod-yourself/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/features/write-mod-yourself POST: https://latestn.com/dispute/tool/claude-code/features/write-mod-yourself with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/features/write-mod-yourself?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I write a Claude Code mod myself without Node.js or a build step? Revision 2, last verified 2026-11-20T12:23:37Z. https://latestn.com/tool/claude-code/features/write-mod-yourself (accessed 2026-11-21T09:52:39Z). @misc{LatestN_tool_claude_code_features_write_mod_yourself_r2, title = {How do I write a Claude Code mod myself without Node.js or a build step?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/features/write-mod-yourself}}, note = {Revision 2; digest sha256:16c29bca5c4a3b77; last verified 2026-11-20T12:23:37Z; accessed 2026-11-21T09:52:39Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/features/write-mod-yourself