Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Agent Skills guide

Skill description best practices: write descriptions that trigger

The description decides when a skill loads. Fix skills that fire too often or never trigger, with before and after examples and a prompt set to test them.

By Intermediate · Updated 20 November 20267 min read
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
On this page

A good skill description says what the skill does, when to use it and the words people actually type, in the third person, with the main capability in the first sentence and a “Not for…” line naming its nearest neighbours. Agents pick skills from the name and description alone, so this one field decides whether a skill ever runs.

An agent does not read your skill until it decides to. At the start of a session it sees a catalogue of every installed skill’s name and description, and nothing else. When your request comes in, the model compares it with that catalogue and loads the skills that seem to match. The description is the whole interface. A brilliant SKILL.md with a vague description never runs; a mediocre one with a greedy description runs when it should not and crowds out better skills.

This guide shows the two failure modes, how to fix each, how to troubleshoot a skill that is not triggering for reasons that have nothing to do with the description, and how to test a description before you share the skill. If you have not written a skill before, start with how to create a Claude skill.

Under-triggering: the skill never loads on its own

Signs: you have to name the skill to get it, or the agent does the task its own way while the skill sits unused.

Common causes:

  • Too short to match anything. GitHub’s create-readme skill has the description “Create a README.md file for the project”. It works when you say “create a README”, and misses “write docs for this repo”, “our README is useless, fix it” or “document how to run this”.
  • Says what, not when. “Utilities for PDF processing” describes the skill but gives the model no trigger.
  • Uses your words, not the user’s. A skill for “ingestion pipeline remediation” will not match “the import job keeps failing”.
  • Truncated. Agents shorten descriptions when space is tight. Claude Code cuts description plus when_to_use at 1,536 characters, and Codex shortens descriptions first when the catalogue goes over its budget (2% of the context window by default). Anything important at the end may never be seen.

The fix is a description with three parts: what the skill does, when to use it, and the words people type.

# Before
description: Create a README.md file for the project

# After
description: >-
  Writes or rewrites a project's README.md from the code: what it does,
  install, run and test commands, and configuration. Use when the user asks
  for a README, project documentation, "how do I run this" docs, or says the
  current README is missing, outdated or unhelpful.

Write it in the third person (“Writes…”, not “I write” or “You can use this to”). Put the main capability in the first sentence, because that is the part that survives truncation.

Over-triggering: the skill loads for everything

Signs: the skill shows up in unrelated tasks, the agent follows its procedure when you wanted a quick answer, or two skills fight over the same request.

Common causes:

  • Keyword lists. Datadog’s APM skill opens its description with “APM - install, onboard, instrument, enable, set up, configure, traces, services, dependencies, performance analysis…”. Words like “configure” and “performance” match half of all engineering requests.
  • “Use for ANY task involving X.” Fine for a platform skill in a project that only uses that platform. In a mixed codebase it pulls the skill into everything.
  • No boundaries. The description says what the skill is for but never what it is not for, so neighbouring tasks match too.

Fix it by narrowing the trigger and naming the exclusions. The best descriptions in our directory do this explicitly. Corey Haines’s CRO skill ends with “For signup flows, see signup. For activation, see onboarding. For popups, see popups.” Trail of Bits’ property-based testing ends with “Not for coverage-guided binary fuzzing, mutation-testing campaigns, static analysis, benchmarking, or end-to-end UI tests.”

# Before
description: Helps with database work, SQL, migrations, schemas and queries.

# After
description: >-
  Writes and reviews PostgreSQL migrations for this repository using our
  migration tool and naming rules. Use when adding or changing tables,
  columns, indexes or constraints. Not for ad hoc analytics queries or for
  tuning slow queries; use sql-queries for those.

If a skill has side effects (deploys, sends messages, publishes), consider not letting the model choose at all. In Claude Code and Cursor, disable-model-invocation: true means it only runs when someone types its name; in Codex, set policy.allow_implicit_invocation: false in agents/openai.yaml. The skill then needs no clever description, just a clear one for the menu.

Skill not triggering at all? Check these first

Before you rewrite a description, make sure the agent can see the skill and is allowed to choose it. Ask the agent to list its skills, then call this one by name. If it is missing, or it runs by name but never on its own, work through these in order:

  1. Wrong folder for this agent. Claude Code reads .claude/skills/ folders and plugins, never .agents/skills/, so a skill installed only to .agents/skills/ does not show up there. Codex reads .agents/skills/, not .claude/skills/. How to install Agent Skills has the folders for every major agent.
  2. The wrong layout. Most agents expect <skills-folder>/<skill-name>/SKILL.md. A skill copied with its repository wrapper around it (skills/some-repo/skills/skill-name/SKILL.md) is found by agents that search deeper, such as Amp and OpenCode, and missed by others.
  3. The file name or the name field. The file must be called SKILL.md, and the spec requires name to match the folder name exactly, in lowercase.
  4. Broken frontmatter. An unquoted description containing a colon and a space (Use when: ...) is invalid YAML, and an agent may skip the skill without telling you why. Paste the file into the SKILL.md validator to catch this.
  5. Model invocation is switched off. disable-model-invocation: true in Claude Code and Cursor, or policy.allow_implicit_invocation: false in a Codex agents/openai.yaml, means the skill only runs when someone types its name. That is often deliberate; check before you remove it.
  6. The session started before the skill existed. Claude Code picks up edits live, but a brand new top-level skills folder needs /reload-skills. Other agents read the catalogue at startup, so open a new session after installing.
  7. Too many skills. When the catalogue is over budget, agents cut it down; Codex, for example, shortens descriptions first. Remove skills you do not use before rewriting the one that is missing.

Once the agent lists the skill and you can call it by name, any remaining misses are about the description, and the rest of this guide applies.

Test it with prompts, not by reading it

You cannot judge a description by reading it. Test it:

  1. Write 10 prompts that should trigger the skill. Vary the wording: formal and casual, with and without the obvious keyword, a vague one (“this is a mess, can you sort it?”) and one buried in a longer request.
  2. Write 10 prompts that should not. Pick near misses: tasks in the same area that another skill or no skill should handle.
  3. Run each prompt in a fresh session with the skill installed alongside your usual skills, not alone. Triggering depends on the competition.
  4. Record whether it loaded. Most agents show when a skill is used; in Claude Code it appears in the transcript.
  5. Change one thing in the description, and rerun everything. Keep the prompt set in the skill’s repository so you can rerun it after every edit.

Aim for all of the should-trigger prompts and none of the near misses. If you cannot get both, the skill is probably doing two jobs; split it.

A checklist

  • First sentence says what the skill does, in the third person.
  • A “Use when…” sentence lists situations and the words users type.
  • A “Not for…” sentence names the nearest neighbours and where to go instead.
  • No keyword dumps, no “ANY task”.
  • Under about 500 characters unless there is a good reason; the spec allows 1,024.
  • Tested against a should and should-not prompt set, kept with the skill.

For the rest of the file, see how to create a Claude skill, the field rules in the SKILL.md format reference, and our guide to testing and evaluating Agent Skills. For how descriptions fit into the loading model, see what Agent Skills are.

  • How to test and evaluate Agent Skills

    Check a skill triggers when it should, stays quiet when it shouldn't and beats the baseline, using a small eval set you can rerun.

    Skill guideAdvanced

  • How to create a Claude skill (Agent Skill) from scratch

    Create a Claude skill in ~/.claude/skills: write a SKILL.md with a description that triggers, add a script, test it, then make it work in other agents too.

    Skill guideBeginner

  • Agent Skills authoring

    Writing, testing and sharing SKILL.md packages that agents load on demand.

    SkillBeginner

  • Progressive disclosure

    Loading only skill names and descriptions up front, and the full instructions or bundled files only when a task needs them.

    Glossary

Back to top