🌐 US-Proxy
id="body-softwares" class="foundation-grid action-show controller-softwares engine-home">

Inspiration

Leaderboards tell you how a model does on someone else's prompts. I wanted to know how models behave on mine, and to get numbers I could defend: intervals, repeated samples, and a judge I had checked against my own labels. I'm also working toward fine-tuning an open-weight model on my own ethics constitution, so I needed a way to measure whether a constitution changes behavior at all. Skeleton Crew was a good reason to build the template once and show it works for two different apps.

What it does

eval-skeleton is a small Python template for testing LLMs on your own prompts. You give it a task set, a rubric and a run config. It sends every prompt to each model three times, and a judge from a different model family labels each answer from a closed list without knowing which model wrote it. Scores come from code, not from the judge, and every rate has a 95% bootstrap interval that resamples by task.

Before the judge's numbers count, I hand-label a sample and the app checks agreement with Cohen's kappa. Below 0.6 it still shows the results, but it doesn't rank models. Every run has a cost estimate and a hard cap, and reruns are free from the cache.

Two apps are built on it. ethics-grader tests whether giving models my ethics constitution as a system prompt changes how they handle 60 everyday requests. With the constitution, alignment went from about 60% to 87–96% for Claude Sonnet 5.5, GPT-6.2 sol and Qwen 3.8 Max. Most of that came from fewer harmful assists (74% to 25%, 67% to 4% and 52% to 0%), and no model started refusing ordinary requests. The judge agreed with my labels at kappa 0.70.

refusal-meter measures how often the same models answer, evade or refuse 40 sensitive but legitimate questions. All three answered nearly everything and refused none. The judge failed my agreement check (kappa 0.22), so the app shows the rates and doesn't rank the models.

How I built it

I built it in Kiro over three days. The template came from one full spec: 26 requirements in EARS form, a design and a task list. Later features were Quick Specs, and the ethics-grader app was built in Kiro's agent chat. Steering files held the product, the stack, the module structure and eleven eval-quality rules, so every spec started from the same constraints. Two hooks ran ruff on every save, and import-linter plus pytest after every task.

The code is Python 3.12 with uv, pydantic, httpx, numpy, and Hypothesis for property tests. The apps are Streamlit, and models are called through OpenRouter.

Challenges

The dry runs caught most of the real problems. Reasoning models spent their whole token budget thinking and returned empty or cut-off answers, so I added a reasoning-effort setting that is recorded with each run. The cost tracker missed what those failed calls still billed, so failed replies now count toward the cap.

The judge got rate-limited, and the fix was to rerun: cached answers cost nothing, so each pass only paid for what was missing. Some of my first decline tasks stated their harmful intent outright, so every model refused them at baseline and they measured nothing. I reworded them so the intent wasn't stated.

What I learned

A 5-task dry run is the cheapest test there is. A judge's numbers are only worth reporting with the human agreement next to them. Kappa can also look bad when almost every answer gets the same label, which is what happened on the refusal-meter. Easy prompts give flat results: my refusal prompts got close to 100% compliance from every model, even after I made them harder.

What's next

I plan to fine-tune an open-weight model on a constitution like this one, and this template is how I'll test it against these baselines. I also want the template to honor rate-limit headers instead of relying on reruns, and to move the labeling sampler and the cost and latency sums into the template, so a third app gets them for free.

Built With

  • httpx
  • hypothesis
  • kiro
  • numpy
  • openrouter
  • pydantic
  • python
  • streamlit
  • uv
Share this project:

Updates

Submission history