Skip to content

test(evals): per-skill evals for claude plugin eval, and a CI lint of the eval cases - #223

Merged
kazo0 merged 19 commits into
mainfrom
feat/plugin-evals
Nov 13, 2026
Merged

kazo0 merged 19 commits into
mainfrom
feat/plugin-evals

Conversation

@rajamatt

@rajamatt rajamatt commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): Closes #216

Supersedes #209, whose description is out of date.

PR Type

  • Bugfix: skill gaps the evals found
  • Build or CI related changes
  • Documentation content changes
  • Other: behavior tests for the skills

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 for claude plugin eval, modeled on dotnet/skills. Every skill has a suite: 38 cases across 9 skills, plus 4 routing cases 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.
  • Regex graders: the Uno APIs the answer must use, and anti-patterns it must not. An anti-pattern matches code, not a mention, so a reply that warns against it still passes.
  • One LLM rubric per criterion (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:
    • every prompt is non-empty and unique
    • every LLM grader is a rubric-<criterion>.md
    • no PASS condition joins a second requirement with (and or ;
  • Test-Plugin.ps1 also checks:
    • the README's skill table lists every skill with the right reference count
    • in-file #anchor links point to a real heading
    • every reference over 100 lines opens with a contents line

CONTRIBUTING.md and evals/README.md cover 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 to uno-build-app. uno-build-app and uno-mvux say 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 iOS Info.plist step for StatusBar, the selectable item root that ItemsRepeater selection needs, and "a command on a list row tap" in its description.
  • uno-mvux: debugging triggers in its description, and a pointer to uno-toolkit for a command on a row tap.
  • uno-testing: it names uno_app_get_screenshot, which agents had been inventing as uno_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 a Grid.

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-themes at 0.93. Its rubric-delete-error-role failed 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:

Suite Cases With Without Measured in
uno-testing 5 1.00 0.30 #209
uno-kiota 5 1.00 0.48 #218
uno-authentication 5 1.00 0.58 #218
uno-themes 5 1.00 0.70 #209
uno-toolkit 5 1.00 0.80 #209
uno-mvux 5 1.00 0.90 #209
uno-navigation 5 1.00 0.93 #209
uno-platform 2 1.00 1.00 #209
uno-build-app 1 1.00 1.00 #209

A tie means the model already answers that prompt without the plugin. Those cases still catch regressions.

Checks (run locally on 4eb2b33):

PR Checklist

  • Documentation has been added/updated (evals/README.md, CONTRIBUTING.md)
  • Associated with an issue (GitHub or internal)

Additional Information

🤖 Generated with Claude Code

@rajamatt rajamatt self-assigned this Nov 3, 2026
@rajamatt
rajamatt marked this pull request as ready for review November 3, 2026 18:10

@kazo0 kazo0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md or 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 main blocks 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.yml job on pull_request with a paths: filter for the skills, hooks and evals/ folders, plus schedule and workflow_dispatch. A path-filtered job that's skipped still satisfies a required check.
  • Map the diff to suites with the existing Get-EvalInputPaths logic, so most PRs run one suite (~$1.40). Edits to the two shared SKILL.md files 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.ps1 and the hash code. Keep Test-EvalCases.ps1 as 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.

@rajamatt
rajamatt added this pull request to stack #225 November 3, 2026 20:07
@kazo0 kazo0 changed the title test(evals): per-skill evals for claude plugin eval, and a CI gate on a fresh, passing report per suite test(evals): per-skill evals for claude plugin eval, and a CI lint of the eval cases Nov 13, 2026
kazo0 and others added 19 commits November 13, 2026 10:30
…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
…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]>
@kazo0
kazo0 force-pushed the feat/plugin-evals branch from 94f111d to 4eb2b33 Compare November 13, 2026 15:30
@kazo0
kazo0 merged commit eaf82d4 into main Nov 13, 2026
7 checks passed
@kazo0
kazo0 deleted the feat/plugin-evals branch November 13, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Finish the skill eval suite and its CI report gate

2 participants