Ray's Knowledge Base
Unlock

Evaluate all skills automatically with claude plugin eval (Claude Code) and a separate runner for pi

RecipeVerified 13 Oct 2026Holds anywhere
Recipe. When to use it, the steps, and what showed that they work.

When to use#

You want to measure whether skills load and whether they improve results, without grading by hand. Use it after you change a skill or its description, or after a model update. Claude Code and pi need different runners.

Steps#

  1. Build a temporary plugin with flat links to all skills. claude plugin eval tests a plugin, not a plain skills folder, and loading all skills together is also more realistic.
  2. Write trigger cases: about 20 prompts per skill, half that should load it and half that should not. Include near misses that should load a neighbor skill (commits vs pr-description vs changelog, writing vs documentation vs readme). Use the grader tool_used: Skill as the trigger check. Run each prompt 3 times and pass at a load rate of 0.5.
  3. Write outcome cases: 2 or 3 small tasks per skill. Run each with and without the skills. Grade with the repo's own check scripts and regexes first, and use an LLM judge only where no script fits.
  4. Set a cost cap with --max-cost-usd. Filter cases with a comma-separated list that the runner applies while it builds the plugin, because brace globs do not work.
  5. Check the cases before trusting the scores. Weights must be positive (weight: 0 is rejected). Regex graders must compile as JavaScript regexes. target: files sees only file names, not contents. A case that scores 0 in both arms is usually a broken case. A fail on a single run can be noise, so rerun with 3 runs.
  6. For pi, write a separate runner. It runs pi -p --mode json --no-session --no-skills with one --skill <dir> per skill, --no-context-files --no-extensions --no-mcp --no-prompt-templates, --tools read,grep,find,ls and --model. Count a read of a SKILL.md file as a load. Use cheap models from opencode-go such as glm-5.3-flash and qwen3.8-flash.
  7. To tune descriptions, split the prompts 60/40 into train and validation. Pick the best version by its validation score, not the last version.

Evidence#

In this session, Haiku in Claude Code loaded skills about 0.4 of the time. documentation and working-style scored 0.00, and a 12-turn limit gave the same rates. pi glm-5.3-flash loaded about 0.73 and qwen3.8-flash about 0.81, with some wrong loads (subagents prompts loaded working-style). A Haiku trigger run of 144 cases x 3 cost about $1. The Haiku outcome pilot of 45 cases cost $0.81 and showed a mean difference of +0.34 with skills. Source quotes: "claude plugin eval only tests Claude Code. Pi needs its own runner.", "tool_used: Skill is the trigger check.", "Pick the best version by its validation score, not the last version."