# 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.

AI and LLM interview question Q188, Agents and tool use. Intermediate, occasional (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/what-are-reusable-agent-skills

## Say it in 30 seconds

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.

## Say it in 2 minutes

Think of a skill as the handbook a new claims handler gets on their first day. It tells them how this team checks a motor claim, which documents matter, and when to hand over to a senior. An agent can use a skill the same way. The skill is a folder, with a main file called SKILL.md and, if needed, scripts and reference notes.

The key point is when the agent reads it. At startup it sees only each skill's name and description, a few lines per skill. When a new claim matches a description, it opens the full steps. It opens the rate table only if the steps point to it. A script runs as code, so its checks give the same answer every time, and only its short output goes back to the agent.

Reuse is the point. You write the skill once, and any app or agent with access can load it. Anthropic says the same skill format works in its apps, in Claude Code and in its API, and it has published the format as an open standard. Still, install skills only from sources you trust. A malicious skill can tell the agent to call tools or run code in ways its stated purpose does not cover.

The common failure is a vague description. If the description does not say when to use the skill, the agent may never open it. So test the skill with real requests, and check that it fires on the right ones.

## 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.

- **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.

*Diagram, How an agent loads a skill, in three levels: 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. A new claim matches the skill's description, so the agent opens SKILL.md.
2. The steps call for a check, so the agent runs the script.
3. The steps also point to the excess table, so the agent opens that file.
4. The script's pass or fail goes on to the claim check.
5. The excess from the table goes into the claim check.

1. **Start: read the list:** The agent sees the name and one-line description of each installed skill.
2. **Match: open the steps:** When a task fits a description, the agent reads SKILL.md in full.
3. **Go deeper only if needed:** Reference files open only when the steps point to them.
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:

```text
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." Better: A 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." Better: Keep SKILL.md short, and move the detail to reference files that load only when the steps need them.
- Trap: "Installing a skill is harmless." Better: A 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?

A. description: Motor claims.
B. description: Helps with claims and things.
C. description: Check and route motor insurance claims. Use when a motor claim arrives by email.
D. description: Our team's favourite skill.

**Answer:** C. It says what the skill does and when to use it, which is the test the agent uses to match a task. The others name a topic or say nothing useful.

**Quick check:** Three apps need the same motor-claim steps. What is the reusable choice?

A. Paste the steps into each app's prompt
B. One skill folder that every app loads
C. Ask each team to remember the steps
D. Hard-code the steps in each app's source

**Answer:** B. One skill folder is written once and loaded by every agent with access. Pasted copies go out of step when the rules change.

## Can you answer these from memory?

**Flash cards**

- **What is a skill?** A folder of instructions, scripts and notes that an agent loads for one kind of job.
- **What does the agent see at startup?** Only each skill's name and description, a few lines per skill.
- **What is SKILL.md?** The main file: a short header, then the steps and rules for the job.
- **What is progressive disclosure?** Loading detail in levels, only when the task needs it, so the context stays small.
- **What makes a skill fire?** Its description. It must say what the skill does and when to use it.
- **Is a skill safe by default?** No. Install trusted skills only, and read their scripts before you use them.

## Likely follow-up questions

- Q186 What is tool-result poisoning? https://designervenkat.online/interview/ai/what-is-tool-result-poisoning
- Q179 Excessive agency and least privilege? https://designervenkat.online/interview/ai/excessive-agency-and-least-privilege
- Q184 How do you manage agent state? https://designervenkat.online/interview/ai/how-do-you-manage-agent-state
- Q183 When should you use or avoid agent frameworks? https://designervenkat.online/interview/ai/when-should-you-use-or-avoid-agent-frameworks
- Q181 How do you evaluate agents? https://designervenkat.online/interview/ai/how-to-evaluate-ai-agents
- Q201 What is prompt injection? https://designervenkat.online/interview/ai/what-is-prompt-injection
