npx skills add ...
npx skills add mattpocock/skills --skill write-a-skill
npx skills add mattpocock/skills --skill write-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
The same skill content is published under more than one repo. The install counts are split across them; any of these commands works.
Gather requirements - ask user about:
Draft the skill - create:
Review with user - present draft and ask:
The description is the only thing your agent sees when deciding which skill to load. It's surfaced in the system prompt alongside all other installed skills. Your agent reads these descriptions and picks the relevant skill based on the user's request.
Goal: Give your agent just enough info to know:
Format:
Good example:
Bad example:
The bad example gives your agent no way to distinguish this from other document skills.
Add utility scripts when:
Scripts save tokens and improve reliability vs generated code.
Split into separate files when:
After drafting, verify:
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.