본문으로 건너뛰기
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 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고