The difference between a skill that works once and a skill people reuse is not talent — it is structure. This guide shows the structure, then a good and a bad example, then the testing checklist we run before accepting any skill. ---
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Guides?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nafiz530-guides)
# ✍️ Write a great skill
The difference between a skill that works once and a skill people reuse is not talent — it is structure. This guide shows the structure, then a good and a bad example, then the testing checklist we run before accepting any skill.
---
## The anatomy of a great `SKILL.md`
Every skill in this repo follows the same skeleton (see [the template](../templates/SKILL_TEMPLATE/SKILL.md)):
| Section | What it does | The failure it prevents |
|---------|--------------|------------------------|
| `front matter` (`name`, `description`) | Identifies the skill and says when to use it | The skill triggering at the wrong moment |
| **Role** | One sentence: who the AI is and its one job | Scope creep — "a helper that also..." |
| **Input** | What the user provides, and the defaults | The AI inventing its own inputs |
| **If the input is unclear** | What to ask for, what to assume | Silent guessing; the #1 cause of bad output |
| **Steps** | 3-6 numbered steps in the order of thinking | Skipped reasoning and muddled output |
| **Output format** | Exact headings/shape of the answer | Unreadable, inconsistent results |
| **Example** | One input and the shape of the output | The AI misunderstanding the task |
| **Rules** | The guardrails: honesty, length, safety | Confident nonsense |
## Good vs bad, side by side
### ❌ Bad: vague, unguarded
```markdown
# Email Helper
You are a helpful assistant. Write great emails for the user.
## Instructions
- Be polite and professional.
- Make the email good.
- If needed, ask questions.
```
Why it fails: no input contract (what does the user paste?), no output shape, no rules against inventing facts, no example, and "make the email good" is not an instruction — it is a wish.
### ✅ Good: specific, guarded (excerpt of the real [Email Writer](../skills/writing/email-writer/SKILL.md))
```markdown
---
name: email-writer
description: Turns a few rough notes into a clear, polite email with a
subject line and one ask. Use when the user has something to say by email.
---
## Input
The user will give rough notes or bullet points, plus (if known) who the
email is for, the goal, and the tone.
## If the input is unclear
- If you cannot tell who the reader is, ask one question: "Who is this
going to, and what do you want them to do?"
## Steps
1. Find the one thing this email must achieve. That becomes the ask at the end.
2. Open with one line of context, never with filler.
...
## Rules
- Use only facts the user gave; do not invent dates, names, or excuses.
- Keep it under 150 words unless the user asks for more.
```
Why it works: a one-job description, an input contract, one question when lost, steps in order, and rules that forbid the worst failure (invented facts).
## The five rules of thumb
1. **One job.** If you cannot say what it does in one sentence, it is two skills.
2. **Write the output format before the steps.** Knowing the destination makes the steps obvious.
3. **Every rule is a scar.** Add rules for failures you have actually seen: "do not invent numbers", "keep names exactly as given".
4. **Assumptions are declared, never silent.** "Default: 5 hours per week, stated in the answer."
5. **The example is the contract.** It shows the AI — and every reader — exactly what "right" looks like.
## Testing checklist (run before submitting)
- [ ] Tested on **3 different inputs**: one normal, one edge case, one hostile/thin input
- [ ] The real input and real output are pasted into the README's Example section
- [ ] Front matter `name` matches the folder name, and the `description` says *when* to use it
- [ ] The README contains the skill's own raw link (the validator enforces this)
- [ ] No private data, API keys, or copyrighted text in the skill
- [ ] It fails gracefully: with an unclear input it asks one question instead of guessing
- [ ] `python scripts/validate_skills.py` and `python scripts/build_index.py` both pass
- [ ] It still does only one job
## Ship it
When all boxes tick, follow [CONTRIBUTING.md](../CONTRIBUTING.md) — or start in seconds with:
```bash
python scripts/new_skill.py writing my-new-skill --level Intermediate
```
---
[⬅️ All guides](README.md) · [🏠 SkillShelf Labs](../README.md) · [🤝 Contribute](../CONTRIBUTING.md)