Skip to content
Back to skills

Write a Skill

ASecurity

**Use when:** authoring a new skill for `playbooks/skills/` — when a recurring task keeps getting re-improvised and deserves a written method.

  • 2,255 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added August 30, 2026
ai-agentsrails

Security analysis

A100/100

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

Scanned August 30, 2026

npx -y skills add GammaLabTechnologies/harmonist --skill skills --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write a Skill?

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

Security grade badge for Write a Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gammalabtechnologies-write-a-skill/badge)](https://www.skillsdirectory.com/skills/gammalabtechnologies-write-a-skill)

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 Skill

**Use when:** authoring a new skill for `playbooks/skills/` — when a recurring
task keeps getting re-improvised and deserves a written method.

## Method

1. **Find the trigger.** Name the recurring task and the *one line* that
   describes when an agent should reach for this skill. If you can't state the
   trigger crisply, the skill is too broad — split it.
2. **Draft the shape.** Skills here are plain markdown (no agent frontmatter):
   ```
   # <Skill name>
   **Use when:** <one-line trigger>
   ## Method      (numbered, concrete steps)
   ## Output      (what the agent must return)
   ## Guardrails  (limits, failure modes, when NOT to use it)
   ```
3. **Keep it tight.** Aim for under ~100 lines. If it grows past that or mixes
   distinct domains, move depth into a sibling `REFERENCE.md` and link to it
   (progressive disclosure — the agent loads detail only when needed).
4. **Write for an agent, not a human reader.** Be imperative and concrete.
   Prefer checklists and exact commands over prose. No time-sensitive facts.
5. **Decide on scripts.** If the skill needs a deterministic operation
   (validation, formatting, parsing), ship a small stdlib script next to it
   rather than describing code the agent must regenerate each time.
6. **Register it.** Add a row to `playbooks/skills/README.md` and, if a
   specific agent should own it, mention it in that agent's body.

## Output

- the new `playbooks/skills/<slug>.md` following the shape above
- a README table row (slug + the one-line "use when")
- (optional) a sibling `REFERENCE.md` / script if the method needs it

## Guardrails

- The trigger line is the most important sentence — it's how the orchestrator
  decides to load the skill. Make it specific (keywords, context), not "helps
  with X".
- One skill = one job. Resist bundling.
- Skills are content (not agents): not linted, indexed, or in the supply-chain
  manifest. Keep them self-contained and dependency-free.

Files in this skill

  • README.md2 KB
  • authorized-web-pentest.md1.9 KB
  • brainstorming.md1.7 KB
  • dependency-vulnerability-remediation.md1.7 KB
  • incident-response.md1.8 KB
  • secure-code-review.md1.8 KB
  • security-privacy-hardening-checklist.md2.1 KB
  • to-prd.md1.6 KB
  • write-a-skill.md1.9 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.