How to write an Agent Skill that works in Claude Code and beyond
By VCA Newsroom
Agent Skills are the simplest way to teach an AI coding agent a repeatable procedure, such as how your team writes changelog entries, runs a release, or reviews a migration. A skill is just a folder with a SKILL.md file in it. Now that Anthropic has donated the standard to the Linux Foundation's Agentic AI Foundation, and with more than 70 platforms supporting it according to Anthropic, it's worth learning to write skills that are portable as well as functional.
This guide walks through building one skill end to end, using the official Agent Skills specification plus the Claude Code skills docs.
Step 1: Create the folder in the right place
A skill is a directory whose name matches the skill's name, containing at least a SKILL.md:
changelog-entry/
├── SKILL.md # required: metadata + instructions
├── scripts/ # optional: executable code
├── references/ # optional: extra docs the agent reads on demand
└── assets/ # optional: templates, schemas, data files
In Claude Code, put it in one of two places:
- Project skill:
.claude/skills/changelog-entry/SKILL.md. Commit it and your whole team gets it. - Personal skill:
~/.claude/skills/changelog-entry/SKILL.md, available in all your projects on that machine.
Step 2: Get the name right
The spec is strict about name:
- 1–64 characters
- lowercase letters, numbers and hyphens only
- no leading or trailing hyphen, and no double hyphens (
--) - must match the parent directory name
So changelog-entry is valid, while Changelog-Entry, -changelog and changelog--entry are not. Claude Code is forgiving here, because name defaults to the directory name if you leave it out. Other tools may not be, so set it explicitly and keep it identical to the folder.
Step 3: Write a description that triggers
The description field is the most important line in the file. Agents load only the name and description of every skill at startup, roughly 100 tokens each per the spec. They decide whether to activate a skill based on that text alone. The spec allows up to 1,024 characters and asks you to say both what the skill does and when to use it, with concrete keywords.
Compare:
# Poor: too vague to match anything
description: Helps with changelogs.
# Good: says what it does, when to use it, and includes trigger words
description: Writes a CHANGELOG.md entry for the current change in Keep a Changelog format, dated YYYY-MM-DD with the commit SHA. Use when the user asks to log, record or document a change, release or fix.
Step 4: Write the instructions
Here's a complete minimal skill:
---
name: changelog-entry
description: Writes a CHANGELOG.md entry for the current change in Keep a Changelog format, dated YYYY-MM-DD with the commit SHA. Use when the user asks to log, record or document a change, release or fix.
---
# Changelog entry
1. Read the staged diff (`git diff --staged`) to understand the change.
2. Open CHANGELOG.md. Create it with a `# Changelog` heading if it is missing.
3. Add the entry under today's date (YYYY-MM-DD) in one of these sections:
Added, Changed, Fixed, Removed.
4. Write one line per change: what changed and why, not how.
5. Append the short commit SHA in parentheses once the commit exists.
## Example
- Fixed: checkout total ignored discount codes on renewals (a1b2c3d)
## Edge cases
- Docs-only change: use "Changed" and say "docs".
- Several unrelated changes: write one line per change, never one merged line.
The body has no format rules. The spec recommends step-by-step instructions, an input/output example and edge cases, and that's the shape above.
Step 5: Use progressive disclosure for anything long
Agents load skills in three tiers, according to the spec:
- Metadata (name and description) loads at startup for all skills.
- Instructions (the full
SKILL.mdbody) load when the skill activates. Keep them under about 5,000 tokens and under 500 lines. - Resources (
scripts/,references/,assets/) load only when the task needs them.
If your style guide runs to many pages, don't paste it into SKILL.md. Move it to references/STYLE.md and link to it with a relative path: See [the style guide](references/STYLE.md). Keep references one level deep, because nested chains of files that point to other files are harder for agents to follow.
Step 6: Decide how portable it should be
The spec defines a small core: name and description are required, while license, compatibility, metadata and an experimental allowed-tools are optional. Claude Code adds its own extensions on top. Some useful ones:
disable-model-invocation: true: only you can run it (via/changelog-entry), and Claude won't auto-load it. This is a good fit for anything with side effects, like deploys.argument-hintand$ARGUMENTS: pass arguments, as in/deploy staging.paths: limit automatic activation to matching files.
Claude Code silently ignores fields it doesn't recognize, but other agents aren't guaranteed to honor Claude-specific fields. Rule of thumb: put the essential behavior in the body text, and treat extension fields as nice-to-haves. If a skill needs specific tools or packages, say so in compatibility, for example Requires git and jq.
Step 7: Validate and test
The spec ships a reference validator:
skills-ref validate ./changelog-entry
It checks the frontmatter and naming rules. Then test triggering for real. In Claude Code, ask in plain language, such as "log this fix in the changelog", and confirm the skill loads without you naming it. If it doesn't trigger, the fix is almost always the description, so add the words your users actually say. You can also run it directly with /changelog-entry.
A note on trust
Skills can bundle scripts, so installing someone else's skill means your agent may run their code. Read SKILL.md and everything in scripts/ before you add a third-party skill. Security guidance for skill authors and users is one of the first priorities proposed for the standard under its new governance.
Write one skill this week for a task you explain to your agent over and over. It's the fastest way to see your instructions start to compound.
Sources
Auto-generated by Vibe Coding Academy on October 25, 2026, grounded in the real sources linked above. We review for accuracy, but please verify time-sensitive details against the primary sources.
SECOND OPINION · BY VIBE CODING ACADEMY
Your agent says it’s done. What needs checking?
Paste your coding-agent conversation for supported claims, visible problems, and useful next steps. Reviews only the material you provide; no account needed to start.
Review a session