Aller au contenu
Skillpedia
Tests9.5k · #12267

writing-evals

Ce qu’il fait

Cette compétence aide les développeurs à tester les fonctionnalités d'IA qui donnent une réponse différente à chaque fois. Elle s'adresse aux équipes qui veulent savoir si une fonctionnalité d'IA fonctionne toujours après chaque modification.

Quand l’utiliser

  • ✓Quand vous construisez une fonctionnalité d'IA et voulez des tests qui vérifient ses réponses.
  • ✓Quand vous devez comparer différents modèles ou réglages d'IA avec les mêmes contrôles.
  • ✓Quand vous voulez configurer des fichiers d'évaluation Axiom pour un projet d'IA.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/openclaw/clawhub/blob/main/.agents/skills/writing-evals/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Écris des tests d'évaluation pour ma fonctionnalité de résumé par IA, qui vérifient que les réponses restent exactes et courtes.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent crée des fichiers d'évaluation avec des cas de test, des contrôles de notation qui vérifient chacun une propriété de la sortie, et des réglages qui permettent d'essayer différentes options. Il consulte d'abord la documentation du SDK installé pour que le code corresponde à votre version.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

Questions fréquentes

Qu'est-ce qu'un test d'évaluation pour l'IA ?

Il exécute une fonctionnalité d'IA sur des cas définis et note les réponses, pour voir si la fonctionnalité se comporte toujours bien.

Faut-il le SDK Axiom ?

Oui. La compétence est écrite pour le SDK IA d'Axiom et nécessite son installation, ainsi que la configuration de démarrage rapide.

Quels cas couvre-t-elle ?

Le cas nominal, les cas délicats, les cas limites et les cas négatifs.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
9.5k
Position au classement
#12267
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires