Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Agent evals and observability/Evaluation-design
Reference · Agent evals and observability

Evaluation-design

Part of Agent evals and observability. Install the skill and your agent reads this page when it needs the depth.

Evaluation Design

Write a task contract: inputs and context, permitted tools and permissions, expected outcome, prohibited outcomes, environment assumptions, and observable completion evidence. Add a trajectory contract when the path matters: eligible tool selection and arguments, authorization checks, state transitions, grounding sources, recovery behavior, stopping/escalation, and permitted side effects.

Select evidence rather than requiring every evaluation type:

Evidence Useful when Boundary
Unit A prompt formatter, tool adapter, parser, or guard can be isolated Does not establish integration behavior
Component Router, retriever, policy layer, or tool boundary interacts internally May hide production environment behavior
Scenario A complete task must run under controlled conditions Results depend on fixture fidelity
Regression A known behavior or escaped failure must remain protected Cannot cover unknown failures
Adversarial Misuse, injection, unsafe actions, or leakage are plausible Challenge coverage is never exhaustive
Online Distribution shift, service variability, or user outcomes matter Confounding and consent constrain interpretation
Human review Domain or subjective criteria cannot be directly automated Review remains rubric- and context-sensitive

Use synthetic, curated, replayed-production, adversarial, and regression cases as distinct declared sources. Choose a mix based on task harm, reversibility, novelty, external side effects, and availability of valid evidence.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.