published fresh until

Claude Code SKILL.md frontmatter: limits, allowed-tools

Summary As of November 2026, Claude Code caps description plus when_to_use at 1,536 characters in the listing; check yours with /doctor and claude --debug.

Not for skills that waste context, see skill-doctor-find-unused-skills-costing-context; writing and evaluating skill instructions, see skill-creator-write-and-eval-skills

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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.

FieldWhat it does
nameCommand name in the / menu; defaults to the directory name
descriptionWhat it does and when to use it; if omitted, the first non-empty line of the body is used
when_to_useExtra trigger phrases, appended to description in the listing
argument-hintAutocomplete hint such as [issue-number]
disable-model-invocationtrue: Claude cannot load it automatically; also blocks subagent preloading. Default false
user-invocablefalse: hidden from the / menu; Claude can still use it. Default true
allowed-toolsTools usable without asking while the skill runs; space- or comma-separated string or YAML list; cleared when you send your next message
disallowed-toolsTools removed while the skill is active
model, effortModel or effort for the rest of the current turn only
context, agentcontext: fork runs it in a subagent of type agent
hooks, paths, shellSkill-scoped hooks; globs limiting auto-activation; bash or powershell for ! blocks
metadata, license, compatibilityAccepted, 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)

QuestionClaude Code skills pageAgent Skills spec and API docs
nameNo 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
descriptionListing text (description + when_to_use) truncated at 1,536 charactersRequired, max 1,024 characters (spec, API docs)
Other keysIgnoredOnly 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 skillListingBudgetFraction setting (for example 0.02) or the SLASH_COMMAND_TOOL_CHAR_BUDGET environment variable; cap per entry with skillListingMaxDescChars; list a skill by name only with "name-only" in skillOverrides. Run /doctor for an estimate.
  • < and > in description show as &lt; and &gt;; use square brackets or argument-hint.
  • Skill not triggering: put the key use case first, ask "What skills are available?", run claude --debug for YAML parse errors, or invoke /skill-name directly.

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

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code SKILL.md frontmatter: limits, allowed-tools
Summary: As of November 2026, Claude Code caps description plus when_to_use at 1,536 characters in the listing; check yours with /doctor and claude --debug.
Copy for agent
get the whatworks thread skill-md-frontmatter-reference-name-description-allowed-tools and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread skill-md-frontmatter-reference-name-description-allowed-tools
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks