esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
Let’s talk

I’ll build the agent for it.

What Are Reusable Agent Skills?

How skills work, how an agent loads one only when it needs it, and how to write and secure one, for your AI interview.

In short

A reusable agent skill is a folder of instructions, scripts and reference notes that an AI agent loads when a task needs them. You write it once, and every agent with access can follow the same steps for that job.

11 min readIntermediateOccasional · estimateFacts checked 27 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

A reusable agent skill is a folder of instructions, plus any scripts and reference notes, for one kind of job. At the start, the agent only sees each skill's name and a one-line description. When a task matches, it opens the full steps. So you write the know-how once, and many agents can use it. Only install skills from sources you trust, because a skill can make the agent run code.

What is a reusable agent skill, in plain words?

A skill is a folder of know-how for one kind of job. Its main file, SKILL.md, holds the steps, the rules and a few examples. The folder can also hold scripts, which run as code, and reference notes, such as a rate table or a list of contract terms.

Reusable means you write it once, and any agent or app that has access can load it. You don't paste the same long instructions into every chat. The agent finds the skill when it needs it, and reads it then.

Anthropic's engineers compare a skill to an onboarding guide for a new hire. Think of a claims handler on their first day. They get a handbook that says how the team checks a motor claim and when to call a senior. Nobody rewrites that handbook for every claim. A skill plays that role for an AI agent.

Key words

Skill
A folder of instructions, scripts and notes for one kind of job.
SKILL.md
The main file of a skill: a short header, then the steps.
Script
Code inside the skill that runs the same way every time.
Metadata
The name and one-line description the agent always sees.
Context
The text the model can see at one time.

Some agents write skills for themselves. The 2023 Voyager paper describes a research agent that writes its own code skills, with "an ever-growing skill library of executable code for storing and retrieving complex behaviors". The idea is the same: keep reusable code, and recall it later.

How does an agent find and load a skill?

Skills load in levels, so the agent never reads everything at once. Anthropic's engineers call this progressive disclosure, and say it is the core design principle of Agent Skills.

How an agent loads a skill, in three levels

Level 1: always loaded

Name and description

One short line per skill, always

Level 2: when it matches

SKILL.md

The steps and rules for the job

Level 3: only as needed

validate_claim.py

Runs as code; only its output returns

excess-rates.md

Read only if the steps point to it

Claim checked

The result goes to a claims handler

  1. 1A new claim matches the skill's description, so the agent opens SKILL.md.
  2. 2The steps call for a check, so the agent runs the script.
  3. 3The steps also point to the excess table, so the agent opens that file.
  4. 4The script's pass or fail goes on to the claim check.
  5. 5The excess from the table goes into the claim check.
Three levels of detail. The agent always sees the short list, reads the steps only when a task matches, and opens scripts or reference files only when the steps need them. The claim result comes back at the end.
  1. 1

    Start: read the list

    The agent sees the name and one-line description of each installed skill.

  2. 2

    Match: open the steps

    When a task fits a description, the agent reads SKILL.md in full.

  3. 3

    Go deeper only if needed

    Reference files open only when the steps point to them.

  4. 4

    Run scripts, keep the output

    A script runs as code. Only its output goes back to the agent.

Anthropic's docs put the list cost at about 100 tokens per skill, and the steps file at under 5,000 tokens. A token is a small chunk of text. Made-up example: a claims team has 40 skills. The startup list costs about 4,000 tokens. If the agent loaded all 40 full files at once, that could mean up to 200,000 tokens on every claim. With progressive loading, it reads only the one file that matches.

In Claude Code, a project skill sits in a folder called .claude/skills/, and the agent finds it there.

Why write a skill instead of pasting the instructions?

  • Prompt

    One chat

    Instructions typed into one conversation. They are gone when it ends, and you paste them again next time.

  • Skill

    Loaded when it matches

    A folder kept on file. Any agent with access finds it and reads it only when the task needs it.

  • Tool

    One action

    A single function the agent can call, such as reading a claim record. It holds no steps of its own.

  • “Skills load on demand, so you don't have to repeat the same guidance across conversations.”

    Anthropic, Claude docs

  • “Skills use the same format everywhere.”

    Anthropic, launch post

Some work suits code better than text. A script that checks a claim's dates gives the same answer every time. Anthropic's engineers wrote that large language models excel at many tasks, but certain operations are better suited for traditional code execution.

Skills and tools work together. The skill says how to do the job, and a tool does one action in the system.

What goes inside a skill file?

Every skill has a SKILL.md file. It starts with a short header in a simple format called YAML, with two required fields, name and description. The rest of the file is the steps, written for the agent. The made-up check below tests a motor-claim skill's header against Anthropic's documented limits on name and description, plus a house rule that the description says when to use the skill.

Python
# A small pre-launch check on a skill's header: the documented name and length limits, plus a 'Use when' house rule.
import re

SKILL = """---
name: motor-claim-intake
description: Check and route motor insurance claims. Use when a motor claim arrives by email.
---
# Motor claim intake
1. Check the policy number and the loss date."""

def check_header(text):
    head = text.split("---")[1].strip().splitlines()
    fields = dict(line.split(": ", 1) for line in head)
    name, desc = fields["name"], fields["description"]
    name_ok = re.fullmatch(r"[a-z0-9-]{1,64}", name) is not None
    desc_ok = 0 < len(desc) <= 1024 and "Use when" in desc
    print(f"name: {name} ({len(name)} characters) -> {'pass' if name_ok else 'fail'}")
    print(f"description: {len(desc)} characters, has a Use when phrase -> {'pass' if desc_ok else 'fail'}")

check_header(SKILL)
check_header(SKILL.replace("motor-claim-intake", "Motor_Claims"))

Output

name: motor-claim-intake (18 characters) -> pass
description: 80 characters, has a Use when phrase -> pass
name: Motor_Claims (12 characters) -> fail
description: 80 characters, has a Use when phrase -> pass

The name can be up to 64 characters, and it may use only lowercase letters, numbers and hyphens. The description can be up to 1,024 characters. The description matters most: the agent matches your request against it to decide whether to open the skill.

  • “The description is what Claude matches your request against when determining whether to trigger the Skill, so it must say both what the Skill does and when to use it.”

    Anthropic, Claude docs

Tip

A vague description can stop a skill from ever firing. Test it with real requests, and check that the agent opens the skill when it should.

Can a skill be dangerous?

Yes. Skills give the agent new instructions and code, so a bad skill can make the agent call tools or run code in ways its stated purpose does not cover. Anthropic says to treat installing a skill like installing software.

Use only skills you wrote yourself, or ones from a source you trust. Before you use a third-party skill, read every file in it, especially the scripts, and look for network calls that don't fit the job. A skill that fetches outside pages is riskier still, because fetched text can carry its own instructions. That is prompt injection: hidden orders inside text the agent reads.

Skills also need a place to run. Anthropic's docs say they run in a code execution environment where Claude has filesystem access. On the API, they run in a sandbox with no network access, and you must include the code execution tool, whose container the Skills run in.

What does the interviewer want to hear?

A strong answer covers

  • A plain definition: a folder of instructions, scripts and notes, loaded when needed.
  • The three levels: a short list always, the steps on a match, files and scripts as needed.
  • Why it saves context: the agent reads only what the task needs.
  • Skill versus prompt and tool: write once, reuse everywhere; a tool does one action.
  • The description is the trigger: say what the skill does and when to use it.
  • The risk: use trusted skills only, read the scripts, and watch for outside content.

Common traps

  • Trap"A skill is just a saved prompt."

    BetterA prompt lives in one chat. A skill is a folder with steps and maybe code, loaded only when a task matches.

  • Trap"Put every rule in one giant file."

    BetterKeep SKILL.md short, and move the detail to reference files that load only when the steps need them.

  • Trap"Installing a skill is harmless."

    BetterA skill can make the agent run code. Install only trusted skills, and read the scripts first.

Can you spot the weak description?

Spot the weak description

Which description lets the agent pick the right skill for a motor claim?

Quick check

Three apps need the same motor-claim steps. What is the reusable choice?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q186What is tool-result poisoning?13 min
  2. Q179Excessive agency and least privilege?11 min
  3. Q184How do you manage agent state?12 min
  4. Q183When should you use or avoid agent frameworks?11 min
  5. Q181How do you evaluate agents?11 min
  6. Q201What is prompt injection?12 min

Last updated on 27 November 2026

Building an agent that has to follow your team's procedures?

I design and build AI agents, including the skills, tools and checks that keep them on the rules. Book a short call and tell me which process you want the agent to follow.