Writing a SKILL.md That Your AI Assistant Actually Uses
11/26/2026by AgentsLLM Team
Skills usually fail in one of two ways: the assistant never loads them, or it loads them and gets vague advice. Both problems live in the same file.
How a skill gets picked up
A skill is a folder with SKILL.md as its entry point. The file opens with a YAML header, and the assistant keeps only that header in view until a request looks relevant. So:
- The
descriptiondecides whether the skill is used. - The body decides how well it is used.
A worked example
A complete skill that drafts release notes from git history:
---
name: release-notes
description: Drafts release notes from git commits since the last tag. Use when the user asks for release notes, a changelog entry, or a summary of what shipped.
---
# Release notes
1. Find the latest tag with `git describe --tags --abbrev=0`.
2. List commits since that tag with `git log <tag>..HEAD --oneline`.
3. Group by prefix: feat -> "New", fix -> "Fixed", the rest -> "Other".
4. Rewrite each line for users. Drop chore and refactor commits.
5. Output markdown with one heading per non-empty group.
If there are no tags, ask the user which commit to start from.
The description
Say what the skill does and include the words a user would type. "Helps with documentation" gives the model nothing to match.
The body
- Number the steps when order matters.
- Name exact commands, paths and formats. "Use the test runner" is a guess; "run
npm test" is an instruction. - Cover the failure case in one line.
- Keep it short. Move long references into separate files and point to them.
- One job per skill. If you write "and also", split it.
Test it
Put the folder in ~/.claude/skills/release-notes/ and ask for the task a few ways in a fresh session. Not triggering? Fix the description. Wrong output? Tighten the steps.
Publish it
- Push it to a public GitHub repo with a README and topics like
claude-code. - Run the repo through the free security checker, which checks dependencies and scans instruction files for prompt-injection patterns.
- Sign in with GitHub and add it on the submit page. Listed skills get the regular catalog scan: npm audit, pip-audit and prompt-injection checks.
See also: How to Vet an AI Skill.