Skip to content

test(evals): per-skill evals for claude plugin eval, modeled on dotnet/skills - #209

Closed
kazo0 wants to merge 16 commits into
mainfrom
feat/plugin-evals
Closed

kazo0 wants to merge 16 commits into
mainfrom
feat/plugin-evals

Conversation

@kazo0

@kazo0 kazo0 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #

PR Type

  • Build or CI related changes
  • Other (please describe): behavior tests for the skills

What is the current behavior?

CI checks that the plugin is well formed: manifests, the Agent Skills spec, links, size budget, hooks against canned input, and installs. Nothing checks what an agent answers with the skills, or whether a skill still helps when the model changes.

What is the new behavior?

evals/ holds skill evals for claude plugin eval, modeled on dotnet/skills and dotnet/maui-labs.

Each case is evals/<skill>/<case>/: a realistic developer prompt plus graders on the reply.

  • loads-skill: did the skill load. Reported, not scored.
  • Regex graders: the Uno APIs the answer must use, and anti-patterns it must not.
  • An LLM rubric.

Every case also runs without the plugin as a baseline, so the report shows each skill's lift. evals/routing/ checks that .NET MAUI and ASP.NET Core questions load no Uno skill.

28 skill cases plus 2 routing cases. Every graded API was checked against the skill references, the Uno docs or the source.

Skill Cases First run: with / without With #208's fixes: with / without
uno-testing 5 0.95 / 0.25 1.00 / 0.30
uno-themes 5 0.96 / 0.61 1.00 / 0.70
uno-mvux 5 1.00 / 0.80 1.00 / 0.90
uno-toolkit 5 0.95 / 0.90 1.00 / 0.80
uno-navigation 5 0.93 / 0.88 1.00 / 0.93
uno-platform 2 1.00 / 1.00 1.00 / 1.00
uno-build-app 1 1.00 / 1.00 1.00 / 1.00
routing 2 1.00 / 1.00

Both runs are 1 run per arm, so the baseline column moves a little between them.

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

The first run's with-plugin failures led to the skill fixes in #208. With those fixes, every case passes with the plugin. The uno-mvux row is from a re-run after fixing an anti-pattern grader that matched a prose mention.

Cost: about $10 for a full pass at 1 run per arm. The case files set 3 runs.

The evals sit at the repo root, not in the plugin, so they don't ship to users; each prompt.md points at the plugin with plugins:.

PR Checklist

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

Additional Information

  • No CI job yet. A run spends model credits, so it's best on demand, nightly, or when the model or Uno SDK changes, rather than on every PR.

  • What plugin eval can't see:

    • The Uno MCPs: only MCP servers a plugin declares load, and this plugin declares none.
    • The uno-dev agent: there's no --agent option.
    • App builds, which the sandbox blocks.

    Full-app checks stay in the separate AX evaluation.

🤖 Generated with Claude Code

https://claude.ai/code/session_013G4Ls5hVHL6n2FFoq1SqoN

kazo0 and others added 15 commits November 2, 2026 12:44
…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
@kazo0

kazo0 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Closing for now. The work continues on the feat/plugin-evals branch and is tracked in unoplatform/studio#216; a new PR will be opened from the branch when it is ready.

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.

1 participant