Bible Network Crypto DeFi Onchain RWA AI Agent Stablecoin Chain SAFU CryptoTax DeFAI AGI Claude Me Claude Skill Claude Design Claude Cowork
Independent Media
Not affiliated with any project
Learn Claude Skills. Do Everything Better.
claudeskill-me.com
LATEST
Who Can Invoke a Skill: The Three States of disable-model-invocation and user-invocable in SKILL.md, and Why a Misspelled Field Raises No Error  ·  Claude Code Plan Mode for Beginners: How to Enter, the Three Options After a Plan, and the Bypass Exception  ·  Teaching Claude to Classify With Examples: A Few-Shot Ticket Prompt, the Official 3–5 Example Guidance and Bad Example Sets  ·  Claude Code Sandbox Will Not Start on Ubuntu 24.04: Checking and Fixing the AppArmor Block on bubblewrap User Namespaces  ·  Which Claude Code Effort Setting Wins: Precedence of CLAUDE_CODE_EFFORT_LEVEL, --effort, modelSettings, effortLevel and maxEffortLevel  ·  Claude Code v2.1.310 and v2.1.311: Compaction Retries a Missing Summary, ultrathink Runs at xhigh, DISABLE_COMPACT Becomes a One-Way Switch
skill-library

Who Can Invoke a Skill: The Three States of disable-model-invocation and user-invocable in SKILL.md, and Why a Misspelled Field Raises No Error

30-Second Version · For the impatient
A misspelled SKILL.md field name raises no error and falls back to default behavior; for skills with side effects set disable-model-invocation: true first, and check the field names.

Full Explanation +
01 · Why did this happen?

With disable-model-invocation: true, does the description still take up context?

Per the official invocation-control table, no: the description is not in context, and the full Skill loads only when you invoke it. With the default and with user-invocable: false, the description stays in context.

02 · What is the mechanism?

What is user-invocable: false for?

It hides the Skill from the / menu while Claude can still load it automatically when relevant. It suits background knowledge that is not a "command", such as rules for a legacy system.

03 · How does it affect me?

What happens if both fields are set?

The official table has no such row. A third-party summary says the Skill becomes unreachable, which also follows from the table (you cannot invoke it and Claude will not), but I did not test it. To turn a skill off, simply moving its folder away is cleaner.

04 · What should I do?

I'm not an engineer. One-line version?

It decides who may call each helper Skill onto the stage: only you, only the AI, or both; and if you mistype a setting's name, the system will not warn you, it will just quietly follow the default.

Full Content +

Skill.md frontmatter has a dozen or so fields, but only two decide when a skill gets used: disable-model-invocation and user-invocable. Their combinations give three valid states, and each differs even in whether the description takes up your context. This article follows the official skills docs and adds a few easy-to-hit details. I did not build skills and run them myself; the behavior below is the docs' own wording and table.

The official invocation-control table

FrontmatterYou can invokeClaude can invokeWhen loaded into context
(default)YesYesDescription always in context, full skill loads when invoked
disable-model-invocation: trueYesNot on its ownDescription not in context, full skill loads when invoked by you
user-invocable: falseNoYesDescription always in context, full skill loads when invoked

The docs add one line of background: in a regular session, skill descriptions are loaded into context so Claude knows what is available, while the full content loads only when invoked.

Two patterns and where each fits

The first is a skill only people press, such as deploying or committing, where timing matters and there are side effects:

---
name: deploy
description: Deploy the current branch to staging
disable-model-invocation: true
argument-hint: [environment]
---

With disable-model-invocation: true, Claude does not decide to deploy on its own; and per the docs its description does not occupy context either, and it also keeps the skill out of Subagent preloading and session-scoped Scheduled Tasks. The second is background knowledge only Claude reads:

---
name: legacy-billing-rules
description: Background on how the legacy billing system rounds amounts
user-invocable: false
---

user-invocable: false hides it from the / menu, while Claude still loads it automatically when relevant. That suits content that is not a "command", such as rules for a legacy system, where nobody benefits from typing /legacy-billing-rules.

What if both fields are set

The official table has no row for it. A third-party summary at agentpatterns.ai says setting both makes the skill unreachable. Inferring from the table that also makes sense, since you cannot invoke it and Claude will not, but I did not test it. If you need to turn a skill off, move its folder away instead of setting both.

Five small traps (all from the official docs)

  • A wrong field name raises no error: the docs say "Unrecognized field names are ignored without an error". If you misspell disable-model-invocation as disable-model-invokation, the skill runs with default behavior and Claude can still invoke it on its own.
  • Boolean spellings: yes, no, on, off, 1 and 0 are accepted in any case; before v2.1.218 only true and false worked.
  • allowed-tools is not a restriction: it lists tools that run without per-use approval while the skill is active, other tools remain usable, and the grant clears when you send your next message.
  • model applies to the current turn only: it is not saved to settings; with context: fork, it sets the subagent's model instead.
  • paths limits automatic activation: glob patterns restrict where the skill activates automatically, relative to Claude's current working directory.

Verify with three skills (my steps, which I have not run)

  1. Under ~/.claude/skills/ create three folders, each with a SKILL.md: one default, one with disable-model-invocation: true, one with user-invocable: false, each description naming a different trigger situation.
  2. Type / in Claude Code and confirm the third is absent from the menu and the first two are present.
  3. Describe a task matching each description in one sentence without typing a slash, and watch whether Claude loads it on its own: per the docs, the default and user-invocable: false should, and disable-model-invocation: true should not.
  4. Then deliberately misspell one field name and confirm the skill falls back to default behavior, which checks the "a typo raises no error" point.

My judgment

This is my view, not official advice: for any skill with side effects (deploying, committing, sending mail, deleting), set disable-model-invocation: true first and decide later whether to loosen it; it also saves the context the description would take. Since a typo raises no error, add a line to your team's skill review checklist: check that each field name actually exists in the official field table, not just that the skill's content looks right.

Sources: Extend Claude with skills - Claude Code Docs, SKILL.md Frontmatter Reference - agentpatterns.ai
Diagram
SKILL.md 的呼叫控制:誰能呼叫、description 是否在 context預設、disable-model-invocation: true、user-invocable: false 三種狀態的對照,以及拼錯欄位名稱不報錯等官方文件提到的小陷阱SKILL.md: who can invoke, and what stays in contextDefault(no fields set)You can invoke: YesClaude can invoke: YesDescription always in contextFull skill loads when invokedUse for: general skillsdisable-model-invocation: trueuser-only skillYou can invoke: YesClaude can invoke: Not on its ownDescription NOT in contextFull skill loads when invokedUse for: deploy, commituser-invocable: falseClaude-only backgroundYou can invoke: NoClaude can invoke: YesDescription always in contextFull skill loads when invokedUse for: legacy rules, backgroundEasy traps (official docs)Unknown field names are ignored, no errorA typo silently falls back to the defaultBooleans: yes/no/on/off/1/0 (v2.1.218+)Setting both fields: no row in the table(3rd party says unreachable; I did not test)Related fields, short versionallowed-tools: pre-approves, does not restrictGrant clears at your next messagemodel: current turn only, not savedpaths: globs that limit auto-activationcontext: fork runs it in a subagentClaude Skill Me · claudeskill-me.com
Feel free to share. Please credit the source.
Ask a Question
Please enter at least 10 characters
Related Articles
Claude Code Merged Custom Commands Into Skills — Most "Commands vs Skills" Guides Are Already Outdated
skill-library · Sep 05
How Long Should SKILL.md Actually Be? The Logic Behind the Official 500-Line Guideline
skill-library · Aug 31
CLAUDE.md Too Long? Use .claude/rules/ and paths So Rules Load Only When Claude Touches Matching Files
beginners · Oct 23
Why Your Claude Code Skill Silently Stops Triggering: The 15,000-Character Description Budget No One Warns You About
practice · Sep 02
Related News