Guides

Claude Code skill not triggering

You wrote a SKILL.md, asked for exactly the thing it does, and Claude did it the long way. In my experience the cause is one of six, and four of them are mechanical: the skill isn't in the list at all. Check those first, then fix the description.

Quick check. Type / and the skill's name. If it isn't offered, Claude Code never loaded it: see checks 1, 2 and 5. If it runs from /name but never on its own, it's the description (check 3), the listing budget (4) or a frontmatter flag (6).

How Claude picks a skill

The skills docs describe a two-stage load. At the start of a session "skill descriptions are loaded into context so Claude knows what's available, but full skill content only loads when invoked." So the model chooses from a list of names and descriptions, and nothing else. If the skill isn't in that list, it can't be chosen. If it's in the list with a description that doesn't resemble your request, it won't be. Everything below follows from that.

1. Wrong folder or depth

Claude Code looks in exactly these places: ~/.claude/skills/<name>/SKILL.md for personal skills, .claude/skills/<name>/SKILL.md in the project, the same path in a subfolder (loaded later), a folder you pass with --add-dir, and <plugin>/skills/<name>/SKILL.md inside a plugin. The file has to be one folder down. A SKILL.md dropped straight into .claude/skills/, or a my-skill.md with the right frontmatter, isn't a skill.

Here is what that looks like on a real repository. OpenAI's Codex repo ships sample skills under codex-rs/skills/src/assets/samples/. They're valid files, in the wrong place for Claude Code:

$ npx -y asitis@0.4.8 loads codex-rs/core --root . --tool claude-code

Claude Code: nothing counted at launch; 9 not loaded
  Not loaded
    - codex-rs/skills/src/assets/samples/imagegen/SKILL.md: SKILL.md outside .claude/skills/ (a plugin, or an Agent Skills repository); Claude Code does not load it from here
    - codex-rs/skills/src/assets/samples/openai-docs/SKILL.md: SKILL.md outside .claude/skills/ ...
  Warnings
    - 5 SKILL.md files are outside .claude/skills/, so Claude Code does not load them from here

Subfolders have their own rule: "Skills in a .claude/skills/ directory below where you started don't load at startup. They load the first time Claude reads or edits a file in that subdirectory." If you start at a monorepo root and your skill lives in packages/api/.claude/skills/, it appears only once Claude has touched something in packages/api. Starting in packages/api loads it straight away, plus every parent's skills up to the root. See CLAUDE.md in a monorepo for the same rule applied to instruction files.

2. Frontmatter that doesn't parse

This one is sneaky because the skill half works. The docs: "If the frontmatter YAML is malformed, Claude Code loads the skill body with empty metadata, so /skill-name still works but Claude can't match against your description." The usual breakages are an unquoted colon inside the description (description: Use when: the user asks...), a blank line or a byte-order mark before the first ---, and a tab where YAML wants spaces. Run claude --debug to see the parse error, or claude plugin validate .claude/skills, which the docs say finds every SKILL.md whose frontmatter doesn't parse (v2.1.233 or later).

The steering file checker does the same for one pasted file, and names the line. The full list of fields and limits is in Is my SKILL.md valid?

3. The description doesn't say what people say

The docs' first troubleshooting step is "Check the description includes keywords users would naturally say", and the Anthropic skill-authoring guide asks for the third person and for the key use case first. A description written for a reader ("Helps with releases") gives the model nothing to match against "write the changelog for 1.4". One written for the matcher does:

---
name: api-testing
description: Testing patterns for the API package. Use when writing or modifying tests in packages/api/.
---

That example is the docs' own. Notice the pattern: what it does, then "Use when" followed by the words a request would contain. Two things to avoid, both of which the linter flags: a description in the first person ("I review pull requests"), which Anthropic's guide warns "can cause discovery problems" because the text lands in the system prompt; and two skills whose descriptions say nearly the same thing, so the model has no way to prefer one. Real output on a fixture with both mistakes:

$ npx -y asitis@0.4.8 lint --fail-on never

.claude/commands/review.md:1:1 warning skill-shadowed-command The skill in .claude/skills/review/SKILL.md is also named "review", and Claude Code runs the skill when two share a name, so /review never runs this command. Rename the command, or delete it if the skill replaced it

.claude/skills/review/SKILL.md:3:1 note skill-description-person description speaks as the skill ("I review"). Anthropic's skill guide says to write it in third person, as in "Processes Excel files and generates reports", because it is injected into the system prompt and a mixed point of view can cause discovery problems

Linted 6 files: 0 errors, 1 warning, 1 note.

Keep the use case in the first sentence. The docs cap the description plus when_to_use at 1,536 characters in the listing, and the budget below can cut it further, so the words that matter should come before anything that doesn't.

4. The listing is over budget

This is the one that arrives after months of things working. From the docs: "The listing always contains every skill name, but if you have many skills, Claude Code drops some descriptions to fit the listing's character budget, which removes the keywords Claude needs to match your request. The budget scales at 1% of the model's context window." Which descriptions go first? "Claude Code drops descriptions starting with the skills you invoke least", so a new skill is exactly the one that loses its text.

Three ways to see it: /doctor estimates the listing's cost and its biggest contributors, the Skills row in /context shows the listing's size after the budget is applied, and --debug writes a warning to the log when the budget is exceeded. Three ways to fix it: raise the budget with skillListingBudgetFraction (0.02 is 2%) or the SLASH_COMMAND_TOOL_CHAR_BUDGET environment variable; set the skills you rarely use to "name-only" in skillOverrides; or shorten descriptions. Plugins count too, which is why a marketplace install can push a working setup over the edge.

The linter's skill-listing-budget rule adds up the descriptions in one .claude folder or plugin and warns when they pass about 8,000 characters, which is 1% of a 200K window at four characters a token. It can't see your personal skills or other plugins, so /doctor is the final word.

5. A name Claude Code refuses, or one already taken

If /name isn't recognised either, the docs say to check whether Claude Code refused the skill's name. The Agent Skills spec wants lowercase letters, digits and single hyphens, matching the folder name. Deploy in a folder called deploy is two findings:

.claude/skills/deploy/SKILL.md:2:1 error name-format name "Deploy" must be lowercase letters, digits and single hyphens (Agent Skills spec; the Claude API and claude.ai allow only a-z, 0-9 and hyphens), for example "deploy"
.claude/skills/deploy/SKILL.md:2:1 warning name-dir-mismatch name "Deploy" does not match its folder "deploy"; the spec expects them to match, so rename one

The other collision is with .claude/commands/. Commands were merged into skills, and the docs' resolution table says that when a skill and a command share a name, "the skill" runs. So the old review.md command is silently dead the day someone adds a review skill. That's the skill-shadowed-command warning in the output above.

6. A flag that turns it off

Two frontmatter fields change who can invoke a skill. disable-model-invocation: true means "prevent Claude from automatically loading this skill", so it's manual only; the docs suggest it for deploy-style workflows, and it's easy to copy from a template without noticing. user-invocable: false is the reverse: Claude can use it, you can't, and it's hidden from the / menu. And a skill with a paths field only activates for files inside Claude's current working directory, not a sibling worktree, even one added with /add-dir.

Listed, matched, still skipped

Sometimes everything above checks out and Claude still doesn't reach for the skill. That's the model making a judgment call, and the docs are honest that it's a judgment: "Claude uses skills when relevant". What helps: rephrase the request with the description's words, and invoke it with /name when it matters. What fixes it for good: if the skill exists to make sure something always happens (a check before every commit, a format after every edit), it shouldn't be a skill. The docs say "move the rule into a hook", because Claude Code "runs a hook every time its event occurs ... whether or not Claude is following the skill." You can even keep the hook with the skill, in its hooks frontmatter. The same split, rules versus enforcement, is in Claude Code ignores my CLAUDE.md.

If the skill ships in a plugin, the docs describe a way to measure rather than guess: an eval case with a tool_used: Skill grader, run with claude plugin eval after each description change.

Check your file

Paste a SKILL.md into the steering file checker and it reports frontmatter that will not parse, a bad name, a description that is vague or in the first person, and the length limits. The plugin's /asitis:md-lint does the same for every skill in a project, including two whose descriptions overlap and the listing budget.

Open the steering file checker

To check every steering file in a project from inside Claude Code, including links, @imports and what loads every session, install the free AsItIs plugin. It is read-only and makes no network calls.

claude plugin marketplace add Katta041/asitis-agent-tools
claude plugin install asitis@asitis

About the pluginSource on GitHub

MIT licensed. A star on GitHub helps other people find it.

Questions

How do I see which skills Claude Code loaded?

Ask in the session: "What skills are available?" The docs list that as the check. /context shows the size of the skill listing after the budget is applied, and /doctor estimates the listing's cost and its biggest contributors. Outside a session, asitis loads prints the listing entry count and flags SKILL.md files that sit where Claude Code never looks.

Why does /skill-name work but Claude never uses the skill on its own?

Claude can run a skill it cannot match. If /name works and auto-invocation never happens, the description is the first suspect: it is the only text Claude sees before deciding. Two mechanical causes give the same symptom: frontmatter that fails to parse, which the docs say leaves the skill with empty metadata so /name still works, and disable-model-invocation: true in the frontmatter.

Is there a limit on how many skills Claude Code can list?

Not on the count, but on the characters. The docs say the listing's budget scales at 1% of the model's context window, every skill name is always listed, and when the descriptions overflow, Claude Code drops descriptions starting with the skills you invoke least. Each entry's description plus when_to_use is also capped at 1,536 characters. You can raise the budget with the skillListingBudgetFraction setting or the SLASH_COMMAND_TOOL_CHAR_BUDGET environment variable.

Does my skill in packages/web/.claude/skills load when I start at the repo root?

Not at startup. The docs say skills in a .claude/skills folder below where you started load the first time Claude reads or edits a file in that subfolder, and then stay for the session. Starting in packages/web picks up its own skills and every parent's up to the repository root. To load a subfolder's skills sooner, run /add-dir with its path.

See what an agent changed in your CLAUDE.md. Keep or revert each change.

The linter is free and needs no signup. I'm also building a desktop editor for the markdown your agents write and read. It shows what an agent changed since you last looked, lets you keep or revert each change, and never touches a line you didn't edit. No release date yet. One email to confirm, one when the paid beta opens, one when 1.0 ships. $29 once for a founding licence, with 24 months of updates.

Or add the linter to CI, no email needed.

Your address is stored with Cloudflare, which hosts this site. No IP address is kept. See the privacy policy.

Related: Is my SKILL.md valid?, Codex skills not showing, Claude Code ignores my CLAUDE.md, CLAUDE.md in a monorepo, how many tokens does my CLAUDE.md cost?

Sources, read on 15 November 2026: Claude Code docs, Skills (the locations table, the frontmatter reference and the Troubleshooting section); Anthropic, Skill authoring best practices. Quotes are exact. Command output is from @asitis/mcp 0.4.2 (0.4.3 prints the same) on a fixture folder and on openai/codex at commit ee344ca, trimmed for width.