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
| Situation | Advice |
|---|---|
| the same steps repeat three or more times | worth writing |
| a fixed output format is required | worth writing |
| a one-off answer | just ask directly |
| needs an external system | look 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.
| Include | Avoid |
|---|---|
| concrete trigger situations | “helps you with writing” |
| the deliverable | “powerful” / “advanced” |
| explicit boundaries | long 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:
- phrase it three ways a real user would — does it trigger;
- phrase one adjacent task — does it misfire;
- run it once — is the output in the promised format.
5. Iterate
| Symptom | Fix |
|---|---|
| never triggers | description too vague; add situation words |
| triggers too often | add a “do not use for” clause |
| unstable output | finer steps and an output template |
| steps skipped | turn 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
| Tool | Use |
|---|---|
| skill-creator | official authoring and evaluation (index only) |
| How to write a skill | finer writing advice |
| SKILL.md format | field reference |
Related: install guide · skills library · Best Claude skills