本文へ移動
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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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 のスキルをすべて見る

このスキルの問題を報告する