mdskills
← 规范

What is a skill.md file?

A skill.md file is a Markdown file with YAML frontmatter that packages domain expertise for AI coding agents. Drop one into your project and Claude Code, Cursor, or Codex activates it automatically when the task description matches. The format is the open agentskills.io standard, supported by 27+ agents, and every skill.md file on mdskills.ai is free to download.

它解决了什么问题?

没有技能的情况下,每次你想让智能体做特定任务时——生成 PDF、构建设计系统、编写 Playwright 测试——都得重复输入同样的复杂提示词。SKILL.md 将这些指令打包一次,任何兼容的智能体都能自动加载使用。技能按需加载,不会膨胀你的智能体上下文窗口。

工作原理

一个技能就是一个包含 SKILL.md 文件的文件夹,文件中有 YAML frontmatter 和 Markdown 指令。一个技能至少需要 name 和 description。

---
name: pdf-processing
description: Extract text and tables from PDF files,
merge documents, fill forms, and convert to images.
license: MIT
compatibility:
- Claude Code
- Cursor
allowed-tools: Bash(python:*) Read Write
---
# PDF Processing
When the user asks you to work with PDF files, follow
these instructions...

Frontmatter 字段

字段必填说明
name唯一标识符。最多 64 个字符,仅限小写字母、数字和连字符。
description描述技能的功能和激活时机。最多 1024 个字符。
licenseSPDX 许可证标识符或指向许可证文件的引用。
compatibility兼容的智能体列表和环境要求。
metadata任意键值对(作者、版本、标签等)。
allowed-tools以空格分隔的预授权工具列表,供智能体使用。

How to install a skill.md file

Three ways to install a skill.md file from mdskills.ai. Every path is one action on a skill's detail page or one line in your terminal.

  1. Install from the terminal. One command, resolves the latest version, drops the SKILL.md file into the right folder for your agent.
    npx mdskills install <slug>
  2. Download from mdskills. Click Download on any skill's detail page to get theSKILL.mdfile directly. Save it into your project's.claude/skills/<name>/(or the equivalent path for Cursor, Codex, or your agent).
  3. Copy the raw SKILL.md text. On any skill's detail page, click Copy SKILL.md to grab the file contents to your clipboard. Paste into your agent, a new file in your project, or a chat window.

How to download a skill.md file

Every skill on mdskills.ai has a green Download button on its detail page. Downloads are free. You get either the raw SKILL.mdfile (for standalone skills) or a .ziparchive of the skill folder (when the skill includes scripts, references, or assets alongside the SKILL.md).

Examples of skill.md files

Five well-written skill.md files worth reading before you author your own. Each one shows a different pattern: format converters, opinionated design systems, ambient content, meta-workflows, and multi-agent pipelines.

  • markitdown: convert PDFs, Word, Excel, PowerPoint, images, and audio to clean Markdown. The canonical example of a narrow-scope skill with a crisp description.
  • ui-ux-pro-max: an encoded-preference skill. A full design opinion (spacing, type, color, motion) that guides Claude away from generic AI-looking UI.
  • scroll-experience: builds long-form editorial pages with pacing, section rhythm, and typographic hierarchy. Great example of a skill that reshapes output structure.
  • claude-code-game-studios: a meta-skill that captures a full workflow for spinning up game studios inside Claude Code. Shows how skills can encode multi-step processes, not just single-shot tasks.
  • pixel-agents: orchestrates multiple pixel-art agents for game assets. A good reference for skills that coordinate several sub-tasks under one description.

Browse the full library on the Skills page.

skill.md vs AGENTS.md vs cursorrules

FormatLoad modelBest for
SKILL.mdOn-demand, description-based activationDeep, domain-specific knowledge you don't want in every session
AGENTS.mdEvery session, always loadedBaseline project conventions and cross-agent instructions
CLAUDE.mdEvery session, Claude Code onlyClaude Code-specific instructions and project state
.cursorrulesEvery session, Cursor onlyCursor-specific rules and behavior overrides

渐进式加载

技能使用三阶段加载模型来保持上下文窗口的高效利用:

  1. 发现 — 智能体仅读取 name 和 description(约 100 tokens)
  2. 激活 — 当任务匹配时,加载完整的 SKILL.md(< 5000 tokens)
  3. 执行 — 智能体按照指令操作,按需加载引用的文件

谁支持它

SKILL.md 格式受到 Claude Code、Cursor、OpenAI Codex、Gemini CLI、VS Code、GitHub Copilot、Amp、Roo Code、Goose、Windsurf、Continue 等众多智能体的支持。完整的兼容智能体列表维护在 agentskills.io.

Frequently asked questions

What is a skill.md file?

A skill.md file (also written SKILL.md) is a Markdown file with YAML frontmatter that packages domain expertise for AI coding agents like Claude Code, Cursor, and Codex. Drop one into your project and the agent uses it as reusable knowledge, activated by name or context.

How do I download a skill.md file?

Browse skills on mdskills.ai, open the skill's detail page, and click the green Download button to save the skill.md file (or the full skill folder as a .zip). You can also install directly from the terminal with npx mdskills install owner/skill-name.

How do I install a skill.md file in Claude Code?

Three ways, all from mdskills.ai. Run npx mdskills install <slug> in your terminal. Or open the skill on mdskills.ai and click Download to save the SKILL.md file into .claude/skills/<name>/. Or click Copy SKILL.md to copy the file contents to your clipboard and paste into your project. Claude Code discovers the file automatically once it is in .claude/skills/ (project-level) or ~/.claude/skills/ (user-level).

What is the difference between skill.md and AGENTS.md?

A skill.md is loaded on demand when the agent decides its description matches the task at hand. AGENTS.md is loaded every session as always-on project instructions. Skills are progressive-disclosure knowledge; AGENTS.md is baseline convention.

What is the difference between skill.md and cursorrules?

cursorrules is Cursor's always-on instructions file at .cursorrules or .cursor/rules/*.mdc. A skill.md is a cross-tool, on-demand knowledge packet. Claude Code, Cursor, Codex and other agents all support it via the open agentskills.io spec.

Are skill.md files free?

Yes. Every skill on mdskills.ai is free to download and install. Some creators offer paid premium skills as well; free skills are marked and always available with one click.

Which AI agents support skill.md files?

The skill.md format is supported by 27+ AI coding agents, including Claude Code, Cursor, OpenAI Codex, Gemini CLI, VS Code, GitHub Copilot, Amp, Roo Code, Goose, Windsurf, Continue, Cline, and Aider. Anthropic created the format and maintains the open spec at agentskills.io; support is expanding across the field.

How do I write my own skill.md?

Create a folder named after your skill, add a SKILL.md file with YAML frontmatter (at minimum: name and description), and write instructions in Markdown below the frontmatter. Keep the description under 1024 characters and make it match-worthy: the agent decides when to load your skill by matching the task to the description text. Reference scripts, examples, or assets from the same folder.

相关规范

  • AGENTS.md项目级上下文(每次提示都加载,非按需加载)
  • CLAUDE.mdClaude 专用的项目规则
  • MCP用于将智能体连接到外部工具和服务

官方规范

SKILL.md 的完整规范维护在 agentskills.io 上。

阅读完整规范