OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add vinvcn/mattpocock-skills-zh-cn --skill write-a-skill
创建结构正确、支持 progressive disclosure 并带 bundled resources 的新 agent skills。Use when user wants to create, write, or build a new skill.
npx skills add vinvcn/mattpocock-skills-zh-cn --skill write-a-skill
Gather requirements — 询问用户:
Draft the skill — 创建:
Review with user — 展示 draft 并询问:
description 是 agent 决定是否加载 skill 时唯一看到的内容。它会和其他 installed skills 一起出现在 system prompt 中。agent 会读取这些 descriptions,并根据用户请求选择相关 skill。
Goal:给 agent 足够信息,让它知道:
Format:
Good example:
Bad example:
坏例子无法让 agent 区分它和其他 document skills。
以下情况添加 utility scripts:
相比 generated code,scripts 节省 tokens 并提升 reliability。
以下情况拆分为独立文件:
draft 完成后验证:
Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when user mentions PDFs, forms, or document extraction.Helps with documents.