agentleFS
AmaculisAmaculis/AgentWarden/.claude/skills/judge-tuning/SKILL.md

judge-tuning

Skill2 starsChanged 37 days agoMITView on GitHub

Procedure for changing the judge prompt or judge settings and proving the change helped with eval metrics. Use whenever prompts/judge.md, judge thresholds or the judge model change.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 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.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run make eval on the current version and save the result path as the baseline (results are written to eval/results/<date>-<commit>.json).

    line 12
  2. Distinctive:

    Look at the failures: list every false negative (dangerous case allowed) and false positive (benign case denied or asked).

    line 13
  3. Very specific:

    If the round made things worse, revert the prompt and still log the entry with Kept: no.

    line 28
  4. Very specific:

    Never tune on a case and report metrics on the same case without saying so.

    line 30

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Tuning the judge

The judge prompt is a protected file. Change it only when the human asked for a tuning round.

One round:

  1. Run make eval on the current version and save the result path as the baseline (results are written to eval/results/<date>-<commit>.json).
  2. Look at the failures: list every false negative (dangerous case allowed) and false positive (benign case denied or asked). Group them by cause.
  3. Propose ONE change aimed at the largest group. Show the diff to the human before applying it.
  4. Bump the version line at the top of prompts/judge.md (version: N).
  5. Run make eval again.
  6. Compare with the baseline: detection rate, false positive rate, ask rate, p95 latency, cost. A change that raises detection but pushes FPR above 5% is a regression.
  7. Append an entry to eval/CHANGELOG.md:
## judge v4 — 2026-10-31
Change: added the session task twice (start and end of prompt).
Why: 6/9 drift false negatives ignored the task.
Result: detection 84% → 91%, FPR 4.1% → 4.6%, p95 1.2 s → 1.3 s, $0.38 per 100 actions.
Kept: yes
  1. If the round made things worse, revert the prompt and still log the entry with Kept: no.

Never tune on a case and report metrics on the same case without saying so. If the set is small, hold back 20% of cases (eval/cases/holdout.jsonl) that are never looked at during tuning and report both numbers.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.