본문으로 건너뛰기
Skillpedia
테스트9.5k · #12267

writing-evals

하는 일

이 스킬은 결과가 매번 달라지는 AI 기능을 테스트하도록 돕습니다. 변경할 때마다 AI 기능이 계속 잘 작동하는지 알고 싶은 팀을 위한 것입니다.

사용하는 경우

  • ✓답변을 확인하는 테스트가 필요한 AI 기능을 만들고 있을 때.
  • ✓같은 채점 기준으로 여러 AI 모델이나 설정을 비교하고 싶을 때.
  • ✓AI 프로젝트를 위해 Axiom 평가 파일을 설정하고 싶을 때.

스킬 링크

https://github.com/openclaw/clawhub/blob/main/.agents/skills/writing-evals/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/openclaw/clawhub/blob/main/.agents/skills/writing-evals/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 AI 요약 기능에 대해, 답변이 정확하고 짧게 유지되는지 확인하는 평가 테스트를 작성해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 테스트 사례가 들어 있는 평가 파일, 출력의 한 가지 속성만 확인하는 채점 항목, 여러 옵션을 시험할 수 있는 설정을 만듭니다. 코드가 버전과 맞도록 먼저 설치된 SDK 문서를 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Writing Evals

You write evaluations that prove AI capabilities work. Evals are the test suite for non-deterministic systems: they measure whether a capability still behaves correctly after every change.

Prerequisites

Verify the SDK is installed:

ls node_modules/axiom/dist/

If not installed, install it using the project's package manager (e.g., pnpm add axiom).

Always check node_modules/axiom/dist/docs/ first for the correct API signatures, import paths, and patterns for the installed SDK version. The bundled docs are the source of truth — do not rely on the examples in this skill if they conflict.

Philosophy

  1. Evals are tests for AI. Every eval answers: "does this capability still work?"
  2. Scorers are assertions. Each scorer checks one property of the output.
  3. Flags are variables. Flag schemas let you sweep models, temperatures, strategies without code changes.
  4. Data drives coverage. Happy path, adversarial, boundary, and negative cases.
  5. Validate before running. Never guess import paths or types—use reference docs.

Axiom Terminology

Term Definition
Capability A generative AI system that uses LLMs to perform a specific task. Ranges from single-turn model interactions → workflows → single-agent → multi-agent systems.
Collection A curated set of reference records used for testing and evaluation of a capability. The data array in an eval file is a collection.
Collection Record An individual input-output pair within a collection: { input, expected, metadata? }.
Ground Truth The validated, expert-approved correct output for a given input. The expected field in a collection record.
Scorer A function that evaluates a capability's output, returning a score. Two types: reference-based (compares output to expected ground truth) and reference-free (evaluates quality without expected values, e.g., toxicity, coherence).
Eval The process of testing a capability against a collection using scorers. Three modes: offline (against curated test cases), online (against live production traffic), backtesting (against historical production traces).
Flag A configuration parameter (model, temperature, strategy) that controls capability behavior without code changes.
Experiment An evaluation run with a specific set of flag values. Compare experiments to find optimal configurations.

How to Start

When the user asks you to write evals for an AI feature, read the code first. Do not ask questions — inspect the codebase and infer everything you can.

Step 1: Understand the feature

  1. Find the AI function — search for the function the user mentioned. Read it fully.
  2. Trace the inputs — what data goes in? A string prompt, structured object, conversation history?
  3. Trace the outputs — what comes back? A string, category label, structured object, agent result with tool calls?
  4. Identify the model call — which LLM/model is used? What parameters (temperature, maxTokens)?
  5. Check for existing evals — search for *.eval.ts files. Don't duplicate what exists.
  6. Check for app-scope — look for createAppScope, flagSchema, axiom.config.ts.

Step 2: Determine eval type

Based on what you found:

Output type Eval type Scorer pattern
String category/label Classification Exact match
Free-form text Text quality Contains keywords or LLM-as-judge
Array of items Retrieval Set match
Structured object Structured output Field-by-field match
Agent result with tool calls Tool use Tool name presence
Streaming text Streaming Exact match or contains (auto-concatenated)

Step 3: Choose scorers

Every eval needs at least 2 scorers. Use this layering:

  1. Correctness scorer (required) — Does the output match expected? Pick from the eval type table above (exact match, set match, field match, etc.).
  2. Quality scorer (recommended) — Is the output well-formed? Check confidence thresholds, output length, format validity, or field completeness.
  3. Reference-free scorer (add for user-facing text) — Is the output coherent, relevant, non-toxic? Use LLM-as-judge or autoevals.

| Output

자주 묻는 질문

AI용 평가 테스트란 무엇인가요?

정해진 사례로 AI 기능을 실행해 답변을 채점하므로, 기능이 여전히 잘 작동하는지 볼 수 있습니다.

Axiom SDK가 필요한가요?

네. 이 스킬은 Axiom AI SDK용으로 작성되었으므로, 빠른 시작 설정과 함께 SDK가 설치되어 있어야 합니다.

어떤 사례를 포함하나요?

정상 사례, 까다로운 사례, 경계 사례, 잘못된 입력 사례를 다룹니다.

상세 정보

작성자의 원본 설명

Scaffolds evaluation suites for the Axiom AI SDK. Generates eval files, scorers, flag schemas, and config from natural-language descriptions. Use when creating evals, writing scorers, setting up flag schemas, or configuring axiom.config.ts.

repo: openclaw/clawhub

인기도

GitHub 스타
9.5k
순위
#12267
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬