agentsclimarketplace

Model evaluation

Skill scoobydont-666/shared-claude-skills/skills/model-evaluation

10 production-tested Claude Code skills — model routing, security hardening, code quality, tax advisory, cost optimization. Install: clone to ~/.claude/skills/

Install
npx -y skills add scoobydont-666/shared-claude-skills --skill model-evaluation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

LLM evaluation methodology — side-by-side comparison, domain-specific benchmarking, regression detection for fine-tuned models. Trigger on: "evaluate model", "benchmark", "model comparison", "A/B test models", "model quality", "accuracy test", "regression test model", or any discussion about measuring LLM output quality.

SKILL.md

4.5 KB, as published. Nobody here has run it

Model Evaluation — Systematic LLM Quality Assessment

Evaluation Framework

5 Dimensions (Always Test All)

DimensionWhat to MeasureHow
Factual RecallSpecific numbers, dates, thresholdsKnown-answer questions
CalculationStep-by-step math, correct final answerProblems with verifiable solutions
Edge CasesAmbiguous scenarios requiring judgmentTricky questions with nuanced answers
CitationReferences real sources (IRC §, IRS Pub)Check every citation exists
CoherenceWell-structured, complete, no degenerationLength, structure, readability

Scoring

PASS:    Correct answer, well-reasoned, properly cited
PARTIAL: Correct concept, wrong number or missing citation
FAIL:    Wrong answer, hallucinated citation, or degenerated output

Comparison Methodology

Side-by-Side Evaluation

# Run same question through both models
for question in eval_set:
    response_a = query(model_a, question)
    response_b = query(model_b, question)
    # Score independently on 5 dimensions

Regression Detection

When fine-tuning iterations:

  1. Run eval BEFORE training (baseline)
  2. Run eval AFTER training (candidate)
  3. Compare dimension-by-dimension
  4. Any dimension regression → investigate before deploying

Overfit Detection Signs

  • Model outputs dots, repeating characters, or gibberish
  • Responses are exact copies of training examples
  • Model can't handle questions outside training distribution
  • Response length dramatically changes (too short or infinite)

Root cause: Too many epochs on too little data. Fix: Reduce epochs, add more diverse training data.

Evaluation Set Design

For Domain-Specific Models (e.g., Tax)

CategoryCountPurpose
Factual (known answers)10Tests memorization of current facts
Calculation5Tests reasoning + arithmetic
Scenario-based5Tests application of rules
Edge cases5Tests judgment under ambiguity
Out-of-domain3Tests guardrails (should refuse/deflect)
Total28Minimum viable eval set

Question Quality Rules

  1. Every question must have a verifiable correct answer
  2. Include the year in factual questions (tax rates change)
  3. Calculation questions must have worked solutions for comparison
  4. Edge cases should have multiple valid perspectives
  5. Out-of-domain questions test that the model doesn't hallucinate expertise

Evaluation Tooling

evaluate.py Pattern

def evaluate(models: list[str], questions: list[dict]) -> list[dict]:
    results = []
    for q in questions:
        row = {"question": q["text"], "expected": q["answer"], "responses": {}}
        for model in models:
            response = query_ollama(model, q["text"])
            row["responses"][model] = {
                "text": response,
                "tokens": token_count,
                "latency_ms": latency,
                "matches_expected": check_answer(response, q["answer"]),
            }
        results.append(row)
    return results

Automated Scoring (Where Possible)

  • Factual: Extract numbers, compare to expected
  • Calculation: Extract final answer, compare to expected
  • Citation: Regex for IRC §, IRS Pub — verify they exist
  • Coherence: Check length > 100 chars, no repeated tokens
  • Edge cases: Requires human review

Training Data vs Model Quality Correlation

Quality = f(data_quality × data_quantity × model_size) / epochs²

More data → linear improvement
Better data → exponential improvement
More epochs → diminishing returns → overfit
Bigger model → better reasoning, same fact accuracy

Production Deployment Checklist

Before deploying a fine-tuned model:

  • Run full eval set (28+ questions)
  • Compare against baseline on all 5 dimensions
  • No dimension regression
  • Overfit check: test 5 out-of-domain questions
  • Coherence check: 10 random prompts, all produce structured output
  • Latency check: <5s for typical responses
  • VRAM check: fits in target GPU with room for inference

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.