/mods-engineering:cc-mods-guidancefrom Mods Engineering
Designs, creates, reviews, tests, debugs, and maintains Claude Code mods, verifying behavior against the current official documentation and the installed build's generated declarations. Use when working with hooks modules, mods API calls, event interception, mod UI, reactive or persistent state, mod policy controls, or mod distribution.
Ships in Mods Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Deliver the smallest correct mod implementation for the user's task, with verified interfaces, focused tests, explicit trust boundaries, and reproducible validation.
This skill is an engineering workflow and documentation router. It is not a replacement for official documentation, the built-in plugin-authoring skill, or build-specific type declarations.
Determine from the request and repository:
Use this read-only version check when shell access is available:
claude --version
Inspect relevant manifests, hooks configuration, module files, tests, README instructions, and generated type declarations.
Do not demand information already available locally. Ask only for unresolved details that materially affect implementation.
For authoring tasks, consult the built-in plugin-authoring skill when available. Do not confuse this custom skill with that built-in skill.
For exact interfaces supported by the installed build:
For intended behavior and limitations, read the explanatory guide: types alone do not establish every behavioral or security guarantee.
When sources disagree:
If declarations are absent:
--plugin-dir in an interactive session, or have Claude write the mod (creation guide, #get-the-types-for-your-build).-p, SDK sessions, claude plugin test or claude plugin validate to write them: they don't.If full documentation cannot be retrieved, label the missing evidence. Proceed only on verified portions; do not fill gaps with invented APIs.
Official base: Claude Code mods docs
Each section links its page; append an item's anchor to that link. Use the anchors exactly as written. Preserve unusual or encoded anchors; do not regenerate anchors from heading text.
Page: Mods overview
Consult for:
#what-a-mod-can-do#get-a-mod#install-or-update-a-mod#try-a-sample-mod#decide-whether-to-trust-a-mod#what-a-mod-can-reach#list-what-a-mod-does-before-you-install-one#turn-mods-on-or-off#see-which-mods-a-session-loaded#how-a-mod-works#what-a-hook-can-do-with-an-event#where-mods-run#control-mods-for-your-organization#compare-mods-settings-hooks-skills-and-mcp-servers#mods-built-into-claude-code#read-the-source-of-built-in-modsBefore building, check whether a mod is the right mechanism. Do not substitute a mod for a skill, settings hook, or MCP server without explaining the relevant tradeoff.
Page: Create a mod
Consult for:
#ask-claude-for-a-mod#use-the-mod-in-other-sessions#sessions-that-skip-the-approval#write-a-mod-yourself#how-the-example-mod-works#keep-working-on-a-mod#change-a-mod-with-claude#get-the-types-for-your-build#check-what-claude-code-reads-from-your-mod#test-the-mod#share-your-modPage: Mods reference
Consult for:
#files#the-hook-function#events#tools#agent-and-organization-fields-on-tool-check#tool-check-read-only#prompts-and-what-claude-reads#skill-prompt-fields#commands-and-configuration#turns#session#subagents#interface#other-mods#telemetry#settings-hook-events#mods-api-calls#mods-api-methods#render-sites#elements#box-border-styles#box-spacing-steps#text-typography#text-bold#limits#settings-and-environment-variables#commandsDo not assume a field exists on every event or in every build. Verify optionality, return shape, version, and surface support.
Page: Draw in the interface with a mod
Consult for:
#build-a-pane-with-tabs#pick-where-to-draw#change-what-claude-code-already-draws#open-a-pane-at-the-right-time#hold-toasts-behind-a-dialog#when-a-pane-waits-for-a-wider-terminal#draw-in-the-vs-code-extension#build-a-tree-from-elements#link-in-the-desktop-app#when-a-client-fails#draw-a-grid-of-colored-cells#respond-to-presses-and-typing#know-which-keys-your-mod-can-receive#how-a-pane-gets-keyboard-focus#what-each-key-does#set-a-hotkey-and-the-first-focus#take-typed-input-and-draw-a-row-for-each-item#redraw-when-something-changes#when-claude-code-redraws-without-being-asked#redraw-when-your-data-changes#redraw-on-a-timer#how-often-a-site-can-redraw#keep-state#keep-a-value-in-%24-state#declare-the-values#point-the-manifest-at-the-declaration#define-read-and-write-a-value#change-hello-tabs-to-use-%24-state#load-a-saved-value-again-after-clear#save-from-more-than-one-sessionPage: Interface gallery for mods
Consult for:
#try-a-sample#pick-an-element#text#markdown#link#code#code-as-a-diff#box#button#input#select#raster#svg#image-and-client#see-where-a-mod-can-drawUse the gallery for examples, the interface guide for behavior, and the reference/local declarations for supported interfaces.
Page: React to events with a mod
Consult for:
#how-a-hook-handles-an-event#observe-an-event#rewrite-an-event#answer-an-event#filter-which-events-a-hook-handles#guard-or-change-a-tool-call#hold-a-tool-call-until-the-user-decides#approve-or-refuse-a-tool-call-before-the-user-is-asked#check-whether-a-tool-call-is-read-only#filter-a-tool-check-hook-by-whether-the-call-is-read-only#rewrite-or-add-to-a-prompt#follow-a-turn#hook-the-settings-hook-events#run-alongside-other-mods#the-order-mods-run-in#where-settings-hooks-run-in-the-order#handle-a-hook-that-failsPage: Use the mods API
Consult for:
#add-a-command#add-a-tool#call-a-model#send-one-prompt#use-prompt-caching#choose-between-prompt-and-system#check-for-cache-hits#what-a-model-complete-hook-receives#run-work-in-the-background#show-something-without-starting-a-turn#start-a-turn-from-a-background-job#stop-background-work#calls-and-background-work-after-the-user-interrupts-a-turn#retry-a-refused-or-dropped-call#what-refused-calls-return#work-your-mod-started-before-the-interruption#send-and-receive-messages-between-sessions#reach-files-processes-and-the-networkDo not infer retry, cancellation, delivery, or cache-hit guarantees. Verify return values and interruption behavior before implementation.
Page: Test a mod
Consult for:
#write-a-test#stub-what-claude-code-would-answer#follow-the-test-kit%E2%80%99s-rules#look-up-what-a-stub-returns#test-a-timer#test-a-drawing#test-a-drawing-after-clear#test-a-mod-that-judges-other-modsPage: Troubleshoot a mod
Start with the section matching the observed symptom:
#find-out-why-a-mod-does-nothing#check-whether-mods-can-load#the-mod-doesn%E2%80%99t-load#refusal-messages#a-hook-is-skipped-or-a-mod-is-unloaded#a-tool-call-is-denied#stopped-type-a-message-to-continue#a-drawing-doesn%E2%80%99t-appear-or-respond#a-drawing-works-in-the-terminal-and-not-in-the-desktop-app-or-vs-code#an-edit-or-a-value-is-lost#read-the-debug-logThen find the exact error-message subsection on that page. Preserve the original diagnostic text; do not paraphrase away clues.
Page: Manage mods for your organization
Consult for:
#stop-user-installed-mods-from-loading#know-what-happens-by-default#know-which-controls-still-apply#decide-whether-to-leave-mods-on#review-what-a-mod-can-do#choose-how-much-to-allow#allow-only-your-organization%E2%80%99s-mods#apply-your-plugin-controls-to-mods#set-options-on-the-built-in-guard#run-your-organization%E2%80%99s-own-mods#install-your-organizations-mods#enforce-a-policy-with-a-mod-of-your-own#refuse-mods-when-your-check-failsNever describe a policy mod as an unconditional security boundary. Verify precedence, bypass conditions, worker-failure behavior, and deployment requirements before stating an enforcement guarantee.
For implementation tasks, record briefly:
Prefer narrow matchers and minimal capabilities. Do not add a bundler, framework, package manager, or dependency without a demonstrated requirement.
Follow the creation guide's static-analysis rules:
For rewrites, preserve unrelated fields and use the documented event copying pattern rather than mutating event input.
For security-sensitive handlers, define failure behavior explicitly and verify it against the failure-handling and administration guides.
For UI, verify both render-site support and element support on each target surface. Do not assume terminal behavior transfers to other apps.
Replace ./path/to/mod with the actual resolved plugin directory:
claude plugin validate ./path/to/mod
claude plugin test ./path/to/mod
Inspect validation output, not just the exit status:
Use the repository's existing type-checking workflow against generated declarations when available. Do not install a compiler merely to make an unverified command work.
tsconfig.json as a user prerequisite.Select tests relevant to the change:
Do not confuse mocked tests with live runtime verification. Report them separately.
Do not weaken permissions, bypass organization controls, reinstall tools, or delete caches as a first-line workaround.
For distribution tasks:
#where-mods-run).#files, interface #draw-in-the-vs-code-extension)..claude-plugin/types/ git-ignored, and never commit it.tsconfig.json Claude Code adds at the mod's root git-ignored, and never commit it: it extends the generated files, which users never have.Do not modify marketplace registration or publish without authorization.
Keep the final report proportional to the task. Include:
For explanation-only tasks, answer directly with relevant sources. Do not fabricate an implementation or test run.
Before declaring success, confirm:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nerymurillohnd/the-claude-factory --plugin mods-engineeringOther plugins' skills for the same job