Skip to content

🧩 What Are Agent Skills?

Agent skills are reusable, portable instruction packages for AI coding tools — Markdown files that teach your AI agent how to perform specific tasks, follow your coding conventions, or apply domain expertise.

⚡ TL;DR

An agent skill = a folder with a SKILL.md file. The file has a YAML frontmatter header (name, description) and a Markdown body (the instructions). Drop it in .claude/skills/ (or equivalent for your tool). The AI discovers it at startup and loads instructions when you activate the skill. No servers, no build steps, no configuration.

How Agent Skills Work

Agent skills follow a three-tier progressive loading model designed to minimize context window usage while keeping all skills available on demand:

1

🔍 Discovery at startup

The AI tool scans the skills directory and reads only the YAML frontmatter from each SKILL.md. This costs ~100 tokens per skill regardless of how long the instructions are.

2

⚡ Activation on demand

When you reference a skill by name (or the agent decides it's relevant), the full SKILL.md instruction body is loaded into context. Only then does the agent "know" the skill.

3

📂 Resources loaded lazily

Supporting files in scripts/, references/, and assets/ subdirectories are loaded only when the agent needs them for a specific step — never all at once.

Anatomy of a SKILL.md File

Every agent skill has a SKILL.md at its root. Here is a complete annotated example:

.claude/skills/typescript-strict/SKILL.md example
---                                  # frontmatter start
name: TypeScript Strict Mode       # loaded at startup
description: Enforces TS strict mode, # loaded at startup
  no implicit any, strict null checks
version: 1.0.0
authors: [your-github-handle]
tags: [typescript, strict, types]
platforms: [claude-code, cursor, github-copilot]
---                                  # frontmatter end

# TypeScript Strict Mode          # body: loaded on activation

## Type Safety Rules
- Never use `any`. Use `unknown` and narrow with type guards.
- All function parameters must have explicit types.
- All function return types must be explicitly declared.

## Null Handling
- Always handle `null` and `undefined` explicitly.
- Use optional chaining `?.` and nullish coalescing `??`.
- Never use non-null assertion `!` unless unavoidable.

How to Install Agent Skills

Three ways to install an agent skill, from quickest to most maintainable:

Option A — git clone (recommended)
mkdir -p .claude/skills
git clone https://github.com/author/skill-repo .claude/skills/skill-name

💡 Cloning lets you pull updates with git pull later. Commit the skills/ directory to share with your team.

Option B — copy folder manually
# Download and unzip the skill folder
cp -r ~/Downloads/skill-name .claude/skills/

💡 Simple but no update mechanism. Good for one-off installations.

Option C — git submodule (for teams)
git submodule add https://github.com/author/skill-repo .claude/skills/skill-name
git commit -m "Add skill-name agent skill"

💡 Best for teams. Everyone gets the skill automatically on git clone --recurse-submodules.

How to Write Your Own Agent Skill

Creating a skill takes under 5 minutes. Here's the minimal starter template:

.claude/skills/my-skill/SKILL.md — starter template
---
name: My Skill Name
description: One specific sentence about what this skill enforces or teaches.
version: 1.0.0
authors: [your-github-handle]
tags: [tag1, tag2]
---

# My Skill Name

## Rule Category One
- Always do X when Y.
- Never use Z for this purpose.

## Rule Category Two
- Prefer A over B because C.
- When you see D, replace with E.

✍️ Writing tip: The description field is read at startup every session. Make it specific enough that the AI knows exactly when to activate this skill without reading the full body. Bad: "Helps with code quality." Good: "Enforces OWASP Top 10 security rules and flags SQL injection, XSS, and hardcoded secrets."

Agent Skills vs MCP

Dimension Agent Skills MCP
Type Static Markdown file Live client-server protocol
Infrastructure None — just a folder Requires running server process
Works offline ✅ Yes ❌ No
Loading Context window at activation Runtime tool call
Best for Knowledge, rules, conventions Live data, APIs, code execution
Portable ✅ Open standard, 8+ platforms Platform-dependent
Use together ✅ Yes ✅ Yes
⚔️ Read full comparison: Agent Skills vs MCP →

Platform Support

Agent skills follow an open standard supported by 8 platforms:

Claude Code

.claude/skills/

GitHub Copilot

.github/skills/

Cursor

.cursor/skills/

Gemini CLI

.gemini/skills/

Windsurf

.windsurf/skills/

OpenAI Codex

.codex/skills/

Kiro

.kiro/skills/

OpenCode

.opencode/skills/

🖥️ View all platforms →

FAQ

Do agent skills work with any AI model?
Agent skills are model-agnostic — they are plain text instructions loaded into the context window. They work with Claude, GPT-4, Gemini, or any model that the hosting platform uses. The skill standard is about file format and loading behavior, not about a specific model.
Can I use multiple agent skills at the same time?
Yes. You can have dozens of skills installed and activate several in a single session. The progressive loading model ensures only the skills you actually use consume context tokens. Activating 3-5 skills simultaneously is common for complex tasks.
Are agent skills the same as system prompts?
Not exactly. System prompts are set once and apply globally. Agent skills are modular — each covers one specific domain, and you choose which to activate per task. Skills are also portable: the same SKILL.md works across platforms, while system prompts are usually platform-specific configuration.
Can agent skills execute code?
Agent skills themselves are static Markdown — they cannot execute code. However, skills can instruct the AI agent to use the platform's built-in tools (terminal, file editor, browser) or call MCP servers. The skill tells the agent what to do; the agent's tool calls do the actual execution.
Where can I find community agent skills?
Right here — agentskills.my is the community directory. You can also find skills on GitHub by searching for repositories with the topic "agent-skills", on awesome-agent-skills, and in the official Anthropic skills repository.
🗂️ Browse Agent Skills 📐 Full Specification