A skill is not a prompt collection. It makes an agent follow a fixed process in a specific situation. Here is how to write one that actually triggers.

1. Decide whether it is worth writing

SituationAdvice
the same steps repeat three or more timesworth writing
a fixed output format is requiredworth writing
a one-off answerjust ask directly
needs an external systemlook at MCP first

2. Minimal SKILL.md structure

---
name: your-skill-name
description: "Use when ...; produces ...; do NOT use for ..."
---

# Your Skill

## When to use
## Inputs
## Steps
1. ...
## Output format
## Boundaries

Four parts are mandatory: when to use, what input, which steps, what output.

3. The description decides triggering

It is the only part the agent reads first.

IncludeAvoid
concrete trigger situations“helps you with writing”
the deliverable“powerful” / “advanced”
explicit boundarieslong paragraphs repeating the body

A workable template:

Use when the user asks for <specific task>, especially when <condition>.
Produces <deliverable>. Do NOT use for <adjacent task>.

4. Test triggering

Three checks after writing:

  1. phrase it three ways a real user would — does it trigger;
  2. phrase one adjacent task — does it misfire;
  3. run it once — is the output in the promised format.

5. Iterate

SymptomFix
never triggersdescription too vague; add situation words
triggers too oftenadd a “do not use for” clause
unstable outputfiner steps and an output template
steps skippedturn key steps into checklists

6. Do you need evals

Not for personal use. For a team or a public release, run five to ten examples and record trigger rate and pass rate.

7. Existing tools

ToolUse
skill-creatorofficial authoring and evaluation (index only)
How to write a skillfiner writing advice
SKILL.md formatfield reference

Related: install guide · skills library · Best Claude skills