/officialunofficial-skills:writing-great-skillsfrom Official Unofficial Skills
Write and edit Claude Code skills using best practices for predictability, invocation models, description writing, and information hierarchy.
Ships in Official Unofficial Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A skill exists to squeeze determinism out of a stochastic system. Predictability — the agent walking the same process every run, not emitting the same output — is the root virtue; every lever below is in service of it.
Bold terms are defined in GLOSSARY.md; look them up there for the full meaning.
Two choices, each with its own cost:
disable-model-invocation, and write a model-facing description with rich trigger phrasing ("Use when the user wants…, mentions…").disable-model-invocation: true; the description turns human-facing — a one-line summary, trigger lists stripped.Choose model-invocation only when the agent must reach the skill on its own, or another skill must. If it only ever fires by hand, make it user-invoked and pay no context load.
When user-invoked skills pile up past what you can hold in your head, that accumulated cognitive load is cured by a router skill: one user-invoked skill that names the others and when to reach for each.
A model-invoked description does two jobs — state what the skill is, and list the branches that should trigger it. Every word adds context load, so a description earns even harder pruning than the body:
A skill is built from two content types — steps and reference — that blend freely: a skill can be all steps, all reference, or both. The core call is which to use and where each lands on the information hierarchy, a ladder ranked by how immediately the agent needs the material:
SKILL.md, the primary tier: what the agent does, in order. Each step closes on a completion criterion, the condition telling the agent the work is done. Make it checkable (can the agent tell done from not-done?) and, where it counts, exhaustive ("every modified model accounted for", not "produce a change list") — a vague criterion invites premature completion.SKILL.md, consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung) — a fine arrangement, not a smell. This skill is all reference.SKILL.md into a separate file, reached by a context pointer, loaded only when the pointer fires. (Runs from disclosed reference — a sibling file like GLOSSARY.md, still part of the skill — through fully external reference that lives outside the skill system and any skill can point at.)A demanding completion criterion drives thorough legwork — the digging the agent does inside the work — whether the skill has steps or not, since "every rule applied" binds flat reference just as "every step done" binds a sequence.
Push too little down and the top bloats; push too much and you bury material the agent actually needs. That tension is the whole call.
Progressive disclosure is the move down the ladder — out of SKILL.md into a linked file — so the top stays legible. Mechanics: a linked .md file in the skill folder, named for what it holds (this skill discloses its full definitions to GLOSSARY.md). Some skills are used in more than one way, and each distinct way is a branch — different runs taking different paths through the skill. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. A context pointer's wording, not its target, decides when and how reliably the agent reaches the material.
Where the ladder settles how far down a piece sits, co-location settles what sits beside it once there: keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part pulls its neighbours in with it.
Granularity is how finely you divide skills, and each cut spends one of the two loads, so split only when the cut pays for itself. Two cuts:
Keep each meaning in a single source of truth: one authoritative home, so changing the behaviour is a one-place edit.
Check every line for relevance: does it still bear on what the skill does?
Then hunt no-ops sentence by sentence, not just line by line: run the no-op test on each sentence in isolation, and when one fails it, delete the whole sentence rather than shave words off it. Be aggressive — most prose that fails should go, not be reworded.
A leading word is a compact concept already living in the model's pretraining that the agent thinks with while running the skill (e.g. lesson, fog of war, tracer bullets). Repeated across the text (though not always — a strong leading word may only be needed once), it accrues a distributed definition and anchors a whole region of behaviour in the fewest tokens, by recruiting priors the model already holds.
It serves predictability twice. In the body it anchors execution: the agent reaches for the same behaviour every time the word shows up. In the description it anchors invocation: when the same word lives in your prompts, docs, and code, the agent links that shared language to the skill and fires it more reliably.
Hunt for chances to refactor skills onto leading words. A triad spelled out at three sites (duplication), a description spending a sentence to gesture at one idea — each is a passage begging to collapse into a single token. For example:
You win twice: fewer tokens, and a sharper hook for the agent to hang its thinking on. Assume every skill is carrying restatements that leading words retire — go find them.
Use these to diagnose issues the user is having with a skill.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub officialunofficial/skills --plugin officialunofficial-skills85 skills in this plugin
/alignmentMeasures a running page for edges, gaps, centres and radii that miss by a pixel or two, judges visual weight, and returns a numbered report with proof./animateBuilds a web animation from scratch and writes the code. Decides in order whether it should animate at all, its purpose, the tool, the properties, the easing and duration or spring, how it interrupts and exits, and reduced motion. Use when asked to animate something, add motion, build a transition, or make a component feel alive. For React Native or Expo use animate-expo. To critique existing motion use review-animations. To audit a whole codebase use improve-animations./animate-expoBuilds animations in React Native and Expo with Reanimated, Gesture Handler, Expo Router and expo-haptics. Decides in order whether to animate, which tool, which properties, spring or timing, and how to stay on the UI thread. Use when animating anything in an Expo app, adding gestures, sheets, screen transitions, press feedback or haptics, or fixing motion that stutters on a device. For web animation use `animate`./animation-performanceDiagnoses and fixes web animations that drop frames. Covers the layout, paint and composite pipeline, cheaper property swaps, CSS and WAAPI against requestAnimationFrame, the accelerated path in Motion, React re-renders per frame, inherited CSS variables, blur cost, and when will-change helps. Use when an animation is janky, choppy or stutters, when choosing which property to animate, or when reaching for will-change or GPU layers. For easing, duration or whether to animate at all, use animate./animation-vocabularyNames a web animation or motion effect from a loose description, for example "the bouncy thing when a popover opens" is Pop in and "the iOS scroll that resists and snaps back" is Rubber-banding. Use when the user asks "what is it called when..." or describes a motion effect and wants the right word to give a designer or an agent. It names effects. It does not design or build them./apple-designApplies Apple's approach to fluid, physical interfaces on the web. Use when building or reviewing gesture-driven UI, spring animation, drag, swipe or sheet interactions, momentum, interruptible transitions, rubber-banding, translucent materials and depth, type tracking and leading, reduced motion, or when a design needs Apple's design principles as a frame.