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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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
- Complete the Axiom AI SDK Quickstart (instrumentation + authentication)
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
- Evals are tests for AI. Every eval answers: "does this capability still work?"
- Scorers are assertions. Each scorer checks one property of the output.
- Flags are variables. Flag schemas let you sweep models, temperatures, strategies without code changes.
- Data drives coverage. Happy path, adversarial, boundary, and negative cases.
- 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
- Find the AI function — search for the function the user mentioned. Read it fully.
- Trace the inputs — what data goes in? A string prompt, structured object, conversation history?
- Trace the outputs — what comes back? A string, category label, structured object, agent result with tool calls?
- Identify the model call — which LLM/model is used? What parameters (temperature, maxTokens)?
- Check for existing evals — search for
*.eval.tsfiles. Don't duplicate what exists. - 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:
- Correctness scorer (required) — Does the output match expected? Pick from the eval type table above (exact match, set match, field match, etc.).
- Quality scorer (recommended) — Is the output well-formed? Check confidence thresholds, output length, format validity, or field completeness.
- 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.
댓글
- …
이 저장소의 다른 스킬
axiom-alerting
9.5k에이전트가 Axiom API로 Axiom 모니터와 알림 경로를 만들고 관리하며, 알림이 기대대로 작동하는지 확인하도록 돕습니다.
axiom-sre
9.5k에이전트가 운영 장애와 버그를 단계별로 조사하도록 돕습니다. 결론을 내리기 전에 각 추측을 Axiom 로그로 검증합니다.
building-dashboards
9.5k에이전트가 적합한 차트, 쿼리, 필터를 갖춘 Axiom 대시보드를 설계하도록 돕습니다. 대시보드가 지원해야 할 결정에서 시작합니다.
controlling-costs
9.5k에이전트가 Axiom에서 쓰이지 않는 데이터를 찾고, 로깅 비용을 추적하고 줄이는 대시보드와 모니터를 만들도록 돕습니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.