Repository navigation
test(evals): per-skill evals for claude plugin eval, and a CI lint of the eval cases - #223
Conversation
kazo0
left a comment
There was a problem hiding this comment.
The cases, graders, Test-EvalCases.ps1 and the skill fixes are all good and should land. My concern is the gate mechanism: requiring every PR to carry a fresh, hash-matched report per suite pushes the eval run onto each contributor, and I think it will be more friction than protection.
Why the committed-report gate is going to hurt
- Every skill edit costs the author money and credentials. A touch to
uno-platform/SKILL.md,uno-build-app/SKILL.mdor the hooks invalidates all ten reports, so ~$20 and 30 minutes before CI goes green. A fork contributor without a Claude subscription can't change a skill at all. - The check runs on every PR, so one stale report on
mainblocks unrelated docs-only PRs until someone pays to refresh it. - Two PRs touching the same suite each rewrite the same JSON with different hashes: a guaranteed merge conflict, then another rerun after the rebase.
- Model drift makes a case fail on a PR that didn't cause it, and the author has to fix the skill or case to land their own change.
- The hash proves which files the report claims to cover, not that the run happened. Anyone can hand-edit the JSON, so it's trust-based anyway and the machinery buys little.
Proposal: run the evals in CI with a repo secret
This is what the plugin-evals docs describe (ANTHROPIC_API_KEY in the environment, --trust-plugin --json --threshold 0.8 --max-cost-usd 20, fail on the exit code), and what dotnet/skills does with a PAT pool: fork PRs get no secret-backed run, a maintainer triggers /evaluate after review, and a daily schedule covers the rest.
Concretely:
- An
evals.ymljob onpull_requestwith apaths:filter for the skills, hooks andevals/folders, plusscheduleandworkflow_dispatch. A path-filtered job that's skipped still satisfies a required check. - Map the diff to suites with the existing
Get-EvalInputPathslogic, so most PRs run one suite (~$1.40). Edits to the two sharedSKILL.mdfiles or the hooks run them all. - Upload
evals/results/as a workflow artifact and the summary table to the job summary; reviewers read the report there instead of a committed JSON. - Fork PRs skip the job with a notice; the nightly run on
main(#220) catches anything that slips through. - Drop
evals/reports/,Test-EvalReports.ps1,Update-EvalReport.ps1and the hash code. KeepTest-EvalCases.ps1as the free structural check.
Cost is an org API key and spend per skill PR, capped by --max-cost-usd and a concurrency group that cancels superseded runs. That seems cheaper and less fragile than pushing the same spend onto every contributor and blocking merges on hand-committed JSON.
Happy to open a follow-up PR against this branch that swaps the gate for the CI job if you'd rather not rework it here.
…t/skills: realistic prompts, regex and rubric graders on the reply, no-plugin baseline Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls5hVHL6n2FFoq1SqoN
…i-patterns match code, not mentions - navigates-with-data: Navigation.Request on the ListView, and Navigate*Async with data: - confirm-delete-dialog: renamed to awaits-dialog-result, also accepts a dialog route for result - removes-through-state: UpdateAsync; awaits-result: GetDataAsync<> - retry-binds-refresh: utu:AncestorBinding to the FeedView's Refresh - android-uiautomator: UiAutomator2 / UIAutomator / UI Automator - restart-condition: Rude Edit, rude-edit, InternalError - exact-count: no longer accepts items>=12 - not_contains graders match declarations, calls and overrides, so a reply warning against them passes - attach-photo graders need a copy call and a dispatcher or a code-behind handler, not a bare mention Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls3w24yPnjKnVnfTLL7
…ISupportIncrementalLoading, not a prose colon before a mention Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PZQ75iiJeNEGPVn8YpWUaw
… generated from evals/ by ConvertTo-WazaEval.ps1 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Sn8GmJ41W3eBgT7866J3jV
…en locally by Update-EvalReport.ps1 and checked without model calls by Test-EvalReports.ps1 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Sn8GmJ41W3eBgT7866J3jV
… not its body, so a typo fix in a skill no longer makes it stale An agent picks a skill from its name and description alone, so the routing cases (which check that no Uno skill loads) can't change when only a skill's body does. Get-EvalInputsHash now hashes the frontmatter block of each SKILL.md for the routing suite (LF endings, "<path>#frontmatter" lines) instead of the whole file. Other suites hash as before. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ
…<criterion>.md, checked by Test-EvalCases.ps1 A judge asked whether several things all hold rates the same reply differently from run to run when one of them is missed (the lesson Google's skills team drew from compound expectations). Each case's rubric.md is split into one llm grader per criterion, carrying only the facts that criterion needs; criteria a regex can check (UseToolkitNavigation, the xmlns URIs, the card style, SelectionMode="None", UIViewControllerBasedStatusBarAppearance) are regex graders. Test-EvalCases.ps1, a new step in Validate Plugin, checks without model calls that every prompt is non-empty and unique, and that every llm grader is named rubric-*.md, has one "PASS if" and no list. The uno-platform report is rerun against the split graders. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ
…hecked by Test-Plugin.ps1
The table said uno-testing had 4 references (6 on disk) and uno-themes 3 (5). Test-Plugin.ps1 now fails when a skill
is missing from the table or listed twice, or when its References cell ("8", or "14 topics + 4 shell templates")
does not add up to the files in its references/ folder.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ
…and in-file anchor links name a real heading Eleven references over 100 lines gain a one-line list of links to their ## sections, so an agent sees what the file holds and can go to the part it needs. Test-Plugin.ps1 now fails when such a reference has no link to a section in its first 30 lines, and when a `](#anchor)` link in any plugin Markdown file matches no heading by GitHub's slug rules. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ
…te has a report
Each case in evals/reports/<suite>.json lists the graders that failed and in how many runs ("info-plist": "3/3"),
so a reviewer sees why a case lost points without rerunning it; Test-EvalReports.ps1 names them when a case is
below the threshold. Adds the reports for routing, uno-build-app, uno-mvux, uno-navigation, uno-testing, uno-themes
and uno-toolkit, run against the one-criterion graders.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ
- uno-toolkit: the iOS Info.plist step for StatusBar, the selectable item root ItemsRepeater selection needs, and "a command on a list row tap" in the description - uno-mvux: debugging triggers in the description, and a pointer to uno-toolkit for a command on a row tap - uno-testing: names uno_app_get_screenshot, which agents had been inventing as uno_app_screenshot - uno-navigation: leads with why the content area must be a Grid (any other panel replaces the whole page) Two rubrics judged syntax instead of the criterion: rubric-delete-error-role accepts the error roles in any XAML form, and rubric-names-cause asks for the StackPanel as the cause of the replacement. Reports rerun for the six suites these change; every case that lost a grader in all runs now scores 1. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ
…ion ids separately rubric-selectors also asked for a suggestion to add AutomationProperties.AutomationId, in a parenthesis the one-criterion lint does not see. Split, the selector half passes every run and the new rubric-suggests-automation-ids fails 2/3: agents use ids without telling the user to add them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ
…not seen in the XAML Step 4 assumed the agent knows the ids from the XAML. When it has not seen the XAML, it now names the controls that need an AutomationProperties.AutomationId and asks for any that are missing. feed-list-loaded's rubric-suggests-automation-ids goes from 1/3 to 3/3 runs passing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ
…no-build-app and uno-mvux say when they must load Traced runs showed the skills skipped for three reasons: uno-platform's routing table never named uno-build-app, so feature requests went to the domain skills only (attach-photo-to-note loaded uno-build-app in 1/6 runs); command-reads-search-text answered MVUX questions from memory with no tool call (3/6); and mvvm-app-stays-mvvm's grader rejected uno-build-app, which keeps an existing MVVM app on MVVM. After the change each case loads its skill in 6/6 runs. Every suite is rerun, since uno-platform routes for all of them; no case regressed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ
…ences open with a contents line Both arrived from main over 100 lines; Test-Plugin.ps1 requires a contents line on such a reference. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ
The evals run through claude plugin eval only. Removes evals/waza/ (ConvertTo-WazaEval.ps1 and its README), the README link to it, and its .gitignore entry. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ
…te that checks models and the shared skills (#218) Co-authored-by: Claude Opus 5.5 <[email protected]>
Merging main brought #214's and #217's edits to uno-themes and uno-build-app, which made both reports stale. Both pass. shared-page-both-themes scored 0.926: rubric-delete-error-role failed 2 of 3 runs whose replies made "Delete profile" a text button with error-coloured text, while the rubric asks for an error-role background. The prompt asks only for "a red Delete profile button". Refs #216 Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Remove evals/reports/, Test-EvalReports.ps1 and Update-EvalReport.ps1, and the "Eval reports are fresh and passing" step. - Trim the shared script to what Test-EvalCases.ps1 uses and rename it Evals.Common.ps1. - CONTRIBUTING.md and evals/README.md: evals are run locally, not gated. The cases, Test-EvalCases.ps1 and the skill fixes are unchanged. Running the evals in CI is left to #224. Refs #216 Co-Authored-By: Claude Fable 5.2 <[email protected]>
94f111d to
4eb2b33
Compare
GitHub Issue (If applicable): Closes #216
Supersedes #209, whose description is out of date.
PR Type
What is the current behavior?
CI checks that the plugin is well formed: manifests, the Agent Skills spec, links, the size budget, hooks against canned input, and installs. Nothing checks what an agent answers with the skills, or whether a skill change makes those answers worse.
What is the new behavior?
Evals
evals/holds evals forclaude plugin eval, modeled on dotnet/skills. Every skill has a suite: 38 cases across 9 skills, plus 4routingcases that must load no Uno skill, for questions about ASP.NET Core, .NET MAUI, Entra ID tokens in an API, and Kiota in a console app.Each case is a realistic developer prompt plus graders on the reply:
loads-skill: did the skill load.rubric-<criterion>.md). A judge asked whether several things all hold gives a different verdict from run to run.What CI checks
CI does not run the evals: it holds no model credentials. Authors run a suite locally (
evals/README.md).Test-EvalCases.ps1, a new step in "Validate plugin and skills", lints the cases without model calls:rubric-<criterion>.md(andor;Test-Plugin.ps1also checks:#anchorlinks point to a real headingCONTRIBUTING.mdandevals/README.mdcover the cases, the graders and how to run them.Removed after review: this PR first gated every PR on a committed, hash-matched report per suite (
evals/reports/,Test-EvalReports.ps1,Update-EvalReport.ps1). That gate is dropped in 4eb2b33, for the reasons in the review below. Running the evals in CI with an API key is #224.Skill fixes the evals found
uno-platform's routing table sends feature work touno-build-app.uno-build-appanduno-mvuxsay when they must load. In traced runs, each affected case went from loading its skill in 1/6 or 3/6 runs to 6/6.uno-toolkit: the iOSInfo.pliststep forStatusBar, the selectable item root thatItemsRepeaterselection needs, and "a command on a list row tap" in its description.uno-mvux: debugging triggers in its description, and a pointer touno-toolkitfor a command on a row tap.uno-testing: it namesuno_app_get_screenshot, which agents had been inventing asuno_app_screenshot. It also tells the user to add automation ids it hasn't seen in the XAML.uno-navigation: it leads with why the content area must be aGrid.The fixes from the first run merged earlier, in #208.
Results
Measured on 609fe02, before the gate was removed, with Sonnet 5.5 as agent and judge, 3 runs per case. The cases and skills have not changed since.
Every case scores 1.0, except
uno-themes/shared-page-both-themesat 0.93. Itsrubric-delete-error-rolefailed 2 of 3 runs after #217, in replies that made "Delete profile" a text button with error-coloured text. The rubric asks for an error-role background, while the prompt asks only for "a red Delete profile button".Scores with the plugin and without it, one run per arm:
uno-testinguno-kiotauno-authenticationuno-themesuno-toolkituno-mvuxuno-navigationuno-platformuno-build-appA tie means the model already answers that prompt without the plugin. Those cases still catch regressions.
Checks (run locally on 4eb2b33):
Test-EvalCases.ps1passes (42 cases).Test-Plugin.ps1passes. It still prints the reference size-budget warnings tracked in Skill reference files: size budget and a token count for every skill file #161.PR Checklist
evals/README.md,CONTRIBUTING.md)Additional Information
main(77ae935) and force-pushed once, after the gate was removed. The rebased tree is identical to the previous tip merged withmain.claude plugin evalcan't see: the Uno MCPs (only MCP servers a plugin declares load), theuno-devagent (there's no--agentoption), and app builds, which the sandbox blocks. Full-app checks stay in the separate AX evaluation.uno-kiota'sicuuc77fix isn't reached from a failing template unit testloads-skillfails in every run.🤖 Generated with Claude Code