From mattpocock-skills
Generates new agent skills with proper structure, progressive disclosure, and bundled resources. Guides through requirements gathering, drafting, file splitting, and review.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mattpocock-skills:write-a-skillThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. **Gather requirements** — 询问用户:
Gather requirements — 询问用户:
Draft the skill — 创建:
Review with user — 展示 draft 并询问:
skill-name/
├── SKILL.md # Main instructions (required)
├── REFERENCE.md # Detailed docs (if needed)
├── EXAMPLES.md # Usage examples (if needed)
└── scripts/ # Utility scripts (if needed)
└── helper.js
---
name: skill-name
description: Brief description of capability. Use when [specific triggers].
---
# Skill Name
## Quick start
[Minimal working example]
## Workflows
[Step-by-step processes with checklists for complex tasks]
## Advanced features
[Link to separate files: See [REFERENCE.md](REFERENCE.md)]
description 是 agent 决定是否加载 skill 时唯一看到的内容。它会和其他 installed skills 一起出现在 system prompt 中。agent 会读取这些 descriptions,并根据用户请求选择相关 skill。
Goal:给 agent 足够信息,让它知道:
Format:
Good example:
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.
Bad example:
Helps with documents.
坏例子无法让 agent 区分它和其他 document skills。
以下情况添加 utility scripts:
相比 generated code,scripts 节省 tokens 并提升 reliability。
以下情况拆分为独立文件:
draft 完成后验证:
npx claudepluginhub vinvcn/mattpocock-skills-zh-cn2plugins reuse this skill
First indexed Jun 4, 2026
Guides creation of new Claude Code skills with SKILL.md templates, structure, progressive disclosure, review checklists, and optional scripts/references.
Creates new Claude Code agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
Guides creation of structured agent skills with progressive disclosure, bundled scripts, and reference files. Use when building a new skill.