/skill-development:optimizing-skillsfrom skill-development
Disciplined, validation-gated revision of an existing skill so each edit is a measured improvement rather than a guess.
Ships in skill-development. 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.
Treat the skill document as the parameter under optimization: change it only when the change demonstrably beats the version you already ship. This is the discipline distilled from SkillOpt (microsoft/SkillOpt, arXiv:2605.23904) — its training apparatus dropped, its reproducibility discipline kept. The point is to stop editing skills on intuition and start editing them on evidence.
A skill edit is only worth shipping if it strictly improves measured behavior on a held-out check. Most edits that feel like improvements don't move the needle, and some quietly regress. The gate below is what separates a real improvement from a confident guess.
best = what you currently ship (never let it
silently degrade). candidate = best + your proposed edits.subagent_type=general-purpose) with the skill version in
context, or evaluate by hand for small sets. Give the scoring agent the skill
version and the task, and nothing else. Never hand it the ledger, your
revision notes, or the diagnosis that motivated the edit: it will solve the
task from those instead of from the skill, and the score stops measuring the
skill. WikiSkill (arXiv:2608.27454) ablated exactly this and lost 2.8 points
of final quality, 7.8 on their hardest split, by letting the worker read the
improver's knowledge store. Score per criterion, not one
collapsed pass/fail. When a task carries several criteria, the criterion that
decides accept/reject is the failure that prompted this revision; the
others are regression guards that must not get worse. Collapsing criteria
masks the win: in the down-skilling-v1.2.0 retro, the edit drove architectural
hallucination 60%→0% while an unrelated length criterion stayed 0/5 in both
arms — a single combined pass/fail scored that as a 0–0 tie and would have
rejected a large, real improvement.candidate strictly beats best on the triggering-failure
criterion, with no regression guard worse. Ties → reject, keep best. An edit
that doesn't move the needle does not ship.When the skill's own output is compiled by an Agent (down-skilling and creating-skill produce a prompt an author writes from the SKILL), score ≥2 author samples per version, or fix one author across both arms. A single author sample per arm lets author capability dominate the edit effect: the same down-skilling edit measured 95%→0% with one author pair and 60%→0% with another — real either way, but n=1 cannot tell a real edit from a lucky author.
This two-tier best/candidate split is the heart of it: a working revision
can explore, but the shipped skill only ever ratchets upward.
Cap edits per revision — default ~4 distinct add/replace/delete operations, fewer as the skill matures. Large speculative rewrites drift and destroy your ability to attribute a regression to a cause. If a revision wants more edits than the budget, rank and keep the top ones (below) and let the rest wait.
Separate the evidence before proposing edits:
For both: edits must generalize (never hardcode task-specific values), and must not duplicate content already in the skill — patch genuine gaps only.
When candidate edits exceed the budget, keep them in this priority order:
Drop the rest. They can return next revision if still warranted.
If a skill has a battle-tested core that routine edits keep eroding, fence it off and treat it as off-limits to fast edits. Revisit it only on a deliberate longitudinal review: compare the same check tasks across several versions to catch slow drift and regressions that single-edit review misses. (SkillOpt fences this region with HTML-comment markers and only rewrites it at epoch boundaries — the same idea, manual cadence.)
FIRST action of any revision, before you score anything:
python3 scripts/skill_ledger.py check --skill <name> --before best.md --after candidate.md
Exit 1 means this exact edit was proposed before and failed the gate. Read the recorded criterion and score, then propose something else. Do not re-score it.
After the gate decides, record the outcome — accepted or rejected:
python3 scripts/skill_ledger.py record --skill <name> \
--before best.md --after candidate.md --outcome rejected \
--criterion "<the triggering failure>" --score-before 0.6 --score-after 0.6
The ledger computes the diff itself and appends it. A rejected candidate is the artifact worth keeping. The edit reverts and the record stays. The next session cannot see this one, which is why the record has to live outside your context rather than in it.
This is WikiSkill's skill-impact.md (arXiv:2608.27454), whose outer loop
keeps a never-rolled-back record of every proposal and its fate while the skill
itself rolls back. Their proposer is told in prose not to repeat rejected
approaches. check makes that mechanical instead, so it no longer depends on
anyone having read the ledger. The script lives in claude-workspace at
scripts/skill_ledger.py.
The ledger above holds the artifacts: which diffs were tried and how they
scored. remember() holds the judgment the diffs cannot carry. After a
revision, record what you learned about editing this skill — which kinds of
edits helped, which were brittle, redundant, or harmful — via remember()
tagged with the skill name. Before the next revision, recall()
it. This is the compounding part: each revision starts smarter than the last,
the way SkillOpt's optimizer-side meta-skill conditions its future edits.
Edits are literal string operations (the Edit tool): the target text must
match exactly or the edit is a silent no-op. Keep targets unique and
verbatim. Prefer append / insert-after-heading / replace-exact / delete-exact,
and verify each edit landed before scoring.
best; accept decided by the triggering-failure criterion, others as regression guards; shipped only if strictly betterskill_ledger.py check before scoring; a repeat was dropped, not re-scoredskill_ledger.py record, rejections includedremember()For the deeper "dispatch reflection/scoring to the Agent tool" recipe and the
adapted reflection/ranking prompt templates, see
references/skillopt-provenance.md.
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/crafting-instructionsChooses the right FORMAT for instructions on Claude.ai — project instructions, a skill, or a standalone prompt — and gives the format-specific structure once chosen. Use when the question is which container an instruction belongs in ("should this be a skill or project instructions", "where do I put this", "how do I set up this project", "is this worth a skill"), or when someone has instructions and does not know how to package them. For the writing principles that apply inside any of the three formats, use writing-instructions. For building, testing and packaging a complete skill directory, use creating-skill./creating-skillBuilds a new agent skill or revises one (SKILL.md, scripts and references), validated and packaged as a zip. Use for "create a skill for X", "turn this into a reusable skill", "why does my skill not trigger", or "review this SKILL.md"./finding-skillsDiscover and load skills on demand from /mnt/skills/user/. Use when you need a capability but don't know which skill provides it, when the boot-emitted skill list is names-only and you need a full description, or when you want to list the catalog. Verbs are list (names only), search (rank by name/description match against a query), and show (emit the full SKILL.md for a named skill)./inspecting-skillsDiscovers and indexes Python code in skills, enabling cross-skill imports. Use when importing functions from other skills or analyzing skill codebases./installing-skillsInstall skills from github.com/oaustegard/claude-skills into /mnt/skills/user. Use when user mentions "install skills", "load skills", "add skills", "update skills", "refresh skills", or references a skill not currently installed./orchestrating-skillsSkill-aware orchestration with context routing. Decomposes complex tasks into skill-typed subtasks, extracts targeted context subsets, executes subagents in parallel, and synthesizes results. Self-answers trivial lookups inline. No SDK dependency — uses raw HTTP via httpx. Use when tasks require multiple analytical perspectives, when context is large and subtasks only need portions, or when orchestrating-chat-agents spawns too many redundant subagents.npx claudepluginhub oaustegard/claude-skills --plugin skill-developmentOther plugins' skills for the same job