description是 LLM 决定打不打开 skill 的唯一依据。写不好 → 该用没用(漏触发),或不该用却用了(误触发)。本文档列 4 要素 + 用 Mavis 现有 skill 做正反例。
每条 description 必须能让另一个 LLM 同时回答这 4 个问题:
这两个 skill 都处理 Skill,但交付阶段不同:一个创建新 Skill,一个改进既有 Skill。
skill-creator:
Use when the user wants to create a new reusable Skill from requirements, examples, or an existing workflow. Do not use it merely to review or tune an existing Skill.
skill-refiner:
Use when the user wants to review, debug, evaluate, or improve an existing Skill. Do not use it to scaffold a brand-new Skill from scratch.
为什么这两条都写得好:
两个 skill 都处理 Office 文档,但文件类型和交付物不同:
docx:
Create, inspect, edit, repair, and verify Microsoft Word DOCX documents. Use this skill for formal Word deliverables, tracked document structure, WordprocessingML-level edits, rendering DOCX pages for visual QA, extracting text/styles/tables/images/comments, or preserving DOCX layout and section/header/footer behavior.
pptx:
Read, inspect, generate, and edit PowerPoint PPTX presentations. Use this skill for extracting slide text, speaker notes, comments, embedded images, screenshots, metadata audits, creating new decks with PptxGenJS, imitating a reference deck's visual style, or editing an existing PPTX while preserving layout.
写得好的点:
docx 把 Word 特有的 section/header/footer、WordprocessingML、page render QA 写进边界pptx 把 slide、speaker notes、screenshots、PptxGenJS、reference deck imitation 写进边界反例 A(太抽象,触发不稳定):
description: A useful skill for working with files.
问题:什么文件?什么操作?模型不知道什么时候该用。
反例 B(只堆关键词,没有 when 和边界):
description: PDF, text, extract, OCR, parse, document, file
问题:可能任何提到 PDF 的请求都触发,包括其实该用 docx 或其他相邻 skill 的。
反例 C(把"什么时候不该用"漏掉):
description: Use this skill to handle PDF files.
问题:用户说"生成 PDF 报告"也会触发它。
写完 description 后用这 4 个问题自查:
太弱:Can be useful for X → LLM 看了不知道是不是该用
正确:Use this skill when X. Triggers on phrases like Y / Z → 明确召回意图
过度:MUST always use this skill for any X-related task → 把模型限死,反而过拟合
参考 mavis 现有 skill 的 description(如 lark-tools)的写法:
Use this skill whenever the user mentions anything related to Feishu or Lark, including but not limited to: ...
whenever + including but not limited to 是适度 pushy 的范例:扩大召回 + 留扩展空间。