Type: concept
Confidence: 0.80
Created: 2026-04-25
Updated: 2026-04-25
Tags: ai-toolsconfigurationspecificationAI工程

SKILL.md

概述

Agent Skills的核心文件,包含YAML frontmatter元数据和Markdown指令,定义了AI技能的具体行为和配置

关键内容

  1. 文件结构skill-name/ ├── SKILL.md # 核心:YAML frontmatter + Markdown 指令 ├── scripts/ │ └── helper.sh # 可被 Claude 执行的辅助脚本 ├── references/ │ └── REFERENCE.md # 参考资料(按需加载) └── assets/ # 图片、模板等静态资源

  2. YAML Frontmatter字段

  3. name: 唯一标识符(kebab-case)
  4. description: 触发条件描述,影响技能的自动激活
  5. argument-hint: 参数提示,使技能可通过斜杠命令调用
  6. context: 可选字段,fork表示在独立subagent中运行
  7. license: 可选字段,授权说明

  8. Markdown指令特性

  9. 支持标准Markdown语法
  10. $ARGUMENTS / $0, $1, $2 参数占位符
  11. !shell-command 语法:将命令输出注入Prompt上下文
  12. 可使用ultrathink关键字启用Extended Thinking模式

来源

相关