# Writing a good skill

> A description agents can match, steps an agent can follow, checks that prove the work, and what to leave out.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://skills.docs.sypnia.com/publish/writing-a-good-skill/

For agents: Guidance: description names situations and the words people use (agents choose by it); one skill = one kind of work; steps numbered, imperative, with exact commands and expected results; ask the person before decisions, at their level; checks at the end that prove it worked (a command that passes); long material in references/ opened on demand; examples in assets/; instructions only when possible; never ask for secrets in the conversation; say what not to do; write for any agent (no tool names of one agent unless works-with says so); test with skills try (runs a task in Sypnia Agent's sandbox with only this skill) before publishing.

## The description decides when it is used

Agents read the descriptions of every installed skill and open the ones that match the task. A good description names the situations and the words people use.

| Weak          | Strong                                                                                                                                                          |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| «POS helper.» | «Import products and prices from La Espiga's point-of-sale export. Use when the person mentions the till, the nightly export, `ventas.csv` or updating prices.» |

## One skill, one kind of work

A skill that writes design guides and also deploys sites is two skills. Small skills are chosen more accurately and reviewed faster.

## Steps an agent can follow

- **Numbered and in order**, each one a single action.
- **Exact commands and what should happen**: `npx @sypnia/design check` → «no findings».
- **Decisions go to the person**, at their level: two or three options, in plain words for someone who does not program.
- **Say what not to do**: «never change applied migrations», «never invent a colour outside the guide».

## Checks that prove it worked

End with checks the agent runs before saying it is done: a command that passes, a file that exists, a screen that renders. A skill without checks leaves «done» to guesswork.

## Keep `SKILL.md` short

Put long material in `references/` and name, in the steps, which reference to open when. The agent reads a reference only when a step needs it.

## Touch as little as possible

Prefer instructions to scripts. A skill that is **instructions only** is easier to trust, faster to review and runs nothing on anyone's machine.

## Never ask for secrets

A step never asks the person to paste a password, a key or a token into the conversation. It tells them where to put it (an environment file, a secret store) and checks only that it is set.

## Try it before publishing

```bash
npx @sypnia/skills try ./espiga-pos-import "update today's prices from ventas.csv"
```

Runs the task in a Sypnia Agent sandbox with only this skill installed, and shows what the agent did. It spends credits like any agent task.
