agentleFS
innovationenginesinnovationengines/skills-repo/write-a-skill/SKILL.md

write-a-skill

Skill0 starsChanged 2 months agoMITView on GitHub

Turn a plain-language description of a desired behavior into a properly structured, installable SKILL.md following Anthropic's skill-authoring best practices: trigger-optimized description, explain-the-why instructions, output templates, examples, and anti-trigger calibration. Use this skill whenever the user says "make a skill", "write a skill for", "turn this into a skill", "create a SKILL.md", describes a behavior they want Claude to follow every time, or complains about re-explaining the same instructions across chats (a recurring-behavior request is a skill request in disguise). Do NOT use for one-off task instructions, MCP server development, or general prompt-writing advice.

122 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use zoom-out, to-issues and 9 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.
  • victorgarciaesgiSkill

    zoom-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 48 projects that use this

  • GoogleSkill

    to-issues

    Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.

    Also in 43 projects that use this

  • kennethkeimSkill

    ubiquitous-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 20 projects that use this

  • GoogleSkill

    to-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 42 projects that use this

  • HK-hubSkill

    prd-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

  • MicrosoftSkill

    diagnose

    Use to systematically diagnose why scenarios fail — identifies root causes by analyzing agent traces, codebase, and behavioral patterns

    Also in 44 projects that use this

  • +2 more from google

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 116 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When should it fire: what would the user actually type?

    line 37
  2. Distinctive:

    When must it NOT fire: the near-miss cases?

    line 38
  3. Distinctive:

    Ask only for what's genuinely missing, 3-5 questions at most.

    line 43
  4. Very specific:

    Keep it under 1024 characters.

    line 69
  5. Distinctive:

    Every rule either states its reason or is self-evident.

    line 141
  6. Very specific:

    If a packaging script is available (e.g.

    line 144

“Common” is measured: kept by at least 6 in 10 of the 116 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Write a Skill

A skill is an onboarding guide for an agent: a folder with a SKILL.md that loads on demand and teaches Claude a repeatable behavior. This meta-skill converts "here's what I want" into that document, correctly structured, so the user doesn't need to know the format, the YAML rules, or the triggering mechanics.

The stakes are asymmetric. A skill gets invoked hundreds of times by someone who will never read its source, so an hour of care at authoring time is amortized across every future invocation, and a flaw (a description that never triggers, an instruction that overfits) is paid on every one.

Step 1: Extract the intent

From the user's description, and from the conversation itself if they said "turn THIS into a skill" (mine the thread for the workflow, the corrections they made, the output format they accepted), establish:

  1. What behavior should the skill produce?
  2. When should it fire: what would the user actually type?
  3. When must it NOT fire: the near-miss cases?
  4. What does a good output look like: is there a fixed format?
  5. Does anything need to be deterministic (a script) rather than generated fresh each time?

Ask only for what's genuinely missing, 3-5 questions at most. The questions about anti-triggers (#3) and output format (#4) are the ones users never volunteer and always have opinions about.

Step 2: Write the frontmatter

Name: lowercase, hyphens, max 64 chars, matching the folder name. Verb phrases or clear nouns: fact-checker, grill-me, not my-cool-skill-v2.

Description: this is the skill's entire interface for triggering. Claude sees only the name + description when deciding whether to load the skill, choosing among potentially 100+ of them. Build it from four parts, in this order:

  1. What it does, one sentence, concrete active verbs, third person.
  2. Trigger contexts, written pushy, because Claude under-triggers skills by default: "Use this skill whenever the user mentions X, Y, asks to Z, or [implicit situation], even if they don't explicitly say [keyword]."
  3. Proactive cases if any: "ALSO use when..." for situations where the user won't ask but the skill should apply.
  4. Exclusions: "Do NOT use for..." naming the tempting near-misses. Over-triggering is what makes users uninstall skills, so the exclusions earn their space.

Keep it under 1024 characters. Always write it as a YAML block scalar (description: >-): a plain unquoted description containing a colon followed by a space breaks YAML parsing, and this is the single most common packaging failure.

Step 3: Write the body

Target under 500 lines; under 150 is typical for behavior skills. Use imperative voice. Structure:

# Skill Name

[Opening: 1 short paragraph on WHY this skill exists — what failure
it prevents. This paragraph does real work: it's the rubric Claude
uses for every edge case the rest of the file doesn't cover.]

## Core rule
[The one non-negotiable, if there is one, stated plainly.]

## Workflow
[Numbered steps in execution order. For each step that could be done
lazily or wrongly, attach the reason it matters.]

## Output format
[If output has a fixed shape, show the exact template in a fenced
block. "Use this exact structure" + template beats paragraphs of
format description.]

## Calibration / When NOT to apply
[Both failure directions: what under-use looks like, what over-use
looks like, and which is worse for this skill. A rough threshold.]

## Example
[At least one realistic worked example: plausible messy input, the
skill's actual output. Realistic means typos, buried details, and
context, not a sanitized textbook case.]

Authoring principles that separate great skills from mediocre ones:

  • Explain the why, not just the what. "Never paraphrase quotes, because misattribution is the most common quote failure" generalizes; "NEVER paraphrase quotes" doesn't. All-caps MUST/ALWAYS/NEVER strings are a yellow flag: usually a missing explanation.
  • Only add what Claude doesn't know. Claude knows what an email is; it doesn't know the user's escalation policy. Every generic sentence costs context that specific sentences could use.
  • Generalize past the examples. The skill will run on a million inputs; instructions overfitted to the one example in the file will fail on the other 999,999.
  • Density over decoration. Once loaded, every token of the skill competes with the actual conversation.

Step 4: Bundle resources only when earned

  • scripts/: for deterministic or repetitive work; scripts execute without loading their code into context, only output costs tokens. Signal: the same helper logic would be regenerated on every run.
  • references/: docs loaded only when needed. Split content out of SKILL.md when paths are mutually exclusive (per-framework guides), and tell SKILL.md exactly when to read each file.
  • assets/: templates, fonts, boilerplate used in the output.

Most behavior skills need none of these. Don't create empty folders.

Step 5: Validate, package, deliver

Before packaging, check:

  1. Frontmatter parses (block scalar description; name matches folder).
  2. Description read alone answers "when would Claude pick this?"
  3. At least one exclusion case is named.
  4. Every rule either states its reason or is self-evident.
  5. The example is realistic, not sanitized.

If a packaging script is available (e.g. skill-creator's package_skill), produce the installable .skill; note that output must go to a writable directory, and installed skill locations are often read-only, so copy elsewhere before editing an existing skill. Deliver both the package and the readable SKILL.md, then offer, once, to test with 2-3 realistic prompts.

Worked example

User input: "make a skill that stops me from sending angry emails"

Resulting frontmatter:

---
name: cooldown-check
description: >-
  Intercept emotionally charged messages before they're sent by flagging
  heat markers, predicting recipient reaction, and offering a rewrite
  that keeps the substance while cutting the heat. Use this skill
  whenever the user drafts or asks to send an email, Slack message, or
  reply written in anger or frustration, mentions a conflict with the
  recipient, uses hostile or sarcastic language in a draft, or asks "is
  this too harsh". Do NOT use for deliberately firm messages the user
  has consciously chosen (final warnings, formal complaints), or for
  messages with no emotional charge.
---

Note the moves: the vague wish became concrete behavior (flag, predict, offer rewrite), triggers include situations the user didn't name (sarcasm in a draft, "is this too harsh"), and the exclusion protects deliberate firmness, because a skill that softens a message the user MEANT to be firm would get uninstalled within a week.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.