skills/write-a-skill/SKILL.md
Create new agent skills with proper structure and progressive disclosure. Use when user wants to create, write, or build a new skill, or asks "make a skill for X".
npx skillsauth add helderberto/skills write-a-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ls the skills repo, read similar skills for conventionsSKILL.mdskill-name/
├── SKILL.md # Required. All instructions live here.
└── scripts/ # Optional. Executable helpers only.
└── scan-secrets.sh
Keep everything in SKILL.md. Only use scripts/ for executable files (.sh, .py) that are called via Bash.
---
name: skill-name
description: One sentence what it does. Use when [triggers]. Don't use when [anti-triggers].
---
# Skill Name
## Workflow
[numbered steps]
## Rules
[hard constraints]
## Error Handling
[if X -- do Y]
| Field | Required | Notes |
|---|---|---|
| name | yes | kebab-case, matches directory |
| description | yes | Agent's only signal for when to load this skill |
The description is the only thing the agent sees when choosing which skill to load.
Use when [triggers]Don't use when [anti-triggers]Good: Groups unstaged changes into atomic commits by concern. Use when user says "atomic commits" or wants to split changes before pushing.
Bad: Helps with commits.
Minimal skill -- pure instructions, fits in ~20 lines:
---
name: grill-me
description: Interview the user relentlessly about a plan. Use when user says "grill me".
---
[instructions...]
Pre-loaded context -- ! prefix auto-runs commands on load:
## Pre-loaded context
- Status: !`git status`
- Diff: !`git diff HEAD`
Avoids wasting a turn fetching context the agent always needs.
"Helps with testing." -- uselesstesting
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
documentation
Compact the current conversation into a handoff doc so a fresh agent can continue the work. Use when user asks to "handoff", "/handoff", "hand this off", or wants to end a session mid-task. Don't use for summarising completed work, writing PRDs/plans/ADRs, or committing changes.
development
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill, or asks "make a skill for X".
development
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.