Logo: Calibrated Judge

Calibrated Judge

Communautéit
SantaJordan
calibrated-judge

Score rows with Jev, TypeSafe's calibrated evaluation model, and get a probability plus one of four actions (accept, reject, review, insufficient) per row instead of a prose opinion. Use this whenever the user wants to score a list for ICP fit or persona fit, decide which rows a human must review, or check a yes/no claim about a company or person from an evidence packet. Reads the packets that skills/crawford builds. Writes scores.csv, a review queue, and an append-only decision log.

Iwwersiicht

EditeurSantaJordan
Repositorygtm-engineer-starter
Skill-Nummcalibrated-judge
Stären
32
Forks
8
Matgeliwwert Dateien
40
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 40 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    SantaJordan huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Calibrated Judge an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/SantaJordan/gtm-engineer-starter/tree/main/skills/calibrated-judge
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SantaJordan/gtm-engineer-starter.git /tmp/gtm-engineer-starter
mkdir -p .claude/skills
cp -r /tmp/gtm-engineer-starter/skills/calibrated-judge .claude/skills/calibrated-judge
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Calibrated Judge an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Calibrated Judge automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Calibrated Judge net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Calibrated judge (Jev)

Jev is an evaluation model from TypeSafe. You give it some text (the "state") and typed questions about it. It answers with calibrated probabilities. A calibrated 0.9 means that, across many answers, about 90% of the 0.9s are true. That is what makes a rule like "accept only above 0.90" a sensible starting threshold. It is not proof the rule is right for your ICP and your packets: check it on your own rows (below, "Check the threshold on your rows").

This skill wraps Jev in a judge that turns those probabilities into one of four actions per row:

ActionMeaning
acceptconfident the row fits (a support question cleared 0.90)
rejectconfident it does not (a named disqualifier cleared 0.90)
reviewunsure; a human should look. These rows go to review_queue.csv
insufficientno answer: no key, judge switched off, or too little evidence. Not a "no".

The one rule

jev_client.ask() is the only door to Jev. Every call goes through scripts/jev_client.py. Do not hand-roll HTTP calls to TypeSafe or OpenRouter elsewhere. One client means one cache, one retry policy, one place keys are read, and one place they are kept out of logs.

Jev is the scorer. Do not swap in a general chat model as a "fallback judge": its numbers are not calibrated, so the 0.90 thresholds would mean nothing.

Setup (keys)

Put one of these in .env at the repo root (see .env.example):

  1. TYPESAFE_API_KEY: TypeSafe direct. Sign up at console.typesafe.ai. The client tries this first.
  2. OPENROUTER_API_KEY: the same model through OpenRouter (typesafe/jev-1.13 on OpenRouter's /api/alpha/decisions endpoint).

Check your key with one tiny call (a fraction of a cent):

bash
python3 skills/calibrated-judge/scripts/jev_client.py probe --no-cache

It prints which backend answered, the model, the latency and the cost. With no key, every backend is skipped and the judge returns insufficient; nothing is spent.

Jev is priced per input token (TypeSafe lists $0.042 per million). One fit question about a short packet costs well under a cent.

Score a list

bash
python3 skills/calibrated-judge/scripts/judge_packets.py \
    --packets out/my-run/packets \
    --icp icp.json \
    --out out/my-scores
  • --decision persona_fit --persona persona.json scores people packets instead.
  • --max-usd 1.0 (default) stops the run once metered spend passes $1.
  • --mode off makes no call at all (every row insufficient).

Outputs in --out:

  • scores.csv: one line per row with action, verdict, probability, reasons, cost.
  • review_queue.csv + review_cards.md: only the review rows, as a human worklist.
  • judge/decisions/YYYY-MM.jsonl: the append-only decision log.
  • summary.json: counts and spend.

In Python

python
import sys; sys.path.insert(0, "skills/calibrated-judge/scripts")
from judge import judge
result = judge("icp_fit", packet, icp={"inclusions": [...], "exclusions": [...]}, mode="shadow")
print(result.action, result.final_probability, result.review_reasons)

Decisions available: icp_fit, persona_fit (fit), and real_website, employment_now, same_identity, site_status, role_holder_now (identity).

Modes (CALIBRATED_JUDGE_MODE): off (default for library calls: no call), shadow (the judge answers and is logged, but changes nothing upstream), active (the judge's accept/reject may replace an upstream verdict, only for decisions listed in CALIBRATED_JUDGE_ACTIVE_DECISIONS). judge_packets.py runs in shadow by default.

Rank the accepted rows (quantify)

bash
python3 skills/calibrated-judge/scripts/quantify.py --scores out/my-scores/scores.csv \
    --packets out/my-run/packets --metric-name offices --out out/my-scores/shortlist.csv

It reads one number per accepted row from a packet field (default site.homepage_text, pattern: "N offices / locations / clinics / practices"; set --field and --pattern for your own), quotes where it found it, and ranks rows. A row with no number is kept, ranked last, and left blank: missing is not zero.

Check the threshold on your rows (free)

bash
python3 skills/calibrated-judge/scripts/check_precision.py sample \
    --scores out/my-scores/scores.csv --n 30 --out out/my-scores/to_label.csv
# fill your_answer (yes/no) for each row without looking at the judge's answer
python3 skills/calibrated-judge/scripts/check_precision.py measure \
    --scores out/my-scores/scores.csv --labels out/my-scores/to_label.csv

It prints accept precision (of the rows Jev accepted, how many you said fit), how many rejected rows you said fit, and every disagreement. If precision is below what you can live with, raise the threshold, fix the ICP rules or enrich the packets, then measure again on new rows.

Thin packets

If a packet is thin and the answer is review or insufficient, the fix is more evidence, not a better prompt. Rebuild the packet with build_packets.py --enrich and score again.

Reviewing the top rows

Jev scores every row. Then, for a small number of top-ranked rows (say the best 10 to 20 before you send), have a stronger model read the packet a second time. Do that with subagents inside the tool you already use (Claude Code or Codex subagents), not by wiring up a separate cheap API model. Small models like Haiku are not the best at this job.

If a step needs more intelligence than your default model, ask your agent, on the day you run it, to look up the current best models by dollars per unit of intelligence on public benchmarks. Do not hardcode a model: the answer changes every few months.

Self-hosted alternatives

If you cannot use a hosted model, open zero-shot classifiers exist, such as GLiClass and DeBERTa-based NLI zero-shot models. They are not wired into this repo, and their probabilities are not calibrated the way the thresholds here assume. You would need your own labelled set to set thresholds.

Files

  • scripts/jev_client.py: the client (backends, cache, retries, key handling).
  • scripts/judge/: the judge (core.py), fit questions (fit.py), cards, log, review queue.
  • scripts/bakeoff/: question batteries and composers the judge loads.
  • scripts/judge_packets.py: the list command.
  • scripts/quantify.py: rank accepted rows by one number from the packets.
  • scripts/check_precision.py: label ~30 rows by hand and measure the judge.
  • fixtures/packets/: synthetic packets used by the tests.
  • tests/: run python3 -m pytest -q skills/calibrated-judge/tests.

The bake-off harness, recipe-tuning loop and calibration reports behind the thresholds are in the full version (see NOT-INCLUDED.md).

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Calibrated Judge?

Score rows with Jev, TypeSafe's calibrated evaluation model, and get a probability plus one of four actions (accept, reject, review, insufficient) per row instead of a prose opinion. Use this whenever the user wants to score a list for ICP fit or persona fit, decide which rows a human must review, or check a yes/no claim about a company or person from an evidence packet. Reads the packets that skills/crawford builds. Writes scores.csv, a review queue, and an append-only decision log.

Firwat Calibrated Judge op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Calibrated Judge besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Calibrated Judge an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/SantaJordan/gtm-engineer-starter/tree/main/skills/calibrated-judge an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Calibrated Judge benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Calibrated Judge benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Calibrated Judge domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Calibrated Judge gratis?

Jo. SantaJordan huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇