Why your Claude Code skill doesn't trigger (and how to write a description that does)

Claude picks skills by their description. How matching works, the 1,536-character cut-off, settings that switch auto-use off, and before/after examples of descriptions that trigger reliably.

SkillNest ·

A skill that shows up in /skills but never runs on its own almost always has a description problem. Here is how Claude chooses, and how to write a description it can match.

How Claude picks a skill

Every turn, Claude sees a short listing of available skills: each skill's name and description (plus when_to_use if you set it). The full SKILL.md only loads once Claude decides a skill fits the request. So the description is the only thing Claude reads when choosing. If you leave it out, Claude Code falls back to the first non-empty line of the body, which is usually a title such as "# My Skill" and matches nothing.

Rules for a description that triggers

  • Lead with the job. The text is cut off at 1,536 characters in the listing, so the key use case goes first.
  • Use the words people type. Name the file types, tools and verbs: "pytest", "Dockerfile", "commit message", "PDF form".
  • Say when. "Use when the user asks to…" gives Claude a clear match condition.
  • One skill, one job. Two skills with overlapping descriptions compete; split or merge them.

Before and after

# Before: too vague to match anything
description: Helps with testing.

# After: says what, with which tools, and when
description: Write and fix pytest unit tests for Python code. Use when the user
  asks to add tests, raise coverage, or debug a failing pytest run.

Settings that switch automatic use off

  • disable-model-invocation: true in the frontmatter: only you can run the skill with /name; Claude never picks it, and its description is left out of context.
  • skillOverrides in settings can set a skill to "user-invocable-only", "name-only" or "off".
  • user-invocable: false does the opposite: it hides the skill from the / menu but Claude can still use it.

Test it

Ask for the task in plain words, the way a user would, without naming the skill. If Claude doesn't use it, add the missing words to the description and try again; edits to SKILL.md take effect without a restart. You can always force it with /skill-name.

Check the frontmatter itself with the SKILL.md validator, and see 10 reasons a skill doesn't load if it doesn't appear in /skills at all.