What Are Agent Skills and Why They Matter
Agent skills are portable packages of instructions that extend AI coding agents. Here's what they are, how they work, and why the open standard changes how developers work with AI tools.
Every time you use an AI coding agent, you start from scratch. You explain your project conventions. You describe your deployment process. You remind it how you want commit messages formatted. The next session, you do it all over again. Agent skills exist to fix that problem.
The Core Idea
An agent skill is a folder containing a SKILL.md file. That file holds structured instructions that an AI agent can read and follow. Think of it as a manual you write once, and the agent references every time the task comes up.
Here’s the structure:
code-review/
├── SKILL.md # Main instructions
├── STANDARDS.md # Detailed reference (loaded on demand)
└── scripts/
└── validate.py # Executable utilities
The SKILL.md has YAML frontmatter with a name and description, followed by markdown instructions. The description tells the agent when to apply the skill. The body tells it how.
---
name: code-review
description: Review code for quality and security following team standards. Use when reviewing pull requests or code changes.
---
# Code Review
## Checklist
- Check for correctness and edge cases
- Verify security best practices
- Ensure tests cover the changes
That’s it. No SDK, no API integration, no runtime. Just structured text that agents know how to interpret.
Why This Matters
Without skills, every interaction with an AI agent is a cold start. You either re-explain your conventions each time or accept generic, context-free output. Skills solve this in three ways.
Persistence. Write the instructions once. The agent loads them automatically when the task matches the skill description. Your deployment checklist, your commit message format, your testing workflow: all of it is available without repeating yourself.
Portability. Agent skills are an open standard. The same SKILL.md file works across Cursor, Claude Code, GitHub Copilot, OpenAI Codex, Gemini CLI, Windsurf, Roo Code, and over 30 other tools. You write it once and use it everywhere.
Progressive disclosure. The agent doesn’t dump your entire skill into the context window. Metadata loads first (around 100 tokens). Full instructions load only when triggered (under 5,000 tokens). Reference files load on demand. This keeps the context window clean, which directly affects output quality.
Where Skills Live
Skills load from three locations:
| Location | Scope |
|---|---|
.cursor/skills/ or .agents/skills/ | Project-level, shared with the team via git |
~/.cursor/skills/ | Personal, available across all your projects |
Project skills make sense for team conventions: how you write tests, how you deploy, how you structure PRs. Personal skills make sense for your own workflows: your preferred commit format, your code review checklist, how you like documentation structured.
How the Agent Discovers Skills
There are three ways to trigger a skill:
Automatic. The agent reads the description field in every available skill and decides whether it’s relevant to the current task. If you ask for a code review and there’s a code-review skill with a matching description, the agent loads it without you asking.
Slash command. Type /skill-name in the chat to invoke a skill directly.
Context attachment. Use @skill-name to attach a skill as context for the current conversation.
The automatic discovery is the most powerful mode. It means the agent adapts to your project’s conventions without you remembering to invoke anything. But the quality of your description determines whether discovery works. Vague descriptions like “helps with code” won’t trigger reliably. Specific descriptions like “Review Python code for security vulnerabilities and PEP 8 compliance” will.
Skills vs. Prompts
You might think this sounds like fancy prompt templates. It’s more than that.
A prompt is a one-shot instruction. It lives in your clipboard or a note somewhere. You paste it, use it, and next session you have to find it again. It has no structure, no metadata, and no way for the agent to decide when to use it.
A skill is a structured, discoverable, version-controlled package. It lives in your project or home directory. The agent finds it automatically. It can include reference files, executable scripts, and progressive disclosure. And because it’s an open standard, it works across tools without modification.
The difference between pasting a prompt and having a skill is the difference between carrying a toolbox and having a workshop. Both get the job done. One scales.
The Security Trade-off
Skills are powerful because they can include executable scripts. That’s also a risk. Community skill registries have grown fast, and not all contributions are benign. As of early 2026, roughly 10% of skills on public registries have been flagged as potentially malicious.
Before installing a community skill, read the SKILL.md and any scripts it includes. If a skill asks for network access, file system writes, or environment variable reads that don’t match its stated purpose, skip it. Treat skill installation the same way you’d treat installing an npm package from an unknown author.
Where to Start
If you use Cursor, you already have the infrastructure. Create a folder in .cursor/skills/, add a SKILL.md, and the agent will pick it up. Start with something small: your commit message format, your PR review checklist, or your test scaffolding workflow.
The best skills encode knowledge that you find yourself repeating. If you’ve explained the same convention to the AI agent three times, that’s a skill waiting to be written.
Get Insanely Good at AI
The book for developers who want to understand how AI actually works. LLMs, prompt engineering, RAG, AI agents, and production systems.
Keep Reading
Anthropic Makes Claude's 1M Token Context Generally Available
Anthropic made 1M-token context GA for Claude 4.6, removing long-context premiums and boosting throughput for large code and agent tasks.
Agent Skills vs Cursor Rules: When to Use Each
Cursor has both rules and skills for customizing the AI agent. They overlap, but they're not the same. Here's when to use each and how they interact.
How to Create Your First Agent Skill
A step-by-step guide to writing an agent skill from scratch: directory structure, SKILL.md format, effective descriptions, common patterns, and a complete working example.
Best AI Coding Assistants Compared (2026): Cursor vs Copilot vs Windsurf
A practical comparison of Cursor, GitHub Copilot, and Windsurf. Features, pricing, strengths, weaknesses, and which one fits your workflow in 2026.
How to Use AI for Code Review
AI catches patterns, style issues, and common bugs fast. It misses business logic and architecture problems. Here's the practical workflow for using AI code review effectively.