Agent Skills in 2026: How to Build, Test, and Reuse Skills for Coding Agents

Every team using a coding agent has the same quiet problem: the agent is capable, but it does not know how your team works. You retype the same instructions — how errors are handled, how tests are named, what a finished pull request looks like — and still get a slightly different result each session. Agent skills are the fix that stuck in 2026: package that know-how once, as a folder any compatible agent can load, and stop repeating yourself.
01 / What an agent skill actually is
A skill is a folder whose entry point is a file named SKILL.md. The file carries a small block of metadata and a set of Markdown instructions for one kind of task; the folder can also bundle scripts, reference documents, and templates the instructions point to. When a task matches, the agent loads the skill and follows it. When nothing matches, the skill costs almost nothing — which is the whole design, covered in section 03.
It helps to place skills next to two ideas readers of this site already know. MCP gives an agent reach: tools and data it can act on. A skill gives it judgment: the procedure, conventions, and checks to apply while acting. And where agent memory stores what happened in past sessions, a skill is deliberate and versioned — written by a person, reviewed like code, and identical for everyone who installs it.
The format is an open standard, released by Anthropic in December 2025 and since adopted by dozens of agents — Claude Code, the Copilot family, and many others read the same SKILL.md shape. That portability is why skills beat pasting instructions into one tool’s settings file: write the skill once, and it follows you across agents.
02 / Anatomy of a SKILL.md
A skill has exactly two required parts: YAML frontmatter and a Markdown body. Only two frontmatter fields are required, but one of them does almost all the work.
| Field | Required | Rules that matter |
|---|---|---|
name | Yes | Max 64 characters; lowercase letters, numbers, and hyphens; must match the folder name |
description | Yes | Max 1,024 characters; states what the skill does and when to use it — this is the trigger |
license, compatibility, metadata | No | Licence name, environment requirements, and free-form extras such as author and version |
The description is the trigger mechanism: the agent decides whether to load your skill by matching the current task against that one field. Write it like a routing rule, not a summary — name the situations, file types, or phrases that should activate the skill. Here is a complete, minimal skill a backend team might actually use:
---
name: api-error-handling
description: Apply the team's API error-handling pattern. Use when adding or
changing HTTP endpoints, handlers, or client calls that can fail.
---
# API error handling
## Rules
1. Never return a raw exception to the client. Map errors to the shared
`ApiError` type in `src/errors.ts`.
2. Log once, at the boundary, with the request id. Do not log and rethrow.
3. Add one test per new error branch: timeout, 4xx passthrough, malformed body.
## Before you finish
- Run `npm test -- errors` and show the result.
- If an endpoint cannot use `ApiError`, say why in the PR description.

Notice what the example does not contain: no personality, no general advice about programming, nothing the model already knows. Every line is a team-specific decision the agent could not guess. That ratio — your conventions per line — is what makes a skill worth loading.
03 / Progressive disclosure: why skills stay cheap
Skeptics ask the right question: if you install thirty skills, does the agent drown in instructions? No, because skills load in three stages, and only the first is always paid.
| Stage | What loads | When | Typical cost |
|---|---|---|---|
| 1. Catalog | Each skill’s name and description | Every session start | Roughly 50–100 tokens per skill |
| 2. Instructions | The full SKILL.md body | When a task matches the description | Keep under ~5,000 tokens |
| 3. Resources | Files under scripts/, references/, assets/ | Only when the instructions reference them | Varies — pay per use |
Twenty installed skills therefore cost twenty short catalog lines, not twenty manuals. The practical consequence: put the detail in stage 3. A long style guide, a schema, or a checklist belongs in references/, named clearly, so the body can stay short and point at it. If your SKILL.md body grows past a few hundred lines, it is usually two skills wearing one coat.
04 / Build your first skill, step by step
Step 1 — Pick a task you have corrected three times. Repetition is the signal. A task you explained once is a prompt; a task you keep re-explaining — changelog entries, migration files, review checklists — is a skill waiting to be written.
Step 2 — Write the description before the body. Draft the trigger first: what the skill does, and the concrete situations that should activate it. If you cannot state the “when” crisply, the agent will not route to it reliably either.
Step 3 — Write rules, not essays. Numbered, checkable instructions beat prose. Prefer “run this command and show the output” over “make sure it works”. Anything deterministic — formatting, scaffolding, renaming — belongs in a script under scripts/ that the instructions call, because a script does the same thing every time and a paragraph does not.
Step 4 — Give it an exit check. End the body with a “before you finish” list, as in the example above. Agents follow closing checklists well, and it gives you something concrete to test in the next section.
Step 5 — Put it where your agent looks. Project skills live in the repository (for Claude Code, .claude/skills/<name>/SKILL.md); personal skills live in your user-level skills folder. Commit project skills to git so the whole team — and every agent they use — gets the same version.
05 / Test a skill like software
A skill is code that happens to be prose, and it fails in two characteristic ways: it fires when it should not, or it sits idle when it should fire. Test both directions before you share a skill with anyone.
- Trigger tests: keep a list of prompts that should activate the skill and prompts that should not — especially near-misses. “Add a retry to this API client” should fire the error-handling skill; “rename this variable” should not.
- Output checks: for each trigger prompt, define what a correct run produces: which files change, which command runs, what the final message reports. Vague skills produce vague variation; specific checks expose it.
- Regression runs: after any edit to the skill, re-run the whole list. Changing one line of a description can reroute three other tasks.
- Fresh-eyes runs: test in a clean session with no prior conversation. A skill that only works after twenty minutes of context is a note to yourself, not a skill.
Keep the test prompts in the skill’s repository, next to the skill itself. When a teammate reports “the agent ignored the skill”, your first move is to find which test case their prompt resembles — and add it.
06 / Reuse: install once, run anywhere
Because the format is shared, skills have grown an ecosystem rather than a pile of incompatible config files. The Vercel skills CLI installs a skill across compatible agents in one command:
npx skills add addyosmani/agent-skillsThat command fetches Addy Osmani’s agent-skills pack — 24 skills covering common engineering workflows, usable across 70+ agents. Individual collections travel just as well: Matt Pocock’s skills repository is among the most-starred in the category. And the directory at skills.sh shows what the community actually installs: as of early November 2026, the most-installed skills included TDD and Improve Codebase Architecture, at roughly 1.2 million installs each, alongside Domain Modeling, Code Review, and To Spec. The pattern in that list is instructive — the winners are not exotic. They encode ordinary senior-engineer habits: test first, model the domain, review before merge.

For a team, the highest-value move is a shared skills repository: your house skills, versioned, installed by everyone, updated in one place. Treat community packs as a starting library to curate from, not a bundle to swallow whole — which leads directly to the limits.
07 / The limits: skills steer, they do not enforce
End with the caution that keeps skills useful. A skill is guidance the model chooses to follow; it is not a compiler, a linter, or a permission system. A skill that says “never commit secrets” does not stop a secret from being committed — a pre-commit hook and CI do. Skills steer behaviour toward your conventions; tests, review, and human judgment still decide what ships.
Two failure modes follow. First, description collisions: install three skills whose descriptions all match “fix this bug” and routing becomes a coin toss — curate for overlap, and uninstall what you do not use. Second, ceremony creep: every installed skill is a small tax on matching tasks, and a pack of forty can make simple work feel like filling in forms. The teams getting the most from skills in 2026 run short, owned lists: each skill has an author, a test list, and a reason to exist. Start with three skills you can defend line by line. That is a library. The rest is inventory.
