skill-optimizer
Installation
SKILL.md
Skill Optimizer
Make every skill discoverable, lean when activated, and eval-backed.
Non-negotiable gates (do before calling done)
- Validate —
npx --yes skills-ref validate <skill-dir> - Name — folder name = YAML
name; lowercase/hyphens; no consecutive hyphens - Description — what + when; ≤1024 chars; concrete triggers; at least one near-miss “do not use…” boundary when adjacent skills exist
- Body size —
SKILL.mdunder 500 lines / ~5k tokens; prefer under ~1500 tokens for workflow skills - Progressive disclosure — depth in
references//scripts/; each file has an explicit when to read - Reference depth — file references are one level deep:
references/*.mdlink back toSKILL.md's table, never to a siblingreferences/*.mdfile (scripts/check-skills-ci.shenforces this for first-party skills) - Token test — every paragraph: “Would the agent get this wrong without it?” If no, cut or move to a reference
- Trigger set — ~20 labeled queries in
evals/trigger/eval_queries.json(~50/50 should/shouldn’t; include near-misses) - Output evals — at least 2–3 cases (+1 edge) in
evals/evals.jsonwhen the skill changes behavior