跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane星标 3(GitHub 3 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md4.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

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.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

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

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

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.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

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

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

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

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

查看 SebastianLuser 的全部技能

报告此技能的问题