write-a-skill
Skill2 starsChanged 8 days agoMITView on GitHub
Write a new skill for this pack or for any agent: choosing the trigger, structuring the instructions, deciding what belongs in references, and testing whether the skill actually changes behaviour. Use when adding a skill, when an existing skill is not being loaded or is being ignored, or when turning a repeated correction into something an agent will apply by itself.
133 other projects use a version of this.
Adopted by
Most recently taken up by
- chiruu12/claude-skills-templatetheir own version, first seen Nov 29, 2026
- hcb2019/claude-code-skillstheir own version, first seen Nov 29, 2026
- jiuyang5354/skillstheir own version, first seen Nov 29, 2026
- javimosch/superclitheir own version, first seen Nov 24, 2026
- divysharma-code/Skillstheir own version, first seen Nov 24, 2026
- future3OOO/claude-skillstheir own version, first seen Nov 22, 2026
Used with
Projects with it also use zoom-out, to-issues and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
victorgarciaesgiSkillzoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
Also in 51 projects that use this
GoogleSkillto-issues
Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.
Also in 49 projects that use this
GoogleSkillto-prd
Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
Also in 48 projects that use this
kennethkeimSkillubiquitous-language
Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".
Also in 22 projects that use this
HK-hubSkillprd-to-plan
Turn a PRD into a multi-phase implementation plan using tracer-bullet vertical slices, saved as a local Markdown file in ./plans/. Use when user wants to break down a PRD, create an implementation plan, plan phases from a PRD, or mentions "tracer bullets".
Also in 7 projects that use this
MicrosoftSkilldiagnose
Use to systematically diagnose why scenarios fail — identifies root causes by analyzing agent traces, codebase, and behavioral patterns
Also in 49 projects that use this
- +2 more from google
Other versions133 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 133
- sanity-io/sanity★ 6.4ksame name
- victorgarciaesgi/regle★ 517same name
- amazingloft999-droid/mattpocock-skills★ 422same name
- InditexTech/weavejs★ 277same name
- ayoubben18/ab-method★ 193same name
- yamcodes/arkenv★ 151same name
- alex-on-ai/WebReaper★ 149same name
- aurorasoft2/Matt_Pocock_Skills★ 133same name
- better-stack-ai/better-stack★ 82same name
- javimosch/supercli★ 58same name
123 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- api-contractSkill
- bilingual-docsSkill
- debug-connectivitySkill
- diagnose-slowSkill
- plan-migrationSkill
- release-verifySkill
- review-diffSkill
- write-postmortemSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 129 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
One page of instructions, details on demand: If the body needs scrolling to find the first action, the agent acts on the first thing it saw.
- Distinctive: line 38
Name the failure first: Write one sentence: what does an agent do *without* this skill, that is wrong?
“Common” is measured: kept by at least 6 in 10 of the 129 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Write a skill
A skill is not documentation. Documentation is read by a person who wants to understand; a skill is loaded by an agent that is about to act. That difference decides every choice below — the trigger, the length, the order of the sections, and what gets left out.
When to use
- Adding a skill to this pack.
- An agent keeps making the same mistake and you have corrected it twice.
- A skill exists but never gets loaded — the trigger is wrong, not the content.
- A skill gets loaded but ignored — it is too long, or it starts with background instead of a rule.
Ground rules
- The description is the product. It is the only part an agent reads before deciding to load the file. Write the user's symptoms, not the module's name.
- One page of instructions, details on demand. If the body needs scrolling to find the first action, the agent acts on the first thing it saw.
- Facts before procedure. Numbers, commands and error strings that the agent would otherwise invent belong near the top, in a table.
- Every rule must be checkable. "Be careful" is not a rule; "run
ss -ltnpbefore editing code" is. - Say what not to do. The anti-pattern section is the most valuable part for a capable model: it knows the general good practice and needs to be told which shortcut is a trap here.
- End with a definition of done, including admitting what was not verified.
- Nothing executes. A skill is text. If it needs a script, the script is a tool, and it belongs somewhere a reviewer can see and test it.
Procedure
- Name the failure first. Write one sentence: what does an agent do without this skill, that is wrong? If you cannot, there is no skill — there is a note.
- Collect three real instances. Your own corrections, a bug report, a review comment. Skills written from a single anecdote overfit to it; three show the pattern.
- Write the description as a trigger sentence in the user's words, 60–600 characters, including the symptoms ("times out", "was never launched", "docs in two languages drift") and the contexts ("before publishing", "when reviewing generated code"). Test it by asking: if a user said only this, would loading be right?
Draft the body in this order, which is the order that survives a model with a short attention budget:
# Title One paragraph: what goes wrong without this. ## When to use (and what it is NOT for) ## Ground rules (numbered, 4–7, each checkable) ## Procedure (numbered steps, one action each) ## Anti-patterns (table: tempting move → why it is wrong) ## Definition of done (checkboxes, including negatives) ## Report format (a skeleton the agent can fill)- Move the lookup tables out. Commands per platform, templates, worked examples, glossaries — all
of that goes in
references/and is linked by name, at the point where it is needed. In this repository every reference must be linked, and the validator enforces it. - Keep the vocabulary literal. Name the commands, files and fields. An agent cannot follow "check
the usual logs" but can follow
docker logs <container> --since 10m. - Write the negative case: what the skill should not be used for, and where to go instead. This prevents the most common misuse, which is loading the wrong skill with confidence.
- Test it. See
docs/en/evaluating-a-skill.md: run the same task with and without the skill, and compare the decisions, not the prose. A skill that changes nothing is a blog post.
Anti-patterns
| Tempting move | Why it is wrong |
| Starting with background and philosophy | The agent acts on the first 200 tokens; put the rules there |
| Writing 800 lines "for completeness" | It will be truncated or skimmed; move the detail to references |
| Copying a framework tutorial | The model already knows the tutorial; it does not know your constraint |
| Vague verbs ("ensure", "consider", "be mindful") | Nothing to do, nothing to check |
| No definition of done | The agent stops when the output looks plausible, not when it is verified |
| Trigger naming the technology | Users report symptoms, not modules: they say "it will not connect", not "tcp" |
| A skill per file of the codebase | That is documentation with a top hat; skills are for decisions |
Definition of done
- One sentence exists describing the failure the skill prevents, with three real instances behind it.
- The description triggers on symptoms a user would actually type, in 60–600 characters.
## When to use, ground rules, procedure, anti-patterns, definition of done, report format.- Rules are checkable commands or explicit conditions, not adjectives.
- Lookup material is in
references/, linked, and no reference is orphaned. - The validator passes:
npm test. - Tested with and without the skill on a real task, and the difference is written down.
- Anything the skill cannot guarantee is stated as a limit inside the skill.
Report format
Skill: <name>
Prevents: <the failure, in one sentence>
Instances: <three real cases>
Trigger: <the description, verbatim>
Structure: <sections, and what went to references>
Tested: <task, with vs without, what changed>
Not covered: <situations this skill does not handle>The rubric this repository applies in review — and what would make a skill be rejected — is in references/rubric.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

