ask-matt
MAmattpocock/skills337k4,978 new stars in the last 7 days
How to write or improve a skill. Use when the user asks you to remember how to do a task or to make a skill, when you solved a multi-step task that is likely to come up again, or when a skill you followed was wrong or incomplete.
A skill is a folder skills/<name>/ with a SKILL.md and optional helper files (scripts, templates,
reference notes). It is the instructions for doing one kind of task the way this user wants it, so a
later chat gets it right the first time.
Check the skills list first. If one already covers this kind of task, improve it instead of adding a near-duplicate.
Pick a short lowercase name with dashes for the kind of task, not this one instance:
weekly-report, not march-report.
Write skills/<name>/SKILL.md:
---
name: weekly-report
description: One or two sentences saying what it does AND when to use it.
---
# Weekly report
## Steps
1. The steps in the order they are done, with the exact commands, where inputs and outputs
live, and the decisions to make on the way.
## How the user wants it
- Format, tone, length, what to leave out.
## Pitfalls
- A general rule, plus a short reason why. Put it next to the step it affects when you can.
Put scripts next to it (e.g. skills/weekly-report/make_report.py) and call them from the steps.
Keep SKILL.md short and concrete. Move long reference material into a few topical files
(reference.md, examples.md) and say in SKILL.md when to read them.
Test it once by following it, then tell the user it exists.
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
OBobra/superpowers331k4,772 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days