Skip to content

feat: add the local-need-evidence skill with its cases and benchmark - #3

Merged
billlyzhaoyh merged 1 commit into
mainfrom
feat/local-need-evidence
Nov 18, 2026
Merged

billlyzhaoyh merged 1 commit into
mainfrom
feat/local-need-evidence

Conversation

@billlyzhaoyh

Copy link
Copy Markdown
Contributor

What and why

The first skill in uk-open-data: local-need evidence for a grant application. A funder asks whether a place is deprived and whether the charity reaches the people who live in the deprived parts of it. The skill gets the reach-deprivation lens or the connector's place figures run on the right input, words what comes back without adding to it, and hands the person the checks, caveats and choices the lens returns. It holds no statistics of its own.

It was built in the order the contributor guide sets: the cases first, a run without the skill, then only as much skill as it took to beat that.

What is in the folder:

  • SKILL.md and references/running-the-lens.md (the command, whether postcodes leave the computer, the connector tools, what a lens result holds, dated 18 November 2026).
  • Six cases in evals/: write the section from a lens result, keep hidden counts hidden, flag a catchment that is not the area served, refuse pasted records about people, do not quote area figures from memory, and leave a budget request alone.
  • evals/triggers.json: 11 requests that should load the skill and 10 near misses.
  • evals/benchmark.json: the recorded run.

The plugin is now listed in the marketplace, both READMEs give the install lines, and AGENTS.md says how to run a skill's cases (--scaffold, a cost ceiling, one case at a time, and an unscored grader that shows whether the skill loaded).

The folder is 2,045 added lines, and about 1,290 of them are three sample lens results copied from the lens engine, which the cases read as input files.

What the runs showed

Three runs of each case with the skill and three without, judged by the middle model with three votes for each grader. evals/benchmark.json names the models and gives the score for each case.

Model With the skill Without
Middle 0.95 0.68
Small 0.98 0.77

Without the skill, the assistant most often left out the publisher, licence and link for the source, did not say which area the comparison covered or that it could be changed, did not say that postcodes had been sent to an online lookup, worked on pasted client records and repeated some of them, and offered ranges or a split for hidden counts.

Two things the runs changed in the skill:

  • A first full run on the small model scored the hidden-counts case lower with the skill than without. The skill had not loaded: the request was for a trustees' table, and the description only spoke of grant applications. The description now covers a lens result that needs wording, a table or an explanation. After that the skill loaded in 15 of 15 runs on each model.
  • With the skill loaded, answers still listed the ways a hidden remainder might split, or suggested lowering the smallest count shown. Both are now ruled out in the skill and recorded under Gotchas.

What is weak, so a reviewer knows:

  • asks-before-quoting-area-figures does not separate the two arms well. On the small model the last run without the skill scored higher than with it (1.00 against 0.89). Both arms decline to quote figures from memory. The grader that fails is whether the answer says each figure needs its source.
  • leaves-budget-request-alone scores 1.00 in both arms. It is there to catch the skill loading when it should not.
  • The cases give both arms a saved lens result as a file. None of them runs the command or calls the connector, because the command is not released and the connector has no public address yet. A case with a stand-in for the connector is the next one to add.
  • One grader was replaced during the work. It asked a judge to check figures against a long trace and its three votes disagreed in most runs. It now lists the figures in the lens result and reads the answer alone. The scores above are from after the change.
  • The middle-model score for flags-catchment-mismatch is from the sample before the lens added one sentence to its privacy notes. Nothing that case grades changed.
  • Two wording changes came after the runs and were not run again, because the month's eval budget was nearly spent: the skill now tells the assistant to mark a hidden cell "hidden" (it was "hidden (small number)", which is wrong for a count hidden only to protect another), and the invented names in refuses-pasted-rows were replaced. The scores predate both.

How I tested it

  • uv run ruff format --check ., uv run ruff check ., uv run pytest (31 tests) and uv run python scripts/lint_skills.py pass on this branch.
  • claude plugin validate . and claude plugin validate plugins/uk-open-data pass.
  • Added the marketplace from a local copy of this branch and installed uk-open-data@kindtech with Claude Code 2.1.327. The skill folder was in the installed plugin.
  • Ran the cases with claude plugin eval as described above. Everything spent on 18 November 2026 to reach the recorded benchmark came to $28.63, which includes a one-run pilot and one earlier full run.
  • Not run: an install from KindTechUK/plugins on GitHub, because the branch is not there yet. Not measured: how often each query in triggers.json loads the skill. The 15 of 15 above is for the five cases only.

Tools that helped

Claude Code wrote this change and ran the cases.

Checklist

  • The change is about one thing and is small enough to review
  • Tests and docs are updated where behaviour changed
  • Commits are signed off (git commit -s). They are not: an agent made them, and the sign-off is a person's statement.
  • No personal data about real people in code, tests, examples or this description

The first skill in uk-open-data. It writes the evidence-of-need part of a
grant application from a reach-deprivation lens result or the connector's
place figures, and hands the person the checks, caveats and choices the
lens returns.

Six cases and 21 trigger queries sit beside it. The recorded benchmark is
0.95 with the skill against 0.68 without on the middle model, and 0.98
against 0.77 on the small one.

The plugin is now listed in the marketplace, and the contributor guide says
how to run a skill's cases.
@billlyzhaoyh billlyzhaoyh self-assigned this Nov 18, 2026
@billlyzhaoyh
billlyzhaoyh merged commit b3ffcff into main Nov 18, 2026
1 check passed
@billlyzhaoyh
billlyzhaoyh deleted the feat/local-need-evidence branch November 18, 2026 22:47
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