Not loaded · from cap-evolve
Optimizes a skill package (SKILL.md, references, scripts) for correct triggering and reliable execution. Checks edits against skill-creator authoring rules.
Claude Code won't load this skill
It ships in cap-evolve at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
The artifact is a whole skill directory — SKILL.md plus references/, scripts/
and assets/ — and all of it is editable: materialize() exposes every file as
a component, apply() can rewrite or CREATE one (a new bundled script included), and
validate() checks the result against the skill-creator authoring rules
(first-party sources in references/concepts.md).
Pick the lever that fixes the biggest failure cluster; depth is in the references.
description / trigger — the only text loaded before the skill fires, so
the single highest-leverage edit. Third person; state what it does AND when
to use it; use the keywords a user would actually say. Lean slightly pushy for
under-trigger, tighten the boundary and name near-miss cases for over-trigger, and
front-load the key use case (hosts truncate the listing — 1,536 chars on Claude
Code by default). Ex: "Formats data" → "Exports records to CSV. Use when the user
asks to export or download a table." Playbook + the measurable loop:
references/description-optimization.md.scripts/ and make the body invoke it by
command line. Write real, working code — never ... or a docstring-only stub —
give it a --self-check entry point (validate() runs it, so a broken script is
caught before any rollout is paid for), and say execute, don't read: a script's
source never enters the agent's context, only its output. Also the cost/latency
lever here (#684): when the agent re-invokes the same tool/step N times across a
multi-step sequence (agent-optimize's detect_loop_patterns.py names the exact
tool + repeat count from the champion's rollouts), bundle the WHOLE sequence into
one script entrypoint instead of N separate agent-invoked steps — one call replaces
N round-trips.references/*.md. Keep them one level deep (a ref must not point at another
ref — the agent may read only part of it), link each directly from SKILL.md with
a pointer saying what it holds and when to load it, and give a long ref (>300
lines) a table of contents at the very top, above any orientation prose — the
check is positional because a TOC the head-reader never reaches is not a TOC.
Multiple variants/domains → one ref per variant (references/aws.md, gcp.md, …)
plus a selection body, so only one is read.assets/ holds files the skill emits (templates, icons, fonts),
not context the agent reads. Edit one only when the skill's output depends on it.Every edit must leave a valid skill.
validate()fails a candidate on: noSKILL.md;namemissing/>64 chars/not[a-z0-9-]/containing an XML tag;descriptionempty/>1024 chars/containing an XML tag; a body over 500 lines; a brokenreferences|scripts|assets/…link; a bundled script that does not compile or whose--self-checkfails. It warns on the softer authoring smells (POV drift, ALL-CAPS in the description, orphan or nested references, a missing TOC, a stub script, a script with no self-check, network/subprocess use in new code). A skill is executable context: keep bundled code auditable and free of surprises.
Scale body density to WHO follows it at runtime (see the THE READER block in your
instructions, if present). A mid/weak reader needs more worked steps, explicit
ordering, and examples in the body — and benefits most from lever 2, since code it
executes cannot be skipped the way a rule can. A frontier reader follows a
compact, principle-first body and is slowed by over-specification. The tier changes
how explicit the retained body is, not how long it may be.
Task reward is the gate signal, and cap-evolve owns that machinery — do not add a
private eval loop here. But triggering is invisible to task reward when the skill never
fires, so measure it separately with scripts/trigger_eval.py on a held-out set of
should-trigger / should-NOT-trigger prompts (with near-miss negatives) and keep the
description that wins on the held-out half.
python scripts/check.py # self-test (must pass)
python scripts/run.py --path <skill_dir> # candidate + validity report
python scripts/token_report.py --path <skill_dir> # budget + script inventory
python scripts/trigger_eval.py --eval-set <json> --skill <dir> --judge-cmd '<cmd>'
Handlers in scripts/abstract.py: materialize(dir) → every file as a component ·
apply(dir, edits) → {changed, refused}, contained to the package and gated by the
action policy (policy.json: frontmatter|body|reference|script|asset|add|remove,
so a run can allow prose but forbid new code) · validate(dir) → {ok, problems, warnings, scripts}.
references/concepts.md — the authoring model and the
validity rules, with first-party sources. Load for grounding.references/description-optimization.md
— the trigger-tuning playbook. Load when fixing under/over-trigger.references/anti-patterns.md — skill smells and the
why. Load when a draft "feels off" or to review an edit.meta.yaml (opens in a new tab)references/anti-patterns.md (opens in a new tab)references/concepts.md (opens in a new tab)references/description-optimization.md (opens in a new tab)scripts/_bootstrap.py (opens in a new tab)scripts/abstract.py (opens in a new tab)scripts/check.py (opens in a new tab)scripts/run.py (opens in a new tab)scripts/token_report.py (opens in a new tab)scripts/trigger_eval.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub skillberry-ai/cap-evolve --plugin cap-evolve22 skills in this plugin
/agent-optimizeFree-form optimization algorithm for agent orchestration mode: the conversational agent owns the whole search — reading a digest, proposing big coherent capability edits against failure-cluster hypotheses, probing only missing cells, promoting or pruning on a posterior, merging complementary branches, and sealing test once. Use when orchestration_mode is agent and algorithm_skill is agent-optimize. For a deterministic loop use hill-climb, gepa or skillopt instead./baselineEstablish the starting point. Use after implement-and-check and before any algorithm. Creates the run directory, freezes the seeded train/val/test split (written once), scores the unmodified seed capability on val, and records it as the candidate every algorithm must beat. Reports the remaining headroom so a saturated seed stops the run before it spends budget./blackboxThe Skillberry proxy intervention — put the optimized capability in the Skillberry Store and let the Skillberry Proxy-Agent (SPA) inject it into the agent's LLM calls, so the benchmark never sees skill files. Use when a capevolve.yaml sets `intervention: blackbox`, or when you need to provision, start, deploy to, stop or clean that stack./diagnoseExtract the learning signal from execution traces — the textual analogue of a gradient. Use between evaluation and proposing edits. Reads a candidate's rollouts and traces, separates good signals to keep from bad signals to fix, builds a reflective dataset (per failing task — Inputs, Generated Outputs, Feedback) and clusters the failures by a (failure-site, violated-expectation) signature, ranked by the score each cluster can recover, so the optimizer knows what to change and why./evaluateScore a candidate on a split with honest, variance-aware evaluation. Use whenever you need a number for a candidate (the algorithm calls it internally; you can also call it directly to inspect). Runs the target via the adapter for each task, scores each rollout, aggregates mean + standard error, and reports pass^k when trials > 1. Never touches the test split (that is finalize's sealed job)./evographDeprecated agent-mode algorithm (evo-graph port): a weakness-graph search that dispatched one solver agent per failure cluster and reverted a whole round on regression. Do not start new runs with it — its per-weakness fan-out is already `agent-optimize`'s sibling fan-out, done behind the honest val significance gate that evograph never applied, and everything else it did (failure clustering, rejected-edit memory, budget-aware fan-out, free-text stop condition) lives in `agent-optimize` + `phases/diagnose`. Use when reading or repairing an existing evograph run dir, or when writing the run-dir `wiki/` format the dashboard's Weakness-graph tab reads — and to see what to select instead: `agent-optimize` for agent-mode search, `hill-climb`, `gepa`, or `skillopt` for a deterministic loop.Other plugins' skills for the same job