Course contents

Write skill descriptions that trigger reliably

advanced5 min readUpdated
  • Cursor
  • GitHub Copilot
  • Claude Code
  • Windsurf / Devin
  • Cline
  • Codex
  • Antigravity CLI
On this page

Why skills get skipped

A skill only runs automatically if the agent, reading a list of names and descriptions, decides your request matches one. That decision is the weak link. In Vercel's Next.js evals, a docs skill was never invoked in 56% of runs, and with default behavior it produced no improvement over having no docs at all (Vercel, Jan 2026).

Most skipped skills fail for one of four reasons:

  1. The description doesn't use the words people actually type.
  2. It isn't loaded at all: wrong folder, bad YAML, a name mismatch.
  3. Something else matches better: another skill, a rule, or a built-in command.
  4. The agent thinks it can handle the task without help.

You can fix the first three with better files. The fourth needs a nudge from your always-on instructions.

A description formula that works

Write the description as three parts, in this order:

What it does (verb first, concrete nouns) + when to use it (the phrases a user would say) + when not to (the nearest wrong case).

description: "Review a Next.js App Router change for structure, Server Actions, data fetching, security, and tests. Use for a Next.js code review or a pre-merge check. Do not use for a CSS-only tweak, a non-Next.js repository, or a major upgrade nobody asked for."

That's the real description of our Next.js code review skill. Why it works:

  • Front-loaded. The key job is in the first five words. Codex shortens descriptions when many skills are installed, and Claude Code truncates the listing at 1,536 characters, so the start must carry the meaning.
  • User vocabulary. "code review", "pre-merge check": what people actually say.
  • Concrete scope. It names the framework and the areas it checks.
  • A boundary. "Do not use for..." stops it from firing on a CSS tweak, which keeps the agent's trust in it high.

Anthropic's skill authoring guidance adds two more: write in the third person, and make each skill's description clearly different from its neighbors (Claude skill best practices).

Weak vs. strong

WeakStrong
Helps with tests.Add or extend pytest coverage for a Python change using the project's uv environment. Use when the user asks for Python tests or a failing case. Not for upgrading the interpreter.
Database stuff.Create and check a Prisma migration. Use when the user asks to add a column, change a model, or write a migration. Not for running migrations against production.
Security checker.Review a Supabase change for missing row-level security, service-role keys in client code, and auth that trusts a caller-supplied user id. Use for a Supabase security review.

Test with real prompts

Don't test with the skill's own wording. Write ten prompts the way your team actually talks, and run each in a fresh session:

Test prompts for nextjs-code-review
Should trigger:
1. can you review this PR before I merge
2. look over my server actions for problems
3. check app/dashboard for bugs
4. is this route handler safe?
5. pre-merge check please

Should NOT trigger:
6. make the header blue
7. upgrade us to the next major of Next.js
8. write a README for this repo
9. review my Python script
10. fix this typo in page.tsx

Score it: how many of 1 to 5 used the skill, and how many of 6 to 10 wrongly did? Change one thing in the description, then rerun. If you ship skills in a Claude Code plugin, you can automate this with an eval case and claude plugin eval (Claude Code skills).

Nudge it from the always-on layer

The single most effective fix is a pointer in AGENTS.md, CLAUDE.md or an always-apply rule:

AGENTS.md
## Skills
- For a code review or pre-merge check, use the `nextjs-code-review` skill.
- For new or failing tests, use the `playwright-test-writer` skill.

In Vercel's evals, adding an instruction to use the skill raised the trigger rate to over 95% and the pass rate from 53% to 79%. Wording mattered: "explore the project first, then invoke the skill" beat "you MUST invoke the skill", which made the agent anchor on the docs and miss project context.

When you need it every time, invoke it

If a skill must run, don't leave it to chance. Call it by name:

ToolHow
Claude Code, Devin, Copilot (VS Code), Antigravity CLI/skill-name
Cursor, ClineType / and pick the skill
Codex$skill-name

And if a skill should never run on its own, like deploys or anything with side effects, turn automatic use off: disable-model-invocation: true in Claude Code, Cursor and VS Code Copilot, or allow_implicit_invocation: false in Codex's agents/openai.yaml.

Debugging checklist

Work through these in order. Most problems are found in the first four.

  1. Is it listed? Claude Code: /skills or ask "What skills are available?" Codex: /skills. Antigravity CLI: /skills. Cursor and Devin: the Customize page. Cline: the skills toggles. VS Code: Open Customizations.
  2. Right folder? Claude Code reads .claude/skills/, not .agents/skills/. Antigravity scans only one level deep: .agents/skills/<name>/SKILL.md.
  3. Valid frontmatter? --- must be the first line. In Claude Code, malformed YAML loads the body with empty metadata, so /name works but automatic matching doesn't. Run claude plugin validate .claude/skills.
  4. name matches the folder? Lowercase, hyphens, no spaces.
  5. Scoped too tightly? A paths field means the skill only surfaces for matching files.
  6. Turned off? Check for disable-model-invocation: true, allow_implicit_invocation: false, or a disabled toggle in Cline.
  7. Duplicate names? Two skills with the same name in different folders (for example .cursor/skills/ and .agents/skills/) can shadow or confuse each other. In Cline, a global skill wins over a project skill of the same name.
  8. Too many skills? Codex caps the initial list at 2% of the context window and may omit skills, with a warning.
  9. Fresh session? Codex picks up changes automatically but may need a restart; Antigravity CLI needs /skills reload or a new conversation.

Common mistakes

  • Descriptions written like titles. "Next.js Review" isn't a description.
  • Trigger words only in the body. The body isn't visible until the skill loads.
  • Two skills that overlap. "code-review" and "pr-review" in the same repo compete. Merge or sharpen them.
  • Testing in the chat where you wrote the skill. The agent already has the context. Start fresh.

Still stuck? Work through the full checklist in Why your skill isn't triggering (and 9 fixes).

Recap

  • Description = what it does + when to use it (users' words) + when not to.
  • Front-load the key job; descriptions get shortened.
  • Test with ten real prompts in fresh sessions, five that should trigger and five that shouldn't.
  • Add a one-line pointer in AGENTS.md; invoke by name when it must run.

Next step

Pairing rules and skills: how the two halves of a preset work together.