← Agentic coding The wiring · Capability

Skills

A skill is a folder of instructions the agent loads only when it's relevant — capability on demand, paid for only when used.

01

What a skill is

A skill is a SKILL.md file with YAML frontmatter — a name and description — plus the actual instructions, optionally bundling scripts and reference files alongside it. It's model-invoked: Claude always sees the short description, and pulls in the full body only when the task matches. Nothing loads that isn't needed.

The format is a portable folder — the same skill runs in Claude Code, Codex, Cursor and around 35 other tools via the open standard at agentskills.io. Two things worth distinguishing: slash commands have been absorbed into skills (they're the same mechanism now); subagents are separate context windows, whereas a skill is injected directly into the current one.

02

Progressive disclosure

The key design insight is three tiers of context cost, each loaded only when justified. The gate between level one and two is the model's own judgment about relevance.

Level 1
metadata name + description
always loaded ~100 tokens · every skill
match?
Level 2
SKILL.md body full instructions
loaded on match <5 k tokens
Level 3
bundled files / scripts output enters context
loaded on demand effectively unlimited · scripts run via bash

You pay ~100 tokens to know about a skill. You pay for the body only when you use it.

03

What's in the folder

The directory layout is intentionally minimal. A single required file, optional extras:

pdf-skill/
pdf-skill/
  SKILL.md          # required — frontmatter + instructions
  REFERENCE.md      # optional reference doc (loaded on demand)
  scripts/
    fill_form.py    # optional — runs via bash, output enters context
SKILL.md frontmatter
---
name: fill-pdf-form
description: Fill and export PDF forms using the bundled script.
---

# instructions follow here...
04

Where to get them

The ecosystem is young but already has a useful spread from official to community-curated:

05

How I actually use it

My take

I treat skills as the agent's muscle memory. Any procedure I'd otherwise paste into the conversation every single time — a review checklist, a planning ritual, a build-fix loop — becomes a skill that loads itself at the right moment, costing nothing until then. The cognitive shift is from "what do I need to tell it right now?" to "what would I want it to always know how to do?" Build that library once and every future session inherits it.

06

Sources