什么是 AI Skill
Skill 是 AI Agent 领域中较新的概念:一种以 Markdown 等结构化格式定义的能力流程,可被 Agent 调用。它建立在 Function Calling 之上,但比单个 Tool 更高级:一个 Skill 可以编排多个工具、定义执行步骤、包含上下文指令。核心逻辑是:Agent 通过 MCP 协议调用 Skill,Skill 再调用 Tool——而这一切都建立在 Function Call 能力之上。
一句话概括:Tool 是单个函数;Skill 是工作流;Agent 决定何时用哪个 Skill。
Skill、Tool 与 MCP 的区别
这三者常被混淆,但处于不同层级:Function Calling 是基础,让 LLM 能调用函数(非结构化 → 结构化);Tool 是单个可调用能力(如"查天气"、"读文件");Skill 是以 Markdown 定义的多步骤流程,可编排多个 Tool;MCP 是标准化协议,解决工具如何被 Agent 发现和连接的问题。它们的关系:Agent → Skill → Tool → Function Call,MCP 贯穿其中提供标准接口。
# Layered relationship
Function Calling # Foundation: the LLM's ability to call functions
↑
Tool # Single capability: read_file(), search_web()
↑
Skill # Workflow orchestration: Markdown defines "how to complete a task"
↑ e.g. "publish a blog post" = write + add images + publish
Agent # Decision maker: chooses and executes a Skill based on the goal
# MCP provides the standardized communication protocol between the Agent and Tools/Skills为什么 Skill 重要
Skill 的价值在于"把专家经验变成可复用的流程"。传统 Tool 只暴露"能做什么";Skill 还定义"怎么做最好"。例如"代码审查"Skill 可以包含具体步骤和检查清单:先看架构,再看安全,再看风格。这让 Agent 不仅是调用工具,而是按照最佳实践工作。Skill 以 Markdown 定义,无需改代码即可调整流程——极其灵活。
Skill 让 Agent 从"会用工具"进化到"懂方法论"——这是 Agent 走向专业的关键。
示例
典型的 Skill 应用:Claude Code 的 SKILL.md 文件定义项目专属工作流;Trae IDE 的 Skills 扩展生态提供 50+ 平台渠道能力;Hermes Agent 框架用 Skill 实现自我进化。开发者可以为自己的项目编写自定义 Skill,让 AI 按照团队约定执行复杂任务,如"发布前跑测试 + 生成 changelog + 开 PR"。
# A Skill definition example (Markdown format)
---
name: code-review
description: Review code against team conventions
---
## Steps
1. Read the changed files and understand the intent of the change
2. Check architecture: does it follow the layered design
3. Check security: any SQL injection or XSS risks
4. Check style: naming, comments, type annotations
5. Output a structured review report with severity labels
## Rules
- Never use the any type
- All public functions must have JSDoc把 Skill 文件放入项目,Agent 会自动发现并按此流程工作。
Ready to try AI Skill?
Visit the official site for the latest version and full documentation.
Visit AI Skill