Dev tools

What Are Agent Skills? Skills vs MCP Explained

Agent skills are folders of instructions and scripts AI agents load on demand. How SKILL.md works, agent skills vs MCP and AGENTS.md, and how to write one.

By OmniAI Editorial · Nov 20, 2026 · 11 min read

Agent skills are folders of instructions, scripts and reference files that AI agents load only when a task needs them. Each skill has a SKILL.md file with a name, a short description and step-by-step guidance; the agent keeps just the description in mind and reads the rest when it's relevant. Anthropic created the format for Claude, then released it as an open standard, and it's now read by many agents, including Claude Code, ChatGPT and Codex, GitHub Copilot, Cursor and Gemini CLI.

This guide explains what agent skills are, how they work, the SKILL.md format, agent skills vs MCP, AGENTS.md and subagents, how to use agent skills in Claude Code, some Claude skills examples, how to write a good one, and how to stay safe.

What Are Agent Skills?

A skill packages "how we do this here" knowledge so an agent can reuse it. Think of it as an onboarding guide for one task: how to build our weekly report, how to review a pull request the way our team does, how to fill in this PDF form, how to deploy to staging.

The open standard at agentskills.io describes skills as "a lightweight, open format for extending AI agent capabilities with specialized knowledge and workflows". A skill is just a folder:

weekly-report/
├── SKILL.md          # Required: metadata + instructions
├── scripts/          # Optional: code the agent can run
├── references/       # Optional: extra docs loaded when needed
└── assets/           # Optional: templates, images, data files

Because skills are plain files, you can keep them in Git, review changes in pull requests and share them across a team.

How Agent Skills Work: Progressive Disclosure

The key design idea is progressive disclosure, loading information in stages so an agent can have many skills available without filling its context window:

  1. Discovery: at startup, the agent loads only each skill's name and description, roughly 100 tokens per skill.
  2. Activation: when your request matches a skill's description, the agent reads the full SKILL.md instructions. The spec recommends keeping these under 5,000 tokens and the file under 500 lines.
  3. Execution: the agent follows the instructions and loads referenced files or runs bundled scripts only when needed. Scripts are executed, not read, so their code doesn't take up context.

This is why the description matters so much: it's the only thing the agent sees until it decides to use the skill. Our guide to the context window explains why that space is precious.

Three grey bars stacked vertically and growing taller from top to bottom, the top bar with one short ink line, the middle bar with three ink lines, the bottom bar holding four small light document sheets, with an orange arrow pointing down beside them.
Agents load only skill descriptions first, then full instructions, then extra files when a task needs them.

The SKILL.md Format

A SKILL.md file has YAML frontmatter followed by Markdown instructions:

---
name: weekly-report
description: Builds the Monday sales report from the CRM export. Use when the user asks for the weekly report, sales summary or pipeline update.
---

# Weekly sales report

1. Run `scripts/fetch_export.py` to download last week's CRM export.
2. Calculate new pipeline, closed-won revenue and win rate by region.
3. Fill in `assets/report-template.md` with the results.
4. Flag any region whose win rate dropped more than 5 points.

The standard's rules for the two required fields:

  • `name`: up to 64 characters, lowercase letters, numbers and hyphens only, matching the folder name.
  • `description`: up to 1,024 characters, saying what the skill does and when to use it, with the words users are likely to say.

Optional fields include license, compatibility (environment needs, such as "Requires git and docker"), metadata, and an experimental allowed-tools list of pre-approved tools.

Agent Skills vs MCP

Agent skills vs MCP is the most common question. People often frame it as skills vs MCP server, as if you must pick one, but they solve different problems and work well together:

Agent skillsMCP servers
What it isFolder of instructions, scripts and filesA running server that exposes tools and data over a protocol
Gives the agentKnow-how: procedures, conventions, domain knowledgeAbilities: live data and actions in external systems
Runs asFiles read by the agent (scripts run locally)A separate process or remote service
Context costSmall until used (description only)Tool definitions often loaded up front
Best for"How we do X" workflows, templates, checklistsQuerying a database, calling an API, controlling a browser

A simple rule: if the agent needs to reach something outside (a live system, an account, real-time data), use an MCP server. If it needs to know how to do something your way, write a skill. They combine naturally: a skill can tell the agent which MCP tools to call, in what order, and how to present the result. Our explainer on the Model Context Protocol covers the MCP side.

Agent Skills vs AGENTS.md, Subagents and Slash Commands

  • Agent skills vs AGENTS.md: files like AGENTS.md and CLAUDE.md are loaded into every session, so they suit short, always-true facts: build commands, code style, project layout. Skills load only when needed, so they suit longer procedures. Claude Code's docs suggest turning a section of CLAUDE.md into a skill when it has "grown into a procedure rather than a fact". See our guide to AGENTS.md.
  • Skills vs subagents: a subagent is a separate agent with its own context window that takes on a delegated task. A skill is knowledge the current agent loads. In Claude Code you can combine them: a skill can run in a forked subagent, and a subagent can preload skills.
  • Skills vs slash commands: in Claude Code, custom slash commands have merged into skills; any skill can be invoked directly as /skill-name.
  • Skills vs system prompts: a system prompt is always on; a skill is on-demand expertise. Keep the system prompt for identity and rules, and skills for task playbooks.

Agent Skills vs Tools and Plugins

Two more terms get mixed up with skills:

  • Tools are individual functions an agent can call, such as "search the web", "run a shell command" or "create a ticket". They come built into the agent, from MCP servers, or from your own code through function calling. A skill doesn't add new tools; it teaches the agent when and how to use the tools it already has, and can bundle scripts that the agent runs with its existing ability to execute code.
  • Plugins are bundles. In Claude Code, for example, a plugin can package several skills together with subagents, hooks and MCP server configurations, so a team can install a whole workflow in one step. Other agents use their own plugin or extension formats.

So a useful mental model is: tools are the agent's hands, MCP servers connect those hands to outside systems, skills are the playbooks, and plugins are how you ship a set of them together.

Where Agent Skills Work

Because the format is an open standard, the same skill folder can work in several products. The agentskills.io client showcase lists support in Claude Code and the Claude apps, ChatGPT and Codex, GitHub Copilot and VS Code, Cursor, Gemini CLI, Goose, OpenCode, Junie and others. The details differ:

  • Folder locations vary by tool, so you may need to copy or link a skill into each tool's skills directory.
  • Optional fields such as allowed-tools are experimental in the standard, and not every agent honours them.
  • Script support depends on whether the agent can run code in your environment.

For portable skills, stick to the required fields, keep scripts self-contained with clear dependencies, and note any special requirements in the compatibility field.

Agent Skills in Claude Code

Agent skills in Claude Code live in a few places:

LocationPathAvailable in
Personal~/.claude/skills/<skill-name>/SKILL.mdAll your projects on that machine
Project.claude/skills/<skill-name>/SKILL.mdThat repository; commit it to share with your team
Plugin<plugin>/skills/<skill-name>/SKILL.mdWherever the plugin is enabled

Claude decides to use a skill when your request matches its description, or you can call it yourself with /skill-name. Useful settings in the frontmatter include disable-model-invocation: true, so a skill with side effects (like /deploy) only runs when you ask, and allowed-tools, which pre-approves specific commands while that skill is active.

Other tools use their own folders but the same SKILL.md format, so a well-written skill is portable across agents that support the standard. Check each tool's docs for its skills directory.

Claude Skills Examples

Here are Claude skills examples that show the range of what teams build:

  • Document skills: Anthropic publishes skills for creating and editing Word, Excel, PowerPoint and PDF files, which Claude uses when you ask for those formats.
  • Code review checklist: your team's review rules, common bugs to look for and how to format comments.
  • Release notes: read merged pull requests since the last tag and write release notes in your house style.
  • Brand guidelines: colours, tone of voice, logo rules and templates for marketing content.
  • Data analysis playbook: where the data lives, which metrics definitions to use, and a script to produce standard charts.
  • Incident response: the steps, contacts and log queries for a production issue.

The best skills capture something a smart newcomer wouldn't know: your conventions, your tools and the mistakes your team has already learned to avoid.

On the left a grey folder with a light document sheet, on the right a grey server box with ink slot lines and dots, joined by an ink line through an orange plug.
Skills carry the know-how; MCP servers connect the agent to live systems. Many workflows use both.

How to Write a Good Agent Skill

  1. Start from a real, repeated task. If you've explained the same procedure to an agent three times, it's a skill.
  2. Write a specific description. Say what it does and when to use it, using the words people type: "Use when the user asks for the weekly report or sales summary." Vague descriptions ("Helps with reports") never trigger.
  3. Give steps, not essays. Numbered instructions, with examples of inputs and outputs and the common edge cases.
  4. Move bulk into reference files. Keep SKILL.md short and point to references/ for detailed docs, one level deep.
  5. Script the deterministic parts. Calculations, file conversions and API calls are more reliable as scripts the agent runs than as instructions it follows.
  6. Test it: ask for the task in several different phrasings and check that the skill triggers and produces the right result.
  7. Version it in Git and review changes like code.

Agent Skills Security

Skills are instructions plus code, so treat third-party skills like any software you install:

  • Read before installing. Check the SKILL.md, every script and the allowed-tools list. A malicious skill could tell the agent to send data somewhere or run harmful commands.
  • Be careful with skills in cloned repositories. Claude Code's docs warn that a project skill's allowed-tools can apply even in folders you haven't marked as trusted, so review a repo's skills before running an agent there.
  • Prefer trusted sources and pin versions of shared skills.
  • Keep secrets out of skills. Use environment variables or a secrets manager, not keys written into instructions.
  • Limit permissions: pre-approve only the specific commands a skill needs.

FAQ

What are agent skills in AI?

Agent skills are packaged instructions, scripts and resources in a folder with a SKILL.md file. An AI agent loads a skill's full content only when a task matches its description, giving it specialised know-how without filling its context window.

Are agent skills the same as MCP?

No. MCP connects an agent to external tools and data through running servers. Skills teach the agent how to do a task, using instructions and optional scripts. They complement each other, and a skill can tell an agent how to use MCP tools.

Who created agent skills?

Anthropic developed the format for Claude and released it as an open standard, now documented at agentskills.io. It has been adopted by many agent products, including ChatGPT and Codex, GitHub Copilot, VS Code, Cursor and Gemini CLI.

Where do I put skills in Claude Code?

Personal skills go in ~/.claude/skills/<skill-name>/SKILL.md and project skills in .claude/skills/<skill-name>/SKILL.md inside your repository. Plugins can also bundle skills.

How many skills can an agent have?

Many, because only each skill's name and description are loaded up front. Still, overlapping or vague descriptions make it harder for the agent to pick the right one, so keep each skill focused and clearly described.

All articles

Read next

Language

EnglishEnglish · en TürkçeTurkish · tr DeutschGerman · de العربيةArabic · ar

Account

Enter your email. We’ll send you a sign-in link and a 6-digit code. No password needed.

Sign in

Theme

Language

Show our email address

To keep spam out of our inbox, please confirm your own email first. We will send you a 6-digit code.

We send codes only to these providers: gmail.com, googlemail.com, outlook.com, hotmail.com, live.com, msn.com, proton.me, protonmail.com, pm.me, icloud.com, me.com, mac.com, yahoo.com, aol.com, gmx.de, gmx.net, web.de, t-online.de, yandex.com, omniai.blog