Skip to content

Claude Code Skills: Teaching Your AI Coding Agent Your Stack

Claude Code skills are folders of instructions a coding agent loads only when relevant. A practitioner's guide to the SKILL.md model, progressive disclosure, how skills differ from MCP, and how to author ones that encode your stack's conventions instead of bloating context.

Artem Zaitsev
Artem ZaitsevCTO · Idealogic
Author: Artem ZaitsevPublished: Updated: Reading time: 20 minHow we write →
On this page
Idealogic: Claude Code skills

A coding agent that has read your whole repo still doesn't know your team's rules. It doesn't know that you deploy with a specific four-step script, that every API endpoint returns errors in one shape, or that the one database migration command must run exactly as written. So you tell it, then you tell it again next session, because the agent starts each conversation fresh. Claude Code skills (often just called Claude skills or Agent Skills) fix that loop. You teach an AI coding agent a procedure once, and it applies the procedure every time it's relevant, so you stop re-explaining your stack on every task. This is a practitioner's guide to what skills are, how the SKILL.md model and progressive disclosure work, how skills differ from MCP and plain tools, and how to author ones that hold up when a team depends on them. It's the close-up on a practice we sketch in our guide to shipping with AI: giving the agent your stack instead of just a prompt.

The short version

  • A Claude Code skill is a folder holding a SKILL.md file: a short YAML description plus plain-Markdown instructions that teach the agent a procedure once instead of re-explaining it every session.
  • Skills stay cheap through progressive disclosure, which loads only each skill's name and description at startup and pulls in the full body when your request matches it.
  • Skills and MCP are complementary layers: MCP connects the agent to external systems, while a skill teaches it the right workflow for using them.
  • Where the folder lives sets the scope: ~/.claude/skills/ is personal, and a .claude/skills/ folder checked into a repo ships the same conventions to everyone who clones it.
  • A skill lives or dies by its description, so write it in the third person with the words people actually type, and keep the body under about 500 lines.
  • Reach for a skill only for recurring, multi-step procedures: a single fact belongs in CLAUDE.md, and a hard guarantee belongs in a hook or CI gate.

What Claude Code skills are

A Claude Code skill is a folder with a single file named SKILL.md inside it. That file holds two things: a short description of what the skill is for, in YAML at the top, and a set of instructions in plain Markdown below it. The format has nothing else in it. You write the procedure you keep repeating, the agent adds it to its toolkit, and it applies that procedure when your request calls for it, or you run it directly by typing / and the skill's name.

Anthropic introduced Agent Skills in October 2025 and defines them plainly: "Skills are folders that include instructions, scripts, and resources that Claude can load when needed." The Claude Code docs give the practical trigger for making one: "Create a skill when you keep pasting the same instructions, checklist, or multi-step procedure into chat, or when a section of CLAUDE.md has grown into a procedure rather than a fact." If you have copied the same deploy steps or review checklist into a conversation for the third time, that's a skill waiting to be written.

A skill packages procedural knowledge rather than a binary plugin. The model already writes competent general code; a skill supplies the repository-specific conventions, migration rules, and deploy steps it cannot infer from source files alone. Skills follow the Agent Skills open specification, which Anthropic published as an open standard in December 2025 and has since donated to the Agentic AI Foundation. So the same folder format works across Claude Code, the Claude apps and API, and other agents that adopted the standard, Cursor, GitHub Copilot, and VS Code among them. That's why people say Claude skills and Agent Skills interchangeably, and why your team's playbooks aren't locked to one interface.

A skill is the onboarding doc you would have written for a new hire. The agent reads it the instant the work calls for it and never the rest of the time.

One note that trips people up: custom slash commands and skills are now the same mechanism. Anthropic merged them, so .claude/commands/deploy.md and .claude/skills/deploy/SKILL.md both give you a /deploy command and work the same way. Old command files keep working, and if a command and a skill share a name, the skill wins. The skill form just does more.

How Claude Code skills work

Claude Code skills work through progressive disclosure: the agent loads only each skill's name and description up front, the full SKILL.md when a request matches, and bundled files only when the task reaches them. The design answers one engineering question: how do you give an agent a large library of procedures without stuffing all of them into its context window on every turn? Context is finite and shared. Your conversation, the open files, and every available tool compete for the same space, and a window crammed with reference material the agent doesn't need is a window that performs worse on the work it does.

Progressive disclosure works in three levels. Anthropic's engineering team describes it directly: the agent loads almost nothing up front and pulls in detail only as a task demands it.

  1. Metadata, always loaded. At startup the agent pre-loads the name and description of every installed skill into its system prompt. That's a short entry per skill, enough for the agent to know what exists and when each one applies. The listing has a budget, per the Claude Code skills documentation: it scales at 1% of the model's context window, and when it overflows Claude Code drops descriptions and keeps the names.
  2. The body, loaded on a match. When your request matches a skill's description, the agent reads that skill's full SKILL.md into context. Only then does the procedure itself arrive.
  3. Bundled files, loaded as needed. A skill can reference other files in its folder, a long API reference, an example collection, a script. Those are the third level. The agent navigates to them only when the task actually reaches that material.
Progressive disclosure: metadata is always present, the body loads on a match, and bundled files load only when the work needs them

So a skill can be large where it needs to be and still cost almost nothing until it fires. A skill bundling a thousand lines of API reference adds only its one-line description to the startup budget; the reference sits on disk, consuming zero context tokens until a task opens it. As the Claude Code docs put it, "a skill's body loads only when it's used, so long reference material costs almost nothing until you need it." That's the advantage skills hold over a project memory file, which loads in full every session whether the work needs it or not.

Underneath, it's a filesystem. The agent reads a skill's metadata at startup, opens SKILL.md and bundled files with ordinary reads when the moment comes, and runs bundled scripts without loading their source, so only a script's output costs tokens. There's no special runtime to learn. A skill is a directory you can read, diff, and check into git like any other part of your codebase, which is most of why it fits an engineering workflow at all.

What a Claude Code SKILL.md contains

The frontmatter is short. According to the Claude Code skills documentation, description is the primary field to get right because the agent reads it to decide when to load the skill, while name defaults to the folder name when omitted. A handful of other fields tune behavior: allowed-tools pre-approves specific tools so the agent doesn't stop to ask permission while the skill runs, and disable-model-invocation: true keeps the agent from triggering the skill on its own, which you want for anything with side effects, like a deploy or a commit, where you decide the timing. The list has grown since launch: when_to_use, paths, hooks, model, and context: fork (which runs the skill in a subagent) are all in the frontmatter reference, and edits to a SKILL.md now apply mid-session without a restart. The body below the frontmatter holds the instructions, and keeping it tight matters because loaded skill instructions stay in context for the rest of the session.

A minimal skill is only a few lines. Take an api-conventions skill: its description says "API design patterns for this codebase, use when writing or reviewing API endpoints," and its body lists three rules, which are to use RESTful naming, return errors in the standard error-and-code shape, and validate every request body before handling it.

Those few lines are a complete, working skill. The agent now applies those conventions whenever you ask it to touch an endpoint, because the description told it when to pay attention.

Claude skills from claude.ai and plugins

Not every skill starts in a repository. Claude skills you upload to claude.ai sync into Claude Code under ~/.claude/skills/synced/, and the syncClaudeAiSkills setting turns that off. Skills also arrive bundled in plugins or pushed org-wide through managed settings. One caveat if you want a skill to travel: claude.ai and API uploads can reject frontmatter keys they don't recognize, so a portable skill sticks to name, description, license, compatibility, metadata, and allowed-tools.

Claude Code skills vs MCP vs tools: where each fits

Skills, the Model Context Protocol, and tools sit at three different layers. Treat them as one thing and you'll reach for the wrong one. They complement each other.

A tool is a single capability the agent can invoke: read a file, run a shell command, call a function. Tools are how the agent acts on the world. On their own they're atomic; the agent decides which to call and with what arguments, one at a time. We go deeper on the role of tools in our explainer on how AI agents work, where the tool layer is the part of an agent that touches anything outside its own text.

MCP is the integration layer that exposes tools and data to the agent in a standard way. The Model Context Protocol is an open standard Anthropic released in November 2024, described by its own docs as "an open-source standard for connecting AI applications to external systems," with the analogy that it is "a USB-C port for AI applications." Anthropic donated MCP to the Agentic AI Foundation under the Linux Foundation in December 2025, so its governance is now vendor-neutral. When you want your coding agent to reach your real database, your issue tracker, or an internal service, you connect it through an MCP server. MCP is the wiring; it gives the agent access.

A skill is the procedural knowledge that tells the agent how to do a task with whatever tools and data it can reach. A skill is the workflow: the steps, their order, and the conventions to check. When it launched skills, Anthropic said it would explore how "Skills can complement Model Context Protocol (MCP) servers by teaching agents more complex workflows that involve external tools and software." The two layers stack. A skill can even name a specific MCP tool to call as part of its procedure, using the server-qualified form like BigQuery:bigquery_schema, so the know-how and the connection meet in one place.

Three layers: tools act, MCP connects, skills teach the workflow that uses them

Laid side by side, the three answer different questions:

LayerWhat it isWhat it answersExample
ToolA single action the agent can invoke"What can the agent do?"Run a shell command, read a file
MCPA standard connection to external systems and data"What can the agent reach?"A server exposing your database or issue tracker
SkillProcedural knowledge in a SKILL.md file"How should the agent do the task?"Your deploy steps, your API conventions

The decision rule that holds up: if the agent can't reach something, you need a connection, which is MCP or a tool. If it can reach it but does the task the wrong way, you need knowledge, which is a skill. Reaching for a skill to solve a connection problem, or an MCP server to solve a how-to problem, is the most common way teams get this stack wrong. Connecting a coding agent to the systems around your code is the broader discipline our AI integration services handle end to end; skills are the layer that teaches the agent to use those connections well.

How to write Claude Code skills that actually trigger

A skill that helps and a skill that gets ignored usually differ in two things: the description, and how short the body stays. Anthropic's skill-authoring best practices are worth reading in full, but the parts that matter most are few.

The description decides discovery. It's the only thing the agent sees when deciding whether a skill applies. Write it in the third person ("Generates commit messages by analyzing git diffs"), not the first or second ("I can help you..."), because the text is injected into the system prompt and a shifting point of view confuses the match. State both halves, what the skill does and when to use it, with the concrete words a person would actually type when they need it. "Helps with documents" triggers on nothing useful; "Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDFs, forms, or document extraction" triggers on exactly the right requests. There's a budget, too: in Claude Code each skill's description and when_to_use text combined is truncated at 1,536 characters in the skill listing, so put the main use case first.

Concise beats comprehensive in the body. Anthropic's guidance is blunt that "the context window is a public good," and the default assumption should be that the model is already smart. Only add what it doesn't already know. A skill that explains what a PDF is wastes tokens; one that says "use pdfplumber, here is the call" earns them. Keep the SKILL.md body under about 500 lines, and when it grows past that, split the depth into separate files the body links to, one level deep so the agent reads each referenced file whole instead of previewing a nested one with a head and acting on half of it.

Match the freedom to the stakes. Some tasks have many valid paths and the agent should be trusted to choose; a code review is an open field, so give general direction. Others break if one step is off, like a migration that must run in an exact sequence, so give the exact command and say not to deviate: "Run exactly this script. Do not add flags." The more fragile the task, the more specific the skill should be.

Then actually test it. A skill triggering isn't the same as a skill working. Collect a few realistic prompts, run each in a fresh session with the skill available and again with it disabled, and compare; a fresh session matters, because leftover context from writing the skill papers over gaps in the instructions. If it fires when it shouldn't, make the description more specific; if it stays silent when it should run, add the trigger words a user would say. That loop is where a mediocre skill becomes a reliable one, and it's the kind of close, evidence-based iteration that separates senior pairing with AI from hopeful prompting.

Need your coding agents wired into your internal APIs, data, and deployment tools?
We connect AI agents to your real engineering stack with MCP servers, scoped permissions, and version-controlled skills your whole team can audit.
Explore AI integration services

Skills on a team: encoding your stack's conventions

A personal skill saves you from repeating yourself. A project skill saves your whole team from re-deciding the same things, and that's where the practice earns its keep for an engineering org. The difference is just where the folder lives.

A skill at ~/.claude/skills/<name>/SKILL.md is personal; it follows you across every project. A skill checked into a repository at .claude/skills/<name>/SKILL.md belongs to that project, and it ships to everyone who clones the repo. That second case changes how a team works. Your deploy procedure, your error-handling shape, your "always exclude test accounts in analytics queries" rule, your migration command, all of it can live in version control next to the code, reviewed in pull requests like any other change, and applied identically by every engineer's agent and every CI agent that touches the repo. The conventions stop living in senior engineers' heads and start living in a file the agent reads.

A practical way to build a skill: do a task once with the agent the normal way, notice the context and rules you kept supplying by hand, then ask the agent to capture that pattern as a skill. The knowledge you would have explained to a new hire in their first week becomes a skill the agent applies from its first task. And because skills are scoped, a monorepo can give each package its own .claude/skills/ that activates only when the agent works in that package, so front-end conventions and data-pipeline conventions don't bleed into each other.

Once a skill can do things, two fields control it. disable-model-invocation: true means only a human can run the skill, which you want on anything with side effects so the agent never decides on its own that the code "looks ready" and deploys it. allowed-tools deserves a close read in any repo you clone, because workspace trust doesn't cover it. Per the Claude Code docs, a project skill's allowed-tools applies even in a folder you've never trusted, and the grant lasts for the turn that invokes the skill. A skill checked into a repo can give the agent broad access, so review project skills before you run Claude Code there, as you would a new dependency. Organizations that want a tighter rule can withhold the field through managed settings (allowManagedPermissionRulesOnly).

Encoding your conventions as skills lets a senior team's architectural rules scale across every contributor and automated workflow touching the repo. The measured evidence on generic AI assistance is mixed. METR's July 2025 randomized trial found experienced open-source maintainers took 19% longer with early-2025 AI tools, and its February 2026 follow-up with newer tools estimated a speedup, but with wide intervals that include zero. METR didn't test skills. Our own read is that an agent can't be fast in a repository whose constraints stay unwritten inside senior engineers' heads. Writing those constraints into versioned skills, paired with custom AI agent development, makes them repeatable, and it's part of the engineering bet we are compounding.

Where Claude Code skills help, and where they don't

Claude Code skills fit recurring multi-step procedures and don't fit single facts, hard guarantees, or one-offs. That rule holds across the AI coding tools that read the format.

Skills help most when the same multi-step procedure or body of conventions comes up repeatedly and you want it applied consistently without re-explaining it. A deploy sequence, a code-review checklist, your API conventions, a domain's data schema and query rules: these recur, and they're worth encoding once. The recurrence is the signal. A skill pays for the effort of writing it the third or fourth time you'd have explained the same thing by hand.

The broader context is that this kind of agentic coding is moving from novelty toward normal, but unevenly. The 2025 Stack Overflow Developer Survey found 84% of developers now use or plan to use AI tools, up from 76% the year before, while trust in the accuracy of AI output fell to 33%, down from 40%. Among the narrower group already using agents, about 70% agreed that agents had reduced the time they spent on specific development tasks. Google's 2025 DORA report describes the organization-level version: AI acts as an amplifier of an organization's existing strengths and weaknesses. That's the case for skills. A procedure encoded once, reviewed in git, and loaded the same way every time behaves more predictably than ad-hoc prompting.

Skills don't fix everything that looks like a job for them, though. Three limits matter.

A skill is guidance, not a guarantee. The agent chooses to follow a skill the way it chooses to follow any instruction; it's steered, not constrained. The Claude Code docs are candid that a skill can stop influencing behavior mid-session as the model favors other approaches, and the documented fix is to tighten the description or wire Claude Code hooks to enforce checks deterministically. When you must block a commit that fails linting or prevent edits to protected migration files, a deterministic hook or CI check is the right mechanism. Skills guide the workflow; hooks and CI gates enforce hard boundaries.

Single facts belong in memory, not a skill. If the thing you want the agent to know is one durable fact, like your staging URL or that the repository uses pnpm instead of npm, put that line in project memory (CLAUDE.md) rather than a dedicated skill folder. Skills are for multi-step procedures that load on demand, whereas short global facts belong in always-loaded memory.

One-offs aren't worth encoding. The cost of a skill is writing and maintaining it, so for a task you'll do exactly once, just tell the agent in the conversation. The skill earns its keep through repetition. And a stale skill is worse than none, because the agent will confidently apply an out-of-date procedure, so a skill you no longer follow should be deleted, not left to rot.

Those limits mark where skills belong. Claude Code skills are the right home for your team's recurring, procedural know-how, and the wrong home for hard constraints, single facts, and one-time work. Inside that boundary, a skill keeps an AI coding agent working the way your stack requires, session after session, whether you call them Claude skills or Agent Skills. Knowing which procedures to encode and which guarantees to enforce elsewhere is routine work for the modern AI software engineer, and it's the work we do on every build.

Building custom AI coding or workflow agents for your engineering org?
We design and ship production AI agents with clean tool boundaries, deterministic guardrails, and stack-specific skills.
Explore AI agent development

Occasional field notes on building software, no spam

Protected by Cloudflare Turnstile · Privacy · Terms

Artem Zaitsev
Artem ZaitsevCTO · Idealogic Development OÜ

CTO and Co-founder at Idealogic. Directing engineering, systems architecture, security, and full-stack delivery across web, mobile, and blockchain.

Frequently asked questions

  • A Claude Code skill is a folder with a SKILL.md file inside it. The file holds instructions written in plain Markdown, plus a short YAML description of what the skill does and when to use it. Anthropic introduced skills in October 2025 as folders of instructions, scripts, and resources the agent loads only when a task needs them. The agent reads every skill's name and description at startup, then loads the full body of a skill only when your request matches it. You teach a coding agent a procedure once, like your deploy steps or your API conventions, instead of pasting it into every chat.

  • Skills work through progressive disclosure, which loads information in three levels. At startup the agent reads only each skill's name and description, a short entry apiece. When your request matches a description, the agent reads that skill's full SKILL.md body. If the skill references bundled files or scripts, those load only when the task reaches them. So a large skill costs almost nothing until the moment it's relevant.

  • They solve different problems and work together. The Model Context Protocol (MCP) is an open standard Anthropic released in November 2024 for connecting an AI agent to external systems: your database, your ticketing tool, your internal APIs. It's the integration layer, the wiring that gives the agent access to tools and data. A skill is procedural knowledge: a Markdown file that teaches the agent how to do a task. Anthropic describes skills as a complement to MCP servers, because they teach agents the workflows that use those external tools. A skill can even name an MCP tool to call. Use MCP to connect the agent to a system; use a skill to teach it the right way to use that system.

  • Start with the description, because that's what the agent reads to decide whether to use the skill. Write it in the third person, say plainly what the skill does and when to use it, and include the words a person would actually say when they need it. Keep the SKILL.md body short, under about 500 lines per Anthropic's guidance, and move long reference material into separate files the skill links to so they load only when needed. State what to do, not why; the model already knows the background. Then test it: run the prompts that should trigger it and a few that should not, and tighten the description if it fires at the wrong times.

  • In a SKILL.md file inside a named folder, and the folder's location decides who can use it. Put it at ~/.claude/skills/<name>/SKILL.md and it's personal, following you across every project. Check it into a repository at .claude/skills/<name>/SKILL.md and it belongs to that project, shipping to everyone who clones it. Skills can also come from a plugin or be deployed org-wide through managed settings.

  • Skip a skill when the rule is a single fact rather than a procedure, when you need a behavior enforced rather than suggested, or when the work is a one-off you'll never repeat. A skill is guidance the model chooses to follow, so for a hard guarantee, like blocking a commit that fails a check, a deterministic hook or a CI gate is the right tool. A one-line fact about your stack belongs in your project's memory file, not a skill. Skills earn their place when the same multi-step procedure or body of conventions comes up again and again, and you want the agent to apply it consistently without being told each time.

  • CLAUDE.md loads in full at the start of every session, which makes it right for short, universal project facts like package manager commands, test runners, and directory layout. Skills use progressive disclosure, loading only their name and short description until a task matches them. Put global one-line rules in CLAUDE.md and move multi-step workflows, domain schemas, and long checklists into skills so routine chats stay fast and lean.

  • Treat any external skill with the same scrutiny as an executable dependency. A skill folder can bundle shell or Python scripts and request pre-approved tool permissions through allowed-tools, and its Markdown body feeds directly into the model's context where prompt injection can hide. Claude Code applies a project skill's allowed-tools without a workspace trust prompt, so read that field before you run the agent in a cloned repo. Audit every file in a third-party skill before checking it into .claude/skills/, pin changes through normal pull-request review, and set disable-model-invocation to true on workflows that touch production systems or credentials.

  • They're the same thing in different places. A Claude skill is a SKILL.md folder defined by the Agent Skills standard, and that one format works in Claude Code, in the claude.ai apps, and through the API. Claude Code is where engineers keep skills in a repository next to the code. Skills you upload to claude.ai also sync into Claude Code under ~/.claude/skills/synced/, and the syncClaudeAiSkills setting turns that off.

Still unanswered
Ask us directly

A senior engineer replies under 4 hours.

Related expertise