SKILL.md 文件和可选的打包资源组成。Skill 应建立在工作区的 .codebuddy/skills/ 目录下。skill-name/├── SKILL.md (必需)│ ├── YAML frontmatter 元数据 (必需)│ │ ├── name: (必需)│ │ └── description: (必需)│ └── Markdown 指令 (必需)└── Bundled Resources (可选)├── scripts/ - 可执行代码 (Python/Bash 等)├── references/ - 旨在根据需要加载到上下文中的文档└── assets/ - 用在输出中的文件 (模板、图标、字体等)
name 和 description 决定了 AI 何时会使用这个 Skill。描述需具体说明 Skill 的功能和使用场景。---name: pdf-editordescription: This skill should be used when users ask to modify, rotate, or extract text from PDF files.allowed-tools: # 可选,指定允许使用的工具disable: false # 可选,是否禁用---# PDF EditorTo rotate a PDF...
scripts/)scripts/rotate_pdf.py 用于 PDF 旋转。references/)SKILL.md 精简,仅在 AI 确定需要时才加载。assets/).codebuddy/skills/ 下创建新的 Skill 目录。description 中清楚地说明 Skill 何时应该被使用。SKILL.md 中使用动词开头的指令,而不是第二人称。references/,避免 SKILL.md 过于臃肿。SKILL.md 或引用文件中,不要两处都有。Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback