Documentation desk for agent SKILL.md playbooks

What Is an Agent Skill File (SKILL.md)?

What is a SKILL.md file? An agent skill file is a versioned playbook—usually named SKILL.md—that teaches an AI agent how to perform a specific job type: which steps to take, which tools to prefer, what “done” looks like, and which pitfalls to avoid. It is procedural knowledge packaged for agents, not a one-off chat prompt and not a substitute for MCP tools.

Teams adopt skills when the same workflow repeats across sessions and people: drafting release notes, triaging bugs, auditing SEO pages, or scaffolding a service. The model still reasons; the skill narrows the search space so quality is less dependent on whoever typed the latest magic paragraph into the chat box.

Cursor logo
Cursor skills
Anthropic logo
Claude skills
OpenAI logo
Agent playbooks

Anatomy of a useful skill file

Formats vary by product, but durable skills share the same skeleton:

  • Name + description — when the host should load or suggest this skill.
  • Scope — in-scope tasks and explicit out-of-scope edges.
  • Procedure — ordered steps the agent should follow for the job type.
  • Tool preferences — which MCP or native tools to use (and which to avoid).
  • Quality bar — acceptance checks, required citations, tone, file layout.
  • Failure handling — what to do on missing data, denied tools, or ambiguous requirements.
  • Examples — one golden input/output pair beats five abstract rules.

Think of SKILL.md as the runbook an on-call engineer would hand a junior teammate—except the teammate is an AI agent that can call tools at machine speed.

Skills vs prompts vs MCP

ArtifactJobChanges often?Enforces hard limits?
Chat / system promptImmediate instructions for this sessionYesNo—easy to override
SKILL.md / skill fileReusable playbook for a job typeVersioned, reviewedSoft guidance only
MCP server toolsExecutable capabilitiesWhen APIs changeCapability exists or not
Host policyAllow/deny, approvals, identitySecurity-drivenYes—hard gates

A skill might say “fetch the metric dictionary before drafting.” An MCP server is what actually exposes fetch_metric_dictionary. The MCP host and MCP client still enforce whether that call is allowed. Skills without tools are essays; tools without skills are buttons the model mashes in the wrong order.

How Cursor and Claude-style skills work (high level)

Across modern agent hosts, the pattern is similar even when filenames and UI labels differ:

  1. Skills live as files in a project, user, or org library (often SKILL.md plus optional assets).
  2. The host indexes descriptions so the agent can select a relevant skill for the user’s request.
  3. When selected, the skill body is injected into the agent’s working context as procedural guidance.
  4. The agent still plans and calls tools; the skill biases that plan toward your house style.
  5. Updates are just file changes—ideally reviewed in git like any other engineering artifact.

Cursor-oriented workflows emphasize project skills that travel with the repo. Claude-oriented skill packs similarly treat markdown playbooks as portable expertise. Product details evolve; the engineering idea does not: put repeatable judgment in files you can diff, review, and test.

When a skill is the right investment

Write a skill when at least two of these are true:

  • The workflow repeats weekly or more across people or agents.
  • Quality fails in predictable ways (missing sections, wrong tool order, skipped checks).
  • Onboarding currently depends on tribal Slack lore.
  • You can name a measurable acceptance test for “good.”

Skip a skill for one-off exploration. Also skip if the real problem is missing tools—build or enable an MCP server first, then encode procedure. If the gap is unsafe permissions, fix host policy and least privilege before polishing prose.

Worked scenario: incident timeline skill

An SRE team wastes hours formatting incident timelines inconsistently. They add a skill that: (1) pulls events from the ticket MCP, (2) orders them chronologically, (3) marks unknown times explicitly, (4) drafts customer-safe wording, (5) stops for human approval before posting to status. The skill forbids inventing timestamps and requires linking primary evidence.

Evals include a fixture incident with three tools and a poisoned ticket comment attempting to force a public post. The skill alone is insufficient—the host still requires approval—but agents following the skill produce usable drafts on the first pass far more often than freeform prompting.

Authoring patterns that hold up

  • Lead with triggers — “Use this skill when the user asks for X / when files match Y.”
  • Prefer checklists over essays — agents follow steps more reliably than vibes.
  • Name tools exactly — match MCP tool names the host will expose.
  • Define stop conditions — “If data is missing, ask once; do not loop inventing.”
  • Separate must vs nice-to-have — keep the critical path short.
  • Include a anti-patterns list — “Do not rewrite production configs in this skill.”
  • Keep one skill per job type — mega-skills that cover “all of engineering” rot quickly.

For hands-on creation patterns, see create an agent skill. Pair new skills with the security mindset in MCP security whenever the playbook touches write tools.

Versioning and distribution

Treat skills as code. Store them in git. Require review for changes that alter tool use or external communication. Tag releases when org-wide packs change. Prefer project-local skills for repo-specific conventions and org-level skills for company-wide tone and compliance. Document ownership in the file header so orphaned playbooks do not silently mis-train agents for a year.

When distributing across hosts, keep the procedural core portable markdown and isolate host-specific footnotes (for example, Cursor config paths vs desktop skill install UI). The less you fork, the less drift you debug.

Testing skills like software

A skill without evals is folklore. Minimum bar:

  • One golden transcript that must satisfy the acceptance checklist.
  • One adversarial case (injection or missing tool) that must stop safely.
  • A regression case for the last bug the skill was written to prevent.

Run them when the skill or related MCP schemas change. If the agent skips a “required” step in golden runs, rewrite the skill—do not add another paragraph of pleading.

Common mistakes

  • Copying a giant style guide into SKILL.md and calling it a workflow.
  • Referencing tools that are not enabled in the host.
  • No ownership or review path—skills rot while APIs move.
  • Relying on skills to block dangerous actions instead of host allowlists.
  • One monolithic skill for every task in the company.
  • Zero examples—agents under-specify what “good” looks like.

Skill authoring checklist

  1. Name the job type in one sentence and list out-of-scope cases.
  2. Inventory required tools (MCP + native) and confirm they exist in the target host.
  3. Write a short stepwise procedure with stop conditions.
  4. Add one example and three acceptance checks.
  5. Add deny/failure guidance for missing data and policy blocks.
  6. Put the file in git with an owner; open a PR.
  7. Author two evals (success + adversarial) before announcing the skill.
  8. Link operators to host setup docs such as Cursor MCP setup when tools must be enabled first.

FAQ

Is SKILL.md required for every agent?

No. Agents can run on prompts and tools alone. Skills pay off when workflows repeat and quality must be consistent across people and sessions. Start with the top two or three job types that already cause rework.

Can a skill call tools by itself?

No. A skill is guidance text (plus optional assets). The agent runtime decides to call tools; MCP servers execute them; the host may approve or deny. Skills influence selection and sequencing—they do not bypass the tool layer.

How long should a skill file be?

Long enough to encode the critical path and failure modes, short enough that the model can attend to it. Many effective skills land in a few hundred words plus a compact checklist. If you need a novel, split into multiple skills or move reference material into MCP resources.

Should skills live in the repo or in a global library?

Both, with clear boundaries. Repo skills capture project conventions (test commands, folder layout). Global skills capture company-wide jobs (incident writing, brand voice). Avoid duplicating the same skill in twelve repos without a shared source of truth.

What is the fastest way to create a strong first skill?

Take a real transcript of a successful human+agent run, delete the flailing, and rewrite the remaining steps as a checklist with tool names and acceptance tests. Then follow a structured guide such as agent skill create and validate with one golden and one deny eval.

Bottom line

SKILL.md is how you productize procedural judgment for agents: a reviewed playbook for a job type that sits beside prompts, MCP tools, and host policy. Write skills for repeatable work, test them, and never confuse soft guidance with hard security controls.

Related reading

About Mudasir Syed

Check Also

Software engineer workstation for AI agent development

What Is an AI Agent?

what is an AI agent explained for builders—with workshop steps and security links.

Leave a Reply