Skip to content
cccskills
FreePublished on GitHub

llm-evals

Evals for LLM features, agents and RAG: golden dataset, four eval layers, LLM-as-judge, RAG metrics, CI gate against a baseline. Design, run or review an eval suite.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3 stars(GitHub 3 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md4.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

LLM Evals

Unit tests check code with the model faked; evals check behavior with the real model. An LLM feature without evals changes behavior on every prompt or model update and nobody notices. This skill builds the suite the llm-code rule asks for.

Phase 1: Scope

ModeDoes
designBuilds the dataset and the eval plan for a feature
runRuns the suite and compares it with the baseline
reviewAudits an existing suite and gives a verdict

Read the feature's prompts, tools and output schema first. Ask what a wrong answer costs: a typo in a summary or a wrong refund. That decides the thresholds.

Phase 2: Dataset

  • Golden set: 30–100 real inputs with the expected output or the facts it must contain. Take them from production logs (redacted) or support tickets, not invented by the same model.
  • Edge cases: empty and very long inputs, other languages, ambiguous requests, inputs that should be refused.
  • Adversarial: prompt injection in user text and in retrieved documents, requests outside the tool's scope.
  • Regressions: every bug fixed in production becomes a case.
  • Version the dataset with the code (evals/datasets/*.jsonl). Never edit a case to make it pass.

Phase 3: Eval layers

LayerQuestionCheck
1. OutputIs each answer right and well formed?Schema validation, exact or fuzzy match, contains the required facts
2. Tool choice (agents)Did it call the right tool with the right arguments?Compare the tool call trace with the expected one; argument schema
3. Task (agents)Did the whole multi-step task end in the right state?Check the final state (record created, file written), not the transcript
4. SafetyDoes it refuse or contain what it must?Injection cases do not change behavior; no secrets or PII in the output; destructive tools ask for confirmation

Prefer deterministic checks. Use a judge only where a rule cannot decide.

Phase 4: LLM-as-judge

  • One criterion per judge prompt, a 1–5 scale with each score defined, and the reasoning before the score.
  • A different model, or at least a different prompt, from the one being judged.
  • Calibrate: score 20 cases by hand, compare with the judge, and keep it only if it agrees on most of them.
  • Store the judge prompt and model version with the results; a judge change is a baseline change.

Phase 5: RAG metrics

MetricMeasures
Retrieval recall@kThe chunk with the answer is among the top k
GroundednessEvery claim in the answer is supported by a retrieved chunk
Answer relevanceThe answer addresses the question
AbstentionWith no supporting chunk, it says it does not know instead of guessing

Low groundedness with good recall is a prompt problem; low recall is an indexing or chunking problem (see /rag-architect).

Phase 6: Run and gate

  • Run with a fixed model version and temperature 0 where the API allows it; for sampled outputs run each case 3 times and score the rate.
  • Record per run: pass rate per layer, cost, p95 latency, model and prompt versions.
  • CI gate: run on every change to prompts, tools, model or retrieval. Fail when a layer drops below its baseline by more than the agreed margin, or any safety case fails.
  • Tools: a plain test runner with a JSONL loader is enough; promptfoo, Braintrust or Langfuse datasets add reporting. Check the installed version's docs before writing config from memory.

Phase 7: Verdict (review mode)

VerdictWhen
PASSGolden, edge and adversarial cases exist; layers that apply are covered; CI gate compares with a baseline
CONCERNSSuite exists but misses a layer, has no baseline, or uses an uncalibrated judge
FAILNo eval suite, or no safety cases for a feature with tools or user data

Protocol

  • Ask before writing dataset files or CI workflows.
  • Evals hit a paid API: estimate the cost of one run before running it.
  • Never put real PII in the dataset; redact before saving.

Next steps

  • /llm-cost-optimizer once quality is measured, to cut cost without losing it.
  • /ai-security for a deeper look at injection and data exposure.
  • /observability to track the same metrics in production.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

See all skills by SebastianLuser

Report a problem with this skill