What this thread does
Do first: run claude plugin validate .claude/skills and put the key use case first in description.
For Claude Code, name and description are both optional but write them; the combined description plus when_to_use is cut at 1,536 characters in the skill listing; allowed-tools pre-approves tools only for the turn that runs the skill; disable-model-invocation: true stops Claude from loading the skill on its own while you can still run /name. The 64-character lowercase name and 1,024-character description limits belong to the open Agent Skills spec and to uploads to claude.ai or the API, so write to them if the skill must travel. As of October 2026 (checked 2026-11-18), from the official pages cited below.
Not for: finding skills that waste context (see skill-doctor-find-unused-skills-costing-context) or writing and testing a skill's instructions (see skill-creator-write-and-eval-skills).
Fields in Claude Code (skills page)
The opening --- must be the first line of SKILL.md. Unknown fields are ignored without an error. If the YAML does not parse, the skill loads with no fields set. Booleans accept true/false, yes/no, on/off, 1/0.
| Field | What it does |
|---|---|
name | Command name in the / menu; defaults to the directory name |
description | What it does and when to use it; if omitted, the first non-empty line of the body is used |
when_to_use | Extra trigger phrases, appended to description in the listing |
argument-hint | Autocomplete hint such as [issue-number] |
disable-model-invocation | true: Claude cannot load it automatically; also blocks subagent preloading. Default false |
user-invocable | false: hidden from the / menu; Claude can still use it. Default true |
allowed-tools | Tools usable without asking while the skill runs; space- or comma-separated string or YAML list; cleared when you send your next message |
disallowed-tools | Tools removed while the skill is active |
model, effort | Model or effort for the rest of the current turn only |
context, agent | context: fork runs it in a subagent of type agent |
hooks, paths, shell | Skill-scoped hooks; globs limiting auto-activation; bash or powershell for ! blocks |
metadata, license, compatibility | Accepted, not acted on (compatibility up to 500 characters) |
Who can invoke it (same page): default is you and Claude, description always in context. With disable-model-invocation: true you can invoke it, Claude not on its own, and the description is not in context. With user-invocable: false only Claude can, and the description stays in context.
Example from the page: allowed-tools: Bash(python3 *).
Where the limits disagree (official pages win for each product)
| Question | Claude Code skills page | Agent Skills spec and API docs |
|---|---|---|
name | No maximum in the frontmatter table; refuses control, zero-width, bidirectional characters and < or > | Max 64, lowercase letters, digits, hyphens; spec: must match the directory; API docs also forbid the words anthropic and claude |
description | Listing text (description + when_to_use) truncated at 1,536 characters | Required, max 1,024 characters (spec, API docs) |
| Other keys | Ignored | Only name, description, license, compatibility, metadata, allowed-tools are allowed in claude.ai uploads, the Skills API and package_skill.py; any other key is a hard error |
So a skill with disable-model-invocation or argument-hint works in Claude Code but needs those lines removed before an upload to claude.ai or the API. A third-party guide (fast.io) calls name only a display label and says the command comes from the directory; the Claude Code page says name is the command name and defaults to the directory, so follow the Claude Code page.
Run on Claude Code 2.1.281: claude plugin validate .claude/skills --strict passed a skill named Bad_Name that also had an unknown foo key, and a plugin skill with a 1,100-character description. Validation is not a check of the 64 and 1,024 limits. (This tested validate only, not how the skill loads at runtime.)
Listing budget and descriptions that disappear
- The listing always has every name; descriptions are dropped for the least-used skills when it exceeds a budget of 1% of the model's context window. Raise it with the
skillListingBudgetFractionsetting (for example0.02) or theSLASH_COMMAND_TOOL_CHAR_BUDGETenvironment variable; cap per entry withskillListingMaxDescChars; list a skill by name only with"name-only"inskillOverrides. Run/doctorfor an estimate. <and>indescriptionshow as<and>; use square brackets orargument-hint.- Skill not triggering: put the key use case first, ask "What skills are available?", run
claude --debugfor YAML parse errors, or invoke/skill-namedirectly.
Evidence
Sources: the Claude Code skills page, the Agent Skills specification, and the Skills overview in the API docs, plus a public report. Issue 9817 (opened 2025-10-18 by raine, Claude Code 2.0.22, closed as duplicate) said a Prettier-wrapped multi-line description made a skill silently undiscovered: "Claude Code will silently ignore it." That is a 2025 version; the page only documents that unparsable YAML loads with no fields, so keep description on one line. Limits: only validate was run; the 1,536 and 1% figures come from the docs.
Started from a post by @Anthropic, packaged by the editor. Original post