/skill-authoring:skill-dietfrom skill-authoring
Refines and corrects SKILL.md files by trimming bloat, fixing drift, and organizing facts by access level. Use before editing a skill or when code changes invalidate skill content.
Ships in skill-authoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Put each fact on the lowest level that still reaches the agent before it needs it.
| Level | Holds | Loaded |
|---|---|---|
description | one trigger per case | every session |
SKILL.md | what every task needs | when the skill is used |
references/ | what only some tasks need, behind a link that says when to read it | when that case comes up |
A skill that teaches a tool has two more levels: the tool's help, then its replies and errors. Exact names, fields and values live there, not in the skill. A check on the skill's output (linter, tests, renderer) can replace a rule, unless one miss costs a slow cycle.
Stop at the first step that handles the change.
SKILL.md, references, and the tool's docs.When code changes a name or behavior the skill relies on, update the skill in the same change. Index new public operations by name only, unless agents will call them often. Run the skill's coverage check, or add one if drift could recur.
Budget: put SKILL.md's size before and after in the commit message, and offset growth with a cut. When it is over 10% larger than at its last diet commit, or one idea appears in two places, do a full diet. node scripts/eval.mjs check <skill-dir> prints the size and checks links.
Verify: rerun the case that prompted the change in a fresh session, and any tests that assert the skill's text.
LICENSE (opens in a new tab)UPSTREAM.md (opens in a new tab)references/adapter.md (opens in a new tab)references/diet.md (opens in a new tab)references/eval.md (opens in a new tab)references/formats.md (opens in a new tab)references/tool-skills.md (opens in a new tab)scripts/eval.mjs (opens in a new tab)scripts/observe.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub staticaland/skills --plugin skill-authoring5 skills in this plugin
/progressive-disclosureRefactor a Claude Code skill so its conditional detail loads only when an observable project marker says it applies./prune-no-opsDelete the sentences in a skill that don't change behavior - asides, justification, emphasis, and restated defaults./skill-analyzerSplit a skill into scriptable and judgment work, proposing a script interface and a simplified SKILL.md./writing-for-agentsWriting documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.Other plugins' skills for the same job