# Agent Skills

> The Agent Skills are packaged folders of instructions, scripts and resources that an AI agent loads only when they are relevant.

## What are agent skills and how do they work?

The folders with a 'SKILL.md' file holding a name, a description and instructions, plus optional scripts and templates. The agent sees only descriptions and loads a skill when a task matches, or the user calls it directly. A skill that never triggers usually has a vague description.

- Topic: Agent Customization
- Type: concept

## Example

Wrong:

```text
skills/
  helper/
    SKILL.md  # 2,000 lines: steps, API docs, examples
```

Right:

```text
skills/
  release-notes/
    SKILL.md       # short steps + when to use
    template.md    # loaded when writing notes
    scripts/
      changes.sh   # lists merged PRs
```

A focused skill keeps `SKILL.md` short and moves templates and scripts into files the agent opens only when needed.

## Common mistakes

- Writing a vague description, so the agent never loads the skill.
- Installing a skill from an unknown source without reading its scripts.

## Key points

- Each skill has a 'SKILL.md' whose description says what it does and when to use it, in words users actually type.
- The skill folder contains only what the task needs: instructions, scripts and reference files.
- The skill is tested with several real prompts to confirm that it triggers.
- Scripts in third-party skills are read before the skill is installed.

## Interview questions

### What is the difference between a skill and a slash command?

A slash command runs when you type it. A skill can also load on its own when the agent sees that a task matches its description.

### Why is my agent not using my skill?

Usually the description is too vague. Say what the skill does and when to use it, with the words people actually type in requests.

### Are agent skills safe to install?

Only from sources you trust. Skills can contain scripts that run on your machine, so read them before installing.

## Related cards

- [SKILL.md](https://wonderium.dev/ai/skill-md.md)
- [Progressive Disclosure](https://wonderium.dev/ai/progressive-disclosure.md)
- [Skill Scopes](https://wonderium.dev/ai/skill-scopes.md)
- [Slash Commands](https://wonderium.dev/ai/slash-commands.md)
- [Agent Plugins](https://wonderium.dev/ai/agent-plugins.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/agent-skills
- Last updated: 2026-11-25
