Skip to content
Back to skills

Guides

ASecurity

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. ---

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 27, 2026
ai-agentspythongobashrailstestingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill guides --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Guides?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Guides
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-guides/badge)](https://www.skillsdirectory.com/skills/nafiz530-guides)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# ✍️ 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)

Files in this skill

  • README.md2.2 KB
  • add-skill-in-chatgpt.md2.6 KB
  • add-skill-in-claude.md2.7 KB
  • add-skill-in-gemini.md2 KB
  • write-a-great-skill.md4.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.