write-a-skill
Skill0 starsChanged 7 months agoMITView on GitHub
Create new Claude Code skills with proper structure, progressive disclosure, and quality standards. Use when user wants to create, write, build, or design a new skill. Also use when asked to improve, audit, or restructure an existing skill. Covers standalone skills and MCP-enhanced workflows.
133 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- hcb2019/claude-code-skillstheir own version, first seen Nov 29, 2026
- jiuyang5354/skillstheir own version, first seen Nov 29, 2026
- AmirAzy/HoNspottheir 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 prd-to-plan, diagnose and 3 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.
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
semtexfromuaSkillhow-to
Курс typing-уроків по існуючому проекту — «як написати його з нуля»: аналіз → план у .practicum/course.md → покрокова генерація уроків. Використовуй для команди /vibe-typing:how-to.
Also in 3 projects that use this
GoogleSkillsetup-matt-pocock-skills
Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
Also in 36 projects that use this
MicrosoftSkillgrill-with-docs
Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.
Also in 58 projects that use this
Other versions133 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- atman-33/multi-agent-ff15★ 415% same
Wrote their own version · 132
- 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
122 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 repository59 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cavemanSkill
- context-engineeringSkill
- deprecation-migrationSkill
- design-an-interfaceSkill
- domain-modelSkill
- edit-articleSkill
- git-guardrails-claude-codeSkill
- github-triageSkill
- grill-meSkill
- autoplanSkill
- benchmarkSkill
- browseSkill
- canarySkill
- carefulSkill
- codexSkill
- context-restoreSkill
- context-saveSkill
- csoSkill
- design-consultationSkill
- design-htmlSkill
- design-reviewSkill
- design-shotgunSkill
- devex-reviewSkill
- document-releaseSkill
- freezeSkill
- guardSkill
- healthSkill
- investigateSkill
- land-and-deploySkill
- learnSkill
- make-pdfSkill
- office-hoursSkill
- plan-ceo-reviewSkill
- plan-design-reviewSkill
- plan-devex-reviewSkill
- plan-eng-reviewSkill
- qa-onlySkill
- qaSkill
- retroSkill
- reviewSkill
- setup-deploySkill
- shipSkill
- unfreezeSkill
- improve-codebase-architectureSkill
- incremental-implementationSkill
- performance-optimizationSkill
- pr-triageSkill
- qaSkill
- request-refactor-planSkill
- security-hardeningSkill
- setup-pre-commitSkill
- spec-driven-developmentSkill
- tddSkill
- to-issuesSkill
- to-prdSkill
- triage-issueSkill
- ubiquitous-languageSkill
- zoom-outSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 10 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 129 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
NOT: when user wants to use an existing skill — just invoke it directly
- Distinctive: line 31
What exists already?: Check for similar skills that could be extended instead.
- Very specific: line 60
No XML angle brackets (< >) in frontmatter
- Distinctive: line 91
Test the description: could Claude distinguish this skill from 20 others based solely on the description?
- Distinctive: line 95
Follow this template — see references/target-template.md for the full annotated version.
- Distinctive: line 129
Add utility scripts when the operation is deterministic — validation, formatting, file generation.
- Distinctive: line 162
Trigger test: Run 3 prompts that SHOULD trigger the skill, 2 that should NOT.
- Distinctive: line 170
Comparison test: Run the same task with and without the skill.
- Distinctive: line 186
No anti-patterns section (agent will find creative ways to cut corners)
- Distinctive: line 202
If auditing existing skills: Use this skill's quality criteria + template as the benchmark
- Very specific: line 208
DO NOT: start writing SKILL.md before gathering requirements — you'll build the wrong skill and waste time restructuring
- Distinctive: line 210
DO NOT: put "helps with X" as the description — this tells Claude nothing about when to trigger the skill
- Very specific: line 212
DO NOT: create a README.md inside the skill folder — all documentation goes in SKILL.md or references/
“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
Skills encode repeatable workflows so Claude follows them consistently without re-explanation. This skill ensures every new skill meets quality standards: specific enough to trigger correctly, structured for progressive disclosure, and verifiable against evidence-based criteria.
When to Use
- User wants to create a new skill from scratch
- User wants to restructure or improve an existing skill
- User wants to audit skill quality against best practices
- NOT when user wants to use an existing skill — just invoke it directly
Process
1. Gather requirements
Interview the user. Don't start writing until you understand:
- What task/domain? What repeatable workflow does this skill cover?
- 2-3 concrete use cases. "When would you invoke this?" Get specific trigger phrases.
- What tools needed? Built-in Claude capabilities, MCP servers, Bash scripts?
- Who's the audience? Solo dev? Team? Community? This affects how much context to embed.
- What exists already? Check for similar skills that could be extended instead.
"Describe 2-3 scenarios where you'd reach for this skill. What would you say to trigger it?"
2. Design the skill structure
Decide what goes where using progressive disclosure (3 levels):
| Level | What | When Loaded | Budget |
| Frontmatter (YAML) | Name + description with triggers | Always — in system prompt | < 1024 chars |
| SKILL.md body | Full instructions, process, checklists | When skill is triggered | < 4000 words |
| references/ | Detailed docs, examples, lookup tables | On demand when needed | No hard limit |
skill-name/
├── SKILL.md # Required — instructions
├── references/ # Optional — detailed docs loaded on demand
│ ├── examples.md
│ └── api-patterns.md
├── scripts/ # Optional — deterministic operations
│ └── validate.sh
└── assets/ # Optional — templates, fonts, iconsRules:
- Folder name: kebab-case only (
my-skill-name) - File must be exactly
SKILL.md(case-sensitive) - No
README.mdinside skill folders - No XML angle brackets (
<>) in frontmatter - No "claude" or "anthropic" in the skill name
3. Write the frontmatter
The description is the most important part — it's the ONLY thing Claude sees when deciding whether to load the skill.
Structure: [What it does] + [When to use — trigger phrases] + [Key capabilities]
---
name: my-skill
description: |
[One sentence: what it does]. Use when [trigger 1], [trigger 2],
or [trigger 3]. Also handles [capability]. Not for [negative trigger].
---Good:
description: |
Analyze Figma design files and generate developer handoff docs. Use when
user uploads .fig files, asks for "design specs", "component docs", or
"design-to-code handoff". Outputs structured markdown with measurements.Bad:
description: Helps with designs.Test the description: could Claude distinguish this skill from 20 others based solely on the description? If not, add specificity.
4. Write the SKILL.md body
Follow this template — see references/target-template.md for the full annotated version.
Required sections:
- Opening paragraph — What the skill does and WHY it exists (philosophy, not just mechanics)
- When to Use — Specific scenarios + negative cases ("NOT when X — use Y instead")
- Process — Step-by-step with concrete commands/examples. Include thinking gates where user understanding matters.
- Common Rationalizations — Table of shortcuts people try + why they fail. Prevents agent laziness.
- Verification Checklist — Evidence-based completion criteria. Not "seems right" but "test X passes".
- Anti-patterns — Explicit DO NOT list with reasoning.
Optional sections (include when relevant):
- Prerequisites — What must be true before starting
- Red Flags — Signs the skill is being misapplied
- Related Skills — Workflow connections (
<- previous,-> next)
5. Write reference files
Move content to references/ when:
- SKILL.md exceeds ~100 lines or ~4000 words
- Content has distinct domains (e.g., separate API patterns from examples)
- Advanced features are rarely needed
- Lookup tables or format specs are involved
Link clearly from SKILL.md:
Before writing queries, consult [references/api-patterns.md](references/api-patterns.md) for rate limiting and pagination.6. Add scripts (if needed)
Add utility scripts when the operation is deterministic — validation, formatting, file generation. Scripts save tokens and improve reliability vs. generated code.
# Example: validation script
python scripts/validate.py --input {filename}7. Review against quality criteria
See references/quality-criteria.md for the full rubric.
Quick check — every skill must be:
- Specific — Description includes trigger phrases, not vague capabilities
- Verifiable — Verification checklist has evidence-based criteria, not subjective judgment
- Battle-tested — Process handles common failure modes (error handling, edge cases)
- Minimal — SKILL.md is concise; detailed content lives in references/
Structural check:
- Folder: kebab-case, no spaces/capitals
- SKILL.md: exact filename, valid YAML frontmatter
- Description: under 1024 chars, includes WHAT + WHEN + NOT WHEN
- Body: under 4000 words (soft limit)
- No README.md in skill folder
- All referenced files exist and links resolve
- Common Rationalizations table present (minimum 3 entries)
- Anti-patterns section present (minimum 3 items)
8. Test the skill
Three types of testing:
Trigger test: Run 3 prompts that SHOULD trigger the skill, 2 that should NOT. Verify correct routing.
Functional test: Execute the skill end-to-end on a real scenario. Verify:
- Process steps followed in order
- Thinking gates actually stop and wait
- Anti-patterns respected
- Verification checklist items are checkable
Comparison test: Run the same task with and without the skill. The skill should produce better results with fewer back-and-forth messages.
Common Rationalizations
| Shortcut | Why It Fails |
| "The description can be short, Claude will figure it out" | Description is the ONLY signal for trigger routing. Vague descriptions cause under-triggering or over-triggering across 70+ installed skills. |
| "I'll skip the anti-patterns section, it's obvious" | Agents take the path of least resistance. Without explicit prohibitions, they rationalize shortcuts — especially under long contexts where instructions blur. |
| "Common Rationalizations table is meta/recursive, skip it" | This table is the single most effective section for preventing agent laziness. It pre-empts the exact excuses agents use to cut corners. |
| "I don't need a verification checklist, I'll know when it's done" | Subjective completion = inconsistent results across sessions. Evidence-based criteria make the skill reproducible. |
| "SKILL.md can be long, I'll put everything in one file" | Progressive disclosure exists for a reason. Large SKILL.md burns tokens on every invocation even when only basic instructions are needed. |
Red Flags
- Skill description matches 5+ unrelated queries (too broad)
- SKILL.md over 5000 words with no references/ directory (not using progressive disclosure)
- No anti-patterns section (agent will find creative ways to cut corners)
- Verification checklist uses subjective language ("looks good", "seems right")
Verification Checklist
- User confirmed the skill covers their intended use cases
- Description triggers correctly on 3 test queries and doesn't trigger on 2 unrelated queries
- All 6 required sections present in SKILL.md body
- Referenced files in references/ and scripts/ exist and links resolve
- SKILL.md body under 4000 words
- Frontmatter description under 1024 characters
- Common Rationalizations table has 3+ entries relevant to the skill's domain
- Anti-patterns list has 3+ items with reasoning
Related Skills
- If auditing existing skills: Use this skill's quality criteria + template as the benchmark
- If building OSS skills: ->
oss-explore-repoto understand the repo first - If skill needs MCP integration: Consult references/target-template.md for MCP coordination patterns
Anti-patterns
- DO NOT start writing SKILL.md before gathering requirements — you'll build the wrong skill and waste time restructuring
- DO NOT copy another skill's structure without adapting — each skill's Common Rationalizations and Anti-patterns must be domain-specific, not generic
- DO NOT put "helps with X" as the description — this tells Claude nothing about when to trigger the skill
- DO NOT skip the review step — structural issues (missing sections, oversized body, broken links) are cheap to catch now and expensive to debug later
- DO NOT create a README.md inside the skill folder — all documentation goes in SKILL.md or references/
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.

