add-eval
Skill21 starsChanged 9 months agoMITView on GitHub
Add or edit a plugin eval case under plugin/evals (claude plugin eval) — prompt, graders, MCP mocks — and run, compare and re-baseline the suite. Use when writing a new eval, changing a grader or mock, checking a skill/agent/tool-description change for regressions, or when evals:compare reports a drop.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- marin-community/marintheir own version, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- marin-community/marin★ 4.2ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- add-client-platformSkill
- contributeSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Run it at 3 runs and re-baseline (below).
- Very specific: line 51
After changing src/tools/definitions.ts: npm run evals:tools.
- Very specific: line 67
Never commit results/. Runs make paid model calls on your own credential.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Evals run the plugin in a sandboxed claude -p child against a mocked platform server and grade the transcript. Reference: https://code.claude.com/docs/en/plugin-evals.md (claude plugin eval --help matches it).
Layout
plugin/evals/
<group>/<case>/prompt.md frontmatter (tags, max_turns, allowed_tools) + the prompt, sent verbatim
<group>/<case>/graders/<name>.md one grader per file
<group>/<case>/mocks/platform/<tool>.md per-case override of one tool
mocks/platform/_server.md judge model plays a fixed demo tenant for every tool
mocks/platform/_tools.json real descriptions/schemas — generated, never hand-edit
baseline.json committed per-grader pass rates, see "Run and compare"
results/ gitignored run outputGroups today: skill-triggers/, tool-choice/. The demo tenant (Demo Project, Billing Bot, Phone Support, GPT-4o) is defined in _server.md; write prompts against it.
Write a case
- Copy the closest existing case. The prompt is phrased like a user, never names the skill or tool, and contains everything needed — the run starts in an empty directory and cannot ask follow-ups. Add "I'm not around to answer questions, so pick sensible defaults and go ahead." unless asking IS the behaviour under test (
tool-choice/backup-gate). - Give it one grader on the steps (
tool_used/tool_order/ traceregex) and, where there is a result to judge, one on the outcome (regexonlast_message, or a shortllmrubric written as PASS/FAIL conditions). - Set
max_turnsgenerously (25–30 for build flows); hitting it is a run error. Judge-played mocks get 4 ×max_turnscalls. - Smoke it:
npm run evals -- --case <name> --runs 1 --keep-temp, then read<kept>/out/trace.jsonlandout/mock-calls.jsonlto confirm the run took the path you meant — a pass can be for the wrong reason. - Run it at 3 runs and re-baseline (below).
MCP tools are named mcp__plugin_cognigy_platform__<tool>; plugin skills are invoked as cognigy:<skill>.
Grader rules learned the hard way
- Accept the subagent path. The
Agenttool is available in every run even whenallowed_toolsomits it, and models delegate tocognigy-agent-builder/cognigy-voice-go-live. Atool_used: Skillgrader then fails although the plugin did the right thing. Use a trace regex that accepts either path, and make sure the subagent preloads the skill (skills:in its frontmatter):type: regex target: trace pattern: '"skill":"(?:cognigy:)?agent-creation"|"subagent_type":"(?:cognigy:)?cognigy-agent-builder"' - Match call inputs, never bare names. The trace's first line lists every agent, skill and tool name, so
pattern: cognigy-voice-go-livealways passes. Anchor on"skill":","subagent_type":"or"name":"mcp__…". tool_usedcounts calls made inside subagents — no special handling needed for MCP calls.tool_ordercompares the FIRST matching call of each side. It cannot express "the retry after the decline succeeded" when the first attempt is held. Grade the mock's answer instead:target: mock_calls,pattern: '\\?"changesApplied\\?"\s*:\s*true',arm: both.- "Must not happen" graders (
min: 0, max: 0) pass for free in the no-plugin arm. Fine fornpm run evals(single arm); just don't read them as signal there. - No
(?i)in patterns — useflags: i.expect:in mocks takes a restricted regex dialect (no groups/alternation; use a list of literals).
Mocks
_server.mdanswers every tool from the tenant description. To make one tool behave differently for one case, add<case>/mocks/platform/<tool>.md— it overrides only that tool.- Fixed mock: body is the literal tool result (copy real shapes, incl.
_hints, fromsrc/tools/handlers.ts). Stateful behaviour:type: agentwith instructions — agent mocks see earlier calls to every mocked tool, which is howvoice-apply-fixesholds the firstapply: trueuntilmanage_snapshots decline. - After changing
src/tools/definitions.ts:npm run evals:tools. A new tool must also be added totools:in_server.md.evalMocks.test.tsfails on either drift. - Mocks carry no
src/instructions.ts, so evals measure skills, agents and tool descriptions — not the server instructions. plugin/evals/is in.prettierignoreon purpose: Prettier escapes_in markdown and corrupts JSON mock bodies. Don't format these files.
Run and compare
npm run evals # full suite, pinned Sonnet agent + Haiku judge
npm run evals -- --case 'voice-*' # subset (globs on case name), --tag works too
npm run evals:compare # newest run vs plugin/evals/baseline.json; exit 1 on a drop
npm run evals:compare -- --update # newest run becomes the baseline- A drop with 3 runs (3/3 → 2/3) can be one flaky run. Re-run that case with
--runs 5, and onmainif still unsure, before calling it a regression. changedmeans the case's files (or shared mocks) differ from the baseline's fingerprint — expected after editing a case; re-baseline.ERROREDmeans a run ended abnormally (timeout, usage or rate limit); errored runs are still graded, so they are never compared — re-run.--updaterefuses a run that errored or skipped any case, so re-baseline from a clean full run, in the PR that intentionally changes behaviour or a case, so thebaseline.jsondiff is reviewed. Commit the code first so the baseline records the commit it ran on. If you change the pinned models inpackage.json, re-baseline too.- Never commit
results/. Runs make paid model calls on your own credential;--max-cost-usdcaps a run.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

