必填字段

---
name
	
	
	
	: skill-name-in-kebab-case
	
	
	
	
description
	
	
	
	: What it does and when to use it. Include specific
	
	
	
	
trigger phrases.
	
	
	
	
---
 

所有可选字段

name
	
	
	
	: skill-name
	
	
	
	
description
	
	
	
	: [required description]
	
	
	
	
license
	
	
	
	: MIT 
	
	
	
	# 可选:开源许可证
	
	
	
	
allowed-tools
	
	
	
	: "
	
	Bash(python:*) Bash(npm:*) WebFetch
	
	"
	
	
	
	 # 可选:限制工具访问
	
	
	
	
metadata
	
	
	
	: # 可选:自定义字段
	
	
	
	
  author
	
	
	
	: Company Name
	
	
	
	
  version
	
	
	
	: 1.0.0
	
	
	
	
  mcp-server
	
	
	
	: server-name
	
	
	
	
  category
	
	
	
	: productivity
	
	
	
	
  tags
	
	
	
	: [project-management, automation]
	
	
	
	
  documentation
	
	
	
	: https://example.com/docs
	
	
	
	
  support
	
	
	
	: support@example.com
	
	
	
	
 

安全说明

允许:

  • 任何标准 YAML 类型(字符串、数字、布尔值、列表、对象)
  • 自定义 metadata 字段
  • 较长的 description(最多 1024 个字符)

禁止:

  • XML 尖括号(< >)——安全限制
  • YAML 中的代码执行(使用安全 YAML 解析)
  • 以 "claude" 或 "anthropic" 为前缀命名的 Skills(保留字)