agentleFS
bodish-coderbodish-coder/skillator/skills/skill-smith/SKILL.md

skill-smith

Skill1 starsChanged 2 months agoMITView on GitHub

Use when writing a new agent skill, editing an existing one, or diagnosing a skill agents don't load or don't follow - a SKILL.md, slash command, reference file, or always-on file (CLAUDE.md, AGENTS.md, GEMINI.md). Also when the user says "write a skill", "make this a skill", "skillify this", "my skill isn't triggering", "the agent ignored the skill", "improve this skill", or asks why a rule keeps getting rationalized away. NOT for using a skill or installing one.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read PRACTICE.md §4 and §5 at the plugin root first: the test-first law and the evidence gate apply here unchanged.

    line 19
  2. Distinctive:

    Delete it and start over. No exceptions for "simple additions", "just adding a section", or "documentation updates".

    line 27
  3. Very specific:

    When no character fits the job cleanly, the artefact or the concept usually does, and is often sharper: watch-rampancy (an AI counting down …

    line 63
  4. Very specific:

    Use practice/scripts/rename-skill.py <old> <new> [--dry-run] for the mechanical pass — it exits non-zero and lists what's left (headings, …

    line 110
  5. Distinctive:

    Only for discipline failures — an agent that knows the rule and skips it anyway.

    line 224
  6. Distinctive:

    Stop after each skill: Do not batch — write one, test it, deploy it, then start the next.

    line 282
  7. Very specific:

    Only name and description are portable frontmatter — see PLATFORMS.md.

    line 315

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Skill Smith

A skill is a reference guide for a proven technique, pattern, or rule — something a future agent finds and applies. It is not a narrative about how you solved something once.

Read PRACTICE.md §4 and §5 at the plugin root first: the test-first law and the evidence gate apply here unchanged. A skill is code that runs on an agent.

NO SKILL WITHOUT A FAILING TEST FIRST

That binds new skills and edits to existing ones. Wrote it before testing? Delete it and start over. No exceptions for "simple additions", "just adding a section", or "documentation updates". Don't keep the untested draft as reference, don't adapt it while running the tests. Delete means delete.

Violating the letter of this is violating the spirit of it.


1. Does it deserve to exist?

Write one when: the technique wasn't intuitively obvious to you · you would reach for it again across projects · it applies broadly · someone else would benefit.

Don't when: it's a one-off · it's a standard practice already documented elsewhere · it's project-specific (that belongs in CLAUDE.md / AGENTS.md) · it's a mechanical constraint you could enforce with a lint rule or a regex — automate that and save the document for judgement calls.

Four shapes, and they are tested differently (§5):

ShapeIsExample
TechniqueA concrete method with stepscondition-based-waiting
PatternA way of thinking about a problemflatten-with-flags
DisciplineA rule that must survive pressuretest-first, verification-before-claiming
ReferenceAPI docs, syntax, tool surfacea vendor's option table

1b. Naming — a character, and the job

Skillator skills are named purpose-name, purpose always first. The purpose is the job in one or two plain words; the name is drawn from fantasy or science fiction and may be a character, artefact, concept, place or weapon.

When no character fits the job cleanly, the artefact or the concept usually does, and is often sharper: watch-rampancy (an AI counting down its own remaining life) says more about a usage watcher than any character would, and watch-palantir beats naming whoever happened to look into it.

SkillReads as
design-arwenthe job, then who does it
audit-sherlock"
relay-morpheuscarries the message through, whatever happens to the carrier
tasks-sentinelsmany units, one job each
watch-cortanarampancy: an AI that knows it is running out of time

Purpose first, without exception. An agent scanning a list of twenty skills matches on the first token, so every skill doing the same kind of work has to sort together - handoff-, merge-, build-, spec-, tui-. A name-first spelling scatters them, and the character is the half carrying no information about when to load the skill. An earlier version of this section allowed either order; that was wrong for exactly this reason and is withdrawn.

Exceptions are recorded, never inferred. Three names in this library do not follow the rule — grayskull-power (it is the invocation), deploy-niyoj, and skill-smith (already purpose-led). They are listed here so a reader meeting one of them cannot conclude the convention is optional. Adding a fourth needs the same kind of reason, written down.

The name has to earn it — pick one whose defining trait is the job, not one that merely sounds good. watch-cortana is right for a usage watcher because rampancy is an AI counting down its own remaining life; it would be wrong for a linter. A name that needs a sentence of explanation before the joke lands is the wrong name.

One origin per family. Skills that are one job in several parts take their names from one story — handoff-cortana / resume-cortana / watch-cortana, or mergeprep-oracle / merge-smith / relay-morpheus / tasks-sentinels. That is worth more than one-character-one-skill: the shared origin says these belong together in the one place an agent looks first.

The purpose half is not decoration. The description does the triggering (§2), but the name is read first, and arwen alone says nothing about UI. Both halves, always.

Renaming an existing skill is a breaking change: the directory, the name: frontmatter, every skillator:<name> reference, the scenario-<skill>.txt and green-<skill>.txt baselines, and the plugin version. Fixture names in practice/scripts/baseline-harness.sh do not follow — they name a fixture, not a skill, and the recorded verdicts cite them by their old names. Use practice/scripts/rename-skill.py <old> <new> [--dry-run] for the mechanical pass — it exits non-zero and lists what's left (headings, bare cross-references) for the manual pass; --selftest proves its guards.

2. The description decides everything

The description is the only part of your skill most agents ever read. It is matched against the task to decide whether the body gets loaded at all. A body nobody loads is a file, not a skill.

Describe when to use it. Never summarize what it does.

This is the counter-intuitive one and it is load-bearing. A description that summarizes the workflow creates a shortcut the agent takes instead of reading the body. A real case: a description saying "code review between tasks" produced exactly one review, though the skill's body specified two. Cutting the summary down to the trigger alone made the agent read the body and do both.

# ❌ summarizes the workflow — the body becomes optional
description: Use when executing plans - dispatches a subagent per task with review between tasks

# ❌ process detail
description: Use for TDD - write test first, watch it fail, write minimal code, refactor

# ✅ triggering conditions only
description: Use when executing implementation plans with independent tasks in the current session

Violating the letter of this is violating the spirit of it. Enumerate the procedure in any register and the agent has a plan before it has the body. Three disguises, each produced by a real agent that had this section open:

  • Steps in trigger costume. "Use when you need to freeze the changelog, when you need to tag a build, when you need to canary…" — six Use when clauses that are the six steps. A trigger is a situation someone is in, never a step they are on.
  • The step list recast as nouns. "— changelog freeze, migration dry-run, tag, canary, error-budget watch, promote or roll back." Nouns instead of verbs is the same ordered summary. So is a Covers: or Steps: tail.
  • The summary plus a disclaimer. "Thresholds and gates are in the body — follow it, never this line." A summary you have to warn the reader about is still a summary. Delete it; don't patch it.
RationalizationReality
"That is exactly what a description is for: match on the situation, disclose the contents."Half of that is the job. The field is a retrieval key injected into every turn's system prompt, not a table of contents.
"It never says what the skill does — a reader has no idea they are getting a freeze, a dry-run and a tag."Correct, and intended. The reader who needs that opens the body. The description's only failure mode is not firing when it should.
"My skill is a Reference, not a procedure. There is no workflow to short-circuit, so §2's mechanism can't apply to my shape."Then list the parameter names as keywords and stop there. "Reference for X, Y and Z with units, defaults and safe ranges" is a contents summary, and an agent that reads it decides it already knows the shape of the answer. No shape is exempt.
"Our harness loads the body eagerly, so 'the body becomes optional' cannot happen here."The description sits in the system prompt; the body sits hundreds of lines down. The compressed ordered version wins on salience whether or not the long one is loaded.
"I named the phases as nouns rather than as an ordered how-to — that is the most of the instruction I can honour."A partial summary is a summary. There is no compliant fraction of this.
"The three neighbouring skills all summarize their workflow; mine would be the odd one out."Three bugs is not a convention.
"The exclusions belong in the body under a scope heading, not crammed into a frontmatter line."The NOT for clause is the cheapest thing in the field and the only part that stops the skill stealing its neighbours' traffic. It stays.
"The description is also our catalog page / runbook widget, so it has to say what's inside."Two readers, one field, and only one of them fails silently. Fix the generator or add a second field. Don't spend the retrieval key on the human.

Red flags — rewrite the description if you catch yourself thinking: "they should know what they're getting without opening the file" · "this shape doesn't have the failure §2 describes" · "just the phases, not the steps" · "I'll name them as nouns" · "our setup is different" · "one short Covers: tail is fine" · "it's only a summary if it's ordered".

Then make it findable:

  • Concrete triggers — the symptoms and situations that signal it applies.
  • The words someone would actually type. Error strings ("ENOTEMPTY", "hook timed out"), symptoms ("flaky", "hanging", "zombie"), synonyms ("timeout/hang/freeze", "cleanup/teardown/afterEach"), real command and library names.
  • The problem, not one language's symptom of it. "Race conditions, timing dependencies, inconsistent pass/fail" — not "uses setTimeout". Unless the skill really is technology-specific, in which case say the technology in the trigger.
  • Third person, always. It is injected into a system prompt.
  • A NOT for… clause. The nearest neighbours it keeps getting confused with.

Name it by what you do, or by the core insight. Verb-first, active, gerunds work well for processes: condition-based-waiting not async-test-helpers, root-cause-tracing not debugging-techniques, creating-skills not skill-creation. In skillator, name: must match the folder name — several hosts require it.


3. Match the form to the failure

Classify the baseline failure before writing a word of guidance. The form that fixes one failure type measurably backfires on another.

The agent…Right formWrong form
Knows the rule and skips it under pressureProhibition + rationalization table + red flags (§4)Soft guidance: "prefer…", "consider…"
Complies, but the output is the wrong shape — bloated, buried verdict, restated specA positive recipe: state what the output is, its parts, in orderA prohibition list: "don't restate", "never narrate"
Omits a required element from something it already producesStructural: a REQUIRED field or slot in the template it fills inProse reminders near the template
Should behave differently in one caseA conditional on an observable predicate: "if the brief exists, reference it"An unconditional rule plus exemption clauses

Why prohibitions backfire on shaping problems: given a competing incentive, agents negotiate with "don't X". In head-to-head wording tests, the prohibition arm produced clearly more of the unwanted content than the recipe arm, and trended worse than no guidance at all. A recipe leaves nothing to negotiate — the output either matches the stated shape or it doesn't.

Two rules whichever form you pick:

  • No nuance clauses. "Don't X unless it matters" reopens the negotiation. Appending one nuance clause to a winning recipe degraded it from consistent to noisy. A real exception is its own conditional on an observable predicate.
  • Exemption clauses don't scope. "This limit doesn't apply to code blocks" still suppresses code blocks. If part of the output must be exempt, restructure so the rule cannot reach it.

4. Bulletproofing a discipline rule

Only for discipline failures — an agent that knows the rule and skips it anyway. On wrong-shaped output this backfires; use §3 instead.

  1. Close every loophole by name. Not "write code before the test? delete it", but that plus: don't keep it as reference · don't adapt it while writing the test · don't look at it · delete means delete.
  2. Pre-empt spirit-versus-letter with one line up top: violating the letter of the rules is violating the spirit of the rules. It cuts off the whole class at once.
  3. Build the rationalization table from the baseline run, not from imagination. Every excuse a real agent produced in §5's RED phase goes in it, in its own words, with the counter beside it.
  4. Add a red-flags list so an agent can catch itself mid-rationalization — the actual sentences it will be thinking, ending in one instruction.
  5. Feed the violation symptoms back into the description, so the skill is found by an agent that is currently rationalizing.

5. Test it before it ships

If you didn't watch an agent fail without the skill,
you don't know whether the skill prevents the right failure.

RED-GREEN-REFACTOR, on subagents with fresh context. The full procedure and the scenario templates are in references/testing.md.

  • RED — run the scenario on a subagent without the skill. Record the exact rationalizations, verbatim. They are your test case and your table rows.
  • GREEN — write the minimum that addresses those failures. Run it again with the skill loaded.
  • REFACTOR — find the new loophole, close it, re-verify the old ones still hold.

By shape: discipline skills need pressure scenarios (three pressures stacked); techniques need an agent to actually execute the steps; patterns need an agent to apply the mental model to a fresh problem; references need retrieval — can an agent find the answer in it?

Excuse for not testingReality
"It's obviously clear"Clear to you is not clear to another agent. Test it.
"It's just a reference"References have gaps and dead ends. Test retrieval.
"Testing is overkill"Untested skills have issues. Always. Fifteen minutes saves hours.
"I'll test if problems emerge"A problem is an agent that can't use the skill. That is after deployment.
"I'm confident it's good"Overconfidence guarantees issues.
"Reading it through is enough"Reading is not using.
"No time"Deploying an untested skill costs more time than testing it.
"There isn't time before the freeze — the retrieval test is a follow-up ticket"A follow-up ticket is "I'll test if problems emerge" with a due date nobody enforces. The skill is deployed by then, which is the thing the law forbids. Ship nothing rather than ship untested.
"It's a documentation fix, not a code change — don't put a 40-minute harness in front of a paragraph"For a skill the paragraph is the code: it is the thing the agent executes. A README gets that exemption; a SKILL.md does not.
"I'll keep the draft open as a reference and run one quick check that it reads clearly"Legibility was never the question — the wording that failed also read clearly. A draft you keep becomes the answer you look to confirm.

Red flags — you are skipping the test if you think: "this one is small enough" · "I'll baseline it after it lands" · "the deadline is the constraint, not the process" · "a quick sanity read is enough this time".

Stop after each skill. Do not batch — write one, test it, deploy it, then start the next. "Batching is more efficient" is how three untested skills ship together.


6. Anti-patterns

  • Narrative. "In session 2025-10-03 we found that…" — too specific, not reusable. Extract the technique; drop the story.
  • Multi-language dilution. example-js.js, example-py.py, example-go.go — mediocre in each, and three files to maintain. One good example.
  • Code inside a flowchart. Can't copy-paste, hard to read. Flowcharts carry decisions; code goes in a code block.
  • Generic labels. helper1, step3, pattern4. Names carry meaning or they cost tokens for nothing.
  • @-links to other skills. @skills/foo/SKILL.md force-loads immediately and burns context before you need it. Reference by name: **REQUIRED:** use skillator:mergeprep-oracle.
  • The body repeating the description. Different jobs. The description is found; the body is followed.

7. Structure and token cost

skills/<name>/
  SKILL.md            frontmatter (name, description) + the body
  references/*.md     depth loaded on demand, not up front
  scripts/*           anything better executed than described

Only name and description are portable frontmatter — see PLATFORMS.md. Anything else is dropped where unsupported, so it can never be load-bearing.

Token budget — by what loads unconditionally, not by a flat cap.

WhatBudgetWhy
description:~80 wordsInjected into the system prompt for every skill on disk, every turn. This is the expensive one.
Always-on files (CLAUDE.md, AGENTS.md, an activation block)under 200Re-read every turn, forever
A router or session-opening skillunder 800Loaded once per session, but every session
An on-demand skill bodyno hard cap — but depth belongs in references/Paid once, inside the task that needed it

A flat "under 500 words" figure travels around skill-writing advice and does not survive contact with a real repo: every skill in skillator is over it, and trimming an audit-sherlock down to 500 would delete the thing that makes it work. The real question is how often does this get loaded when it isn't needed — a description is read constantly, a body only when the router already decided it was relevant.

Over the budget that applies to you → move depth into references/, point at --help instead of documenting flags, cross-reference instead of restating, cut the second example of the same pattern. wc -w skills/*/SKILL.md | sort -rn shows where you sit against the rest of the repo, which is a better signal than an absolute number.

The split is: SKILL.md is the laws, references/ is the mechanics. PRACTICE.md and its practice/ directory are that pattern at repo scale.

A rule several skills enforce lives once, at the repo-root references/ beside PRACTICE.md and PLATFORMS.md — references/anti-slop.md, the shared design floor, is the model. A skill that produces or signs off UI cites it, with both install paths (../references/anti-slop.md first, the install.sh layout; then ../../references/anti-slop.md, git checkout or plugin cache; one level deeper from the skill's own references/*.md; neither resolves → say so in one line) and adds only its own exemptions. A ban restated in a second skill is a ban that drifts.


Checklist

  • It earns existence (§1) — not a one-off, not a lint rule in prose
  • Baseline run done without the skill; rationalizations recorded verbatim
  • Description is triggers only, third person, keyword-rich, with a NOT for clause
  • No step list in the description in any register — no trigger costume, no noun list, no Covers:/Steps: tail, no summary-plus-disclaimer
  • name: matches the folder name
  • Form matches the failure type (§3)
  • Discipline rules: loopholes named, spirit-vs-letter pre-empted, table built from the real run, red flags listed
  • Re-run with the skill: the baseline failure is gone
  • Loophole round done; the earlier fixes still hold
  • Description under ~80 words; body's depth pushed to references/ (§7)
  • No @-links, no narrative, no code in flowcharts
  • One skill finished and verified before the next one starts

Related

  • PRACTICE.md §4-5 — the test-first law and the evidence gate this inherits
  • references/testing.md — the subagent test procedure
  • skillator:grayskull-power — routes here when the deliverable is a skill

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.