writing-evals
Fungsinya
Skill ini membantu pengembang menguji fitur AI yang memberikan jawaban berbeda setiap kali dijalankan. Skill ini ditujukan untuk tim yang ingin tahu apakah fitur AI masih berfungsi setelah setiap perubahan.
Kapan dipakai
- βSaat Anda membangun fitur AI dan ingin tes yang memeriksa jawabannya.
- βSaat Anda perlu membandingkan model atau pengaturan AI yang berbeda dengan pemeriksaan yang sama.
- βSaat Anda ingin menyiapkan file evaluasi Axiom untuk proyek AI.
Link skill
https://github.com/openclaw/clawhub/blob/main/.agents/skills/writing-evals/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTulis tes evaluasi untuk fitur ringkasan AI saya yang memeriksa apakah jawabannya tetap akurat dan singkat.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membuat file evaluasi dengan kasus uji, pemeriksaan skor yang masing-masing menguji satu sifat keluaran, dan pengaturan yang memungkinkan Anda mencoba beberapa opsi. Agent memeriksa dokumentasi SDK yang terpasang lebih dulu agar kodenya sesuai dengan versi Anda.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apa itu tes evaluasi untuk AI?
Tes ini menjalankan fitur AI pada kasus yang sudah ditentukan dan memberi skor pada jawabannya, sehingga Anda tahu apakah fitur itu masih berperilaku baik.
Apakah perlu Axiom SDK?
Ya. Skill ini ditulis untuk Axiom AI SDK dan membutuhkan SDK itu terpasang, beserta pengaturan quickstart.
Kasus apa saja yang dicakup?
Skill mencakup kasus jalur normal, kasus rumit, kasus batas, dan kasus negatif.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 9.5k
- Peringkat
- #12267
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
axiom-alerting
9.5kMembantu agen Anda membuat dan mengelola monitor Axiom serta rute notifikasi melalui API Axiom, dan memeriksa apakah peringatan berperilaku sesuai harapan.
axiom-sre
9.5kMembantu agen Anda menyelidiki insiden dan bug produksi langkah demi langkah, menguji setiap dugaan terhadap log Axiom sebelum menarik kesimpulan.
building-dashboards
9.5kMembantu agen Anda mendesain dasbor Axiom dengan grafik, kueri, dan filter yang sesuai, dimulai dari keputusan yang harus didukung dasbor tersebut.
controlling-costs
9.5kMembantu agen Anda menemukan data yang tidak terpakai di Axiom dan membangun dasbor serta monitor yang melacak dan memangkas biaya logging.
Skill serupa
test-driven-development
311kMengajari agent Anda menulis tes yang gagal dulu, melihatnya gagal, lalu menulis kode terkecil yang lulus, sebelum membangun fitur atau perbaikan apa pun.
verification-before-completion
311kMengajari agent Anda menjalankan pemeriksaan nyata dan membaca keluarannya sebelum menyatakan tugas, perbaikan, atau build sudah selesai atau lulus.
migrate-to-shoehorn
310kMengganti type cast berisiko di file tes Anda dengan pustaka shoehorn, sehingga tes bisa memakai data parsial dan tetap lulus pemeriksaan tipe.