SKILL.md Descriptions That Trigger Reliably: The Frontmatter Field That Decides Everything
2 October 2026 · Updated 28 November 2026 · 12 min read · by Yang Kai
A skill that never loads is a file, not a tool. How Claude Code matches requests to skill descriptions, the anatomy of a description that triggers on the right jobs and stays quiet on the wrong ones, and the before/after rewrites that fix the three common failures.
Table inside: Description rewrite table: three failing descriptions and their working replacements
Contents
- How matching actually works
- The hard limits
- The anatomy of a working description
- The four failures, rewritten
- A worked example: one description in three drafts
- Testing whether a description works
- Writing descriptions for skills other people install
- Descriptions age — schedule the retest
- How we researched this
- The verdict
A skill that never loads is a file, not a tool — and the difference is almost never the instructions. It is one frontmatter field: description.
Claude Code reads every installed skill’s name and description at session start, and loads the full SKILL.md only when your request matches that description. A vague description produces a skill that never fires. A greedy one produces a skill that fires on everything and taxes every session it pollutes.
This article shows how the matching actually works, the three-part anatomy of a description that triggers on the right jobs and stays quiet on the wrong ones, the four failures that account for most broken skills — rewritten before and after — and a ten-request test protocol so you verify routing instead of guessing at it.
The mechanics below are taken from Anthropic’s official Agent Skills specification and Claude Code documentation, checked in November 2026.
How matching actually works
Think of the description as a routing rule read by a busy dispatcher. At session start, Claude sees your request alongside a list of short summaries — one per installed skill — and loads the full instructions of the skills whose summaries cover the request.
Three consequences follow from that model:
- The description is written in the language of requests, not internals. Users ask for “release notes”, not for “the changelog-generation procedure”. A description that names the skill’s mechanism instead of the user’s job cannot match the words the user actually types.
- The description competes. If two installed skills both claim “writing”, the dispatcher guesses, and you get inconsistent behaviour between sessions. Your description does not just describe your skill — it stakes out territory against every other skill on the machine.
- The description is all the dispatcher gets. The body, however good, plays no part in the decision. A brilliant procedure behind a weak description is invisible.
The loading model behind this — metadata always loaded, body loaded on trigger, bundled files loaded on access — is explained in full in Claude Code Skills, explained.
The hard limits
Descriptions operate inside fixed constraints from the spec. Know them before you write:
| Constraint | Value | Why it matters |
|---|---|---|
description length |
1,024 characters maximum | Long enough for three proper parts; too short to waste on feature lists |
name length |
64 characters maximum | Lowercase letters, numbers, hyphens; must match the folder name |
| Metadata cost | About 100 tokens per skill | Every installed description rides in every session — a library of 60 bloated descriptions is a standing tax |
| Listing truncation | description + when_to_use cut at 1,536 characters combined |
If you use the Claude Code when_to_use field, the combined text is what gets read — put the main use case first, not last |
| Body size | Keep under 5,000 tokens | Not a description limit, but the reason descriptions exist: the expensive part loads only on a match |
The practical reading: you have roughly 150–170 words of description at the absolute cap, and most good descriptions use 40–100 of them. The one-liner is the most common cause of a dead skill; the feature-list essay is the second.
The anatomy of a working description
A reliable description has three parts, in this order:
- The job, named as the user names it. “Draft release notes from git history” — verb, object, source. If the user would not recognise their own request in this sentence, rewrite it.
- The trigger situations. “Use when preparing a version release, a changelog entry, or a PR summary for reviewers.” Concrete occasions, plural, phrased the way requests actually arrive.
- The boundary. “Do not use for commit messages or code review.” One exclusion sentence prevents most misfires, because near-miss jobs are where greedy skills do their damage.
Two style rules sit on top of the anatomy. Write in the third person — “Processes PDF files”, not “I process” or “you can use this to process” — because the description is injected into the system prompt, and inconsistent point of view makes matching less reliable; Anthropic’s authoring guide recommends third person for exactly this reason. And match the name to the description: a gerund form like processing-pdfs or drafting-release-notes names the activity the description then scopes, and the two together read as one routing rule.
Harvest the words, don’t invent them
Part 2 is where most descriptions fail, because authors write the occasions they imagine rather than the phrasing they use. The fix is mechanical:
- Look at your last three sessions where you did this job by hand. Copy the verbs and nouns from your own requests into the trigger section, verbatim where possible.
- Add the objects users name: file types, formats, artefacts. “PDF”, “spreadsheet”, “CHANGELOG”, “pull request” — concrete nouns match; abstract ones (“documents”, “content”, “tasks”) match everything and route nothing.
- Add synonyms deliberately. If you sometimes say “changelog” and sometimes “release notes”, both phrases belong in the description. The dispatcher cannot infer that your two phrases are one job.
The four failures, rewritten
| Failing description | Why it fails | Working replacement |
|---|---|---|
| “Helps with writing tasks.” | Matches everything and nothing; no job, no occasions, no boundary — the dispatcher cannot route on it | “Draft and revise blog outlines and article drafts. Use when starting a post, restructuring a draft, or applying the site’s style rules. Do not use for code comments or documentation.” |
| “Release notes generator v2 — uses conventional commits, semantic versioning and Keep a Changelog format.” | Written in internals language; names the mechanism, never the request; no occasions, no boundary | “Write release notes from git history. Use when preparing a version release, changelog entry or upgrade summary. Groups changes by type from commit messages. Do not use for single-commit messages.” |
| “Processes Excel files and data.” | Says what, never when — the single most common defect in published skills | “Extract tables and clean data from Excel and CSV files. Use when the user uploads a spreadsheet, asks to clean or reformat tabular data, or mentions .xlsx or .csv files. Do not use for building charts or dashboards.” |
| “Use this skill for every task in this project. Always load first.” | Greedy land-grab; loads always, taxes every request, conflicts with every other skill | Split it: the always-true rules belong in CLAUDE.md, and each real job gets its own scoped skill. (See the CLAUDE.md field guide.) |
The third failure deserves a number. In a November 2026 format check of 1,792 public skills, 36.6% of descriptions stated what the skill does but never when to use it — over a third of published skills are missing the half of the field that does the routing. (Source: simplify-software.org, “SKILL.md Format: Rules, Examples and 1,792 Skills Checked”.)
A worked example: one description in three drafts
Take a skill that writes commit messages. Watch what each draft adds.
Draft 1: “Writes commit messages.” Sixteen characters of the 1,024 available. It might match — or the dispatcher might hand the job to a general git skill, or to nothing. There is no way to predict, which is the problem.
Draft 2: “Write git commit messages in the Conventional Commits format. Use when the user asks for a commit message, wants staged changes committed, or asks to summarise a diff for a commit.” Now the job is named, three real occasions are listed, and the format the body will enforce is stated up front. This draft routes.
Draft 3: Draft 2 plus one sentence — “Do not use for release notes or changelog entries.” The boundary is there because a sibling skill owns release notes, and without the exclusion the two descriptions overlap on “summarise changes” and the dispatcher coin-flips. Draft 3 is the finished description: job, occasions, boundary, 61 words.
Notice what never appears in any draft: the internal steps, the type list, the footer rules. Those live in the body, where they cost nothing until the skill fires.
Testing whether a description works
Do not guess — test with the requests you actually make:
- Write down five real requests the skill exists for, in your own words from past sessions.
- Write five near-miss requests it must not fire on — the adjacent jobs owned by other skills or by no skill.
- In a fresh session with the skill installed, run the ten requests and note which skills load. A miss on list one is a description problem; a hit on list two is a boundary problem.
- Fix the specific part: misses need the request’s own vocabulary added to part 2; misfires need a sharper exclusion in part 3.
You have a control for this test: typing /skill-name invokes the skill directly, bypassing the description entirely. If direct invocation produces the right behaviour but natural phrasing does not load the skill, you have isolated the fault to the description with certainty.
Repeat the protocol after any edit — description changes are cheap, and this loop is the difference between a library that routes cleanly and a pile of files that fire at random. The same test applies to skills you install from elsewhere; run it during the trial phase of the safe-install audit, and when a skill that used to work stops loading, work through the debugging checklist before rewriting anything.
Writing descriptions for skills other people install
Everything above assumes your machine, your phrasing, your neighbouring skills. A description written for a shared library — a project repo, a plugin, a published collection — faces a harder test, and two adjustments follow.
First, prefer common job vocabulary over personal shorthand. Your trigger list harvested from your own sessions may include project codenames and habits no other user shares; on their machines those phrases never occur, and the occasions they do have go unmatched. Keep the widely-used names for the job (“release notes”, “code review”, “migration”) and let your personal variants live in your personal copy.
Second, write the boundary against the category, not against your specific other skills. “Do not use for code review” protects a stranger’s library; “Do not use for the style-pass skill” protects nothing outside your machine. Published skills also cannot know what they will sit next to, which is why the fixed template in the advanced skill-writing guide treats a category-level exclusion as a required field, not a polish step.
Descriptions age — schedule the retest
A description that routed perfectly in January misfires by June, for reasons outside the skill: you installed three more skills whose descriptions now overlap, your own phrasing drifted as your work changed, a new project uses the same job words for a different job.
Treat descriptions as living configuration. The retest is cheap — the same ten-request list, extended with any request that misfired in real sessions since the last pass. Keep the test list in a file beside the skill; future you, debugging at midnight, will be glad past you wrote the failing requests down. The library-level version of this maintenance — dedupe, overlap checks, retiring skills — is covered in sharing skills across projects and teams.
One habit makes all of this easier: when a skill misfires in a real session, write the request that caused it into the test list immediately, in the words you actually used. That list is the skill’s regression suite, and it grows from evidence rather than imagination.
How we researched this
Desk research against primary sources: Anthropic’s Agent Skills specification and Claude Code skills documentation for the limits and loading model, and Anthropic’s skill authoring guidance for the third-person and “what plus when” rules — all checked in November 2026. The one statistic quoted (36.6% of public descriptions omitting the “when”) is attributed in the text to the published format check it came from. The example descriptions are constructed for teaching; the rewrite patterns are the point, not any specific library.
FAQ
How long should a description be? The cap is 1,024 characters, but length is not the target — coverage is. Most reliable descriptions run 40–100 words: long enough for a named job, several trigger occasions and one boundary sentence. If yours needs more, check whether body content has crept into the frontmatter.
Should a description be written in first or third person? Third person. The description is injected into the system prompt as a routing summary, and Anthropic’s authoring guidance recommends third person (“Processes PDF files…”) because mixed points of view make matching less predictable.
What is the when_to_use field, and should I use it instead?
It is a Claude Code extension that adds trigger context alongside the description. Use it for extra occasions if you have them — but the two fields are combined and truncated at 1,536 characters in the skill listing, so the main use case belongs at the front of the description either way.
Why does my skill trigger on the wrong tasks? Usually a missing or vague boundary. Near-miss jobs — the editing request that hits the outlining skill — are stopped by one explicit “Do not use for…” sentence naming the adjacent job, not by making the rest of the description longer.
Do keywords work like SEO keywords — should I stuff synonyms in? No stuffing, but deliberate synonyms, yes. The match is semantic, not a keyword index; what helps is covering the genuine phrasings of the same job (“changelog” and “release notes”), not repeating one phrase or adding jobs the skill does not do.
The verdict
The description is the skill, as far as triggering is concerned: three parts — the job in the user’s words, the occasions it fires on, one boundary sentence — written in the third person and tested against ten real requests. Get that field right and an ordinary body performs; get it wrong and the best body in the library never loads.
If you have not built the skill yet, write your first Claude skill walks the full build with this anatomy in place; writing Claude skills, advanced covers what to do when the library grows past a handful. Finished descriptions worth studying live in the skills directory — read them as routing rules, and notice how few words the good ones need.
Category: AI Agent Skills · Tags: #skills #skill-md #claude-code
Next step: this article is part of AI Skills, which covers the full topic from first setup to advanced use.