agentleFS
saizulsaizul/ai-agent-builder-skills/skills/eval-harness/SKILL.md

eval-harness

Skill0 starsChanged 7 days agoMITView on GitHub

Build a small, business-focused evaluation set for an LLM agent or feature and score recorded outputs against it - test cases per in-scope task, out-of-scope and handover cases, policy and safety cases, tool-selection cases - with a stdlib script that runs JSONL test cases against JSONL outputs using exact, contains, not_contains, one_of, regex, max/min length, JSON field, tool_called and rubric checks, exports rubric items for human or judge grading, reports pass rate per tag and regressions against a baseline, and fails CI below a threshold. Use when the user wants to test an agent, compare prompts or models, prevent regressions, decide if an agent is good enough to launch, or asks how to evaluate a chatbot.

90 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use brand-discovery, project-guidelines-example and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ysyecustSkill

    brand-discovery

    Use when a brand needs to discover or articulate its identity through structured multi-session interviews. Covers purpose, positioning, audience, personality, voice, narrative, and founder-brand tension across 8 modules using laddering, 5 Whys, and projective techniques. Produces a resumable session with disk-persisted state and a master brandbook (90_SYNTHESIS.md).

    Also in 8 projects that use this

  • HABUBUSSSkill

    project-guidelines-example

    Also in 21 projects that use this

  • niloykumarbarmanSkill

    agent-sort

    Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

    Also in 16 projects that use this

  • junimnjwSkill

    ralphinho-rfc-pipeline

    RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.

    Also in 18 projects that use this

  • TironFoxSkill

    agent-payment-x402

    Add x402 payment execution to AI agents — per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents need to pay for APIs, services, or other agents.

    Also in 8 projects that use this

  • TironFoxSkill

    openclaw-persona-forge

    为 OpenClaw AI Agent 锻造完整的龙虾灵魂方案。根据用户偏好或随机抽卡, 输出身份定位、灵魂描述(SOUL.md)、角色化底线规则、名字和头像生图提示词。 如当前环境提供已审核的生图 skill,可自动生成统一风格头像图片。 当用户需要创建、设计或定制 OpenClaw 龙虾灵魂时使用。 不适用于:微调已有 SOUL.md、非 OpenClaw 平台的角色设计、纯工具型无性格 Agent。 触发词:龙虾灵魂、虾魂、OpenClaw 灵魂、养虾灵魂、龙虾角色、龙虾定位、 龙虾剧本杀角色、龙虾游戏角色、龙虾 NPC、龙虾性格、龙虾背景故事、 lobster soul、lobster character、抽卡、随机龙虾、龙虾 SOUL、gacha。

    Also in 7 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 82 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No defined scope yet: write the agent spec first (agent-scoping)

    line 27
  2. Distinctive:

    Check types and options: references/check-types.md.

    line 52
  3. Distinctive:

    Non-determinism: run flaky cases 3-5 times and require a majority, or lower temperature for evaluation runs.

    line 63

“Common” is measured: kept by at least 6 in 10 of the 82 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Eval harness

Without an eval set, every prompt change is a guess. Start with 30-100 cases that reflect the business, score them automatically where possible, and run them on every change.

Paths below are relative to this skill's folder.

When to use

  • "How do I test my chatbot / agent?", "is it ready to launch?"
  • Comparing two prompts, models, retrieval settings or tool definitions
  • Adding a regression gate to CI for prompt or tool changes
  • Turning failed production conversations into permanent tests

When not to use

  • No defined scope yet: write the agent spec first (agent-scoping)
  • Load or latency testing: use a load-testing tool; estimate with cost-latency-estimator
  • Mining production logs for problems: conversation-log-analysis (then convert findings to cases)

Workflow

  1. Collect cases from the spec and real traffic. For each in-scope task: typical, edge and ambiguous requests; plus out-of-scope, handover, policy (limits, promises), safety (PII, prompt injection in documents) and tool-selection cases. Aim for 20-50 per task over time; start with 5-10. Patterns are in references/case-design.md.
  2. Write them as JSONL like assets/example-cases.jsonl: id, input (or a messages list), tags, checks. Prefer deterministic checks; use rubric only for qualities that cannot be checked by text or structure.
  3. Record outputs with your own runner: send each case to the agent exactly as production does and write {"id", "output", "tool_calls"} per line to outputs.jsonl. Pin model, temperature and prompt version; store them next to the outputs.
  4. Score.
    python3 scripts/run_evals.py cases.jsonl outputs.jsonl
    python3 scripts/run_evals.py cases.jsonl outputs.jsonl --json > results.json
    python3 scripts/run_evals.py cases.jsonl outputs.jsonl --review-out to-grade.jsonl
    python3 scripts/run_evals.py cases.jsonl outputs.jsonl --grades graded.jsonl --min-pass-rate 0.9
    python3 scripts/run_evals.py cases.jsonl new-outputs.jsonl --baseline results.json --fail-on-regression
    python3 scripts/run_evals.py cases.jsonl outputs.jsonl --tag refunds
    Check types and options: references/check-types.md.
  5. Grade rubric items. --review-out writes ungraded criteria with input and output. Grade them by hand, or with a separate judge model whose grades you spot-check (at least 10%); fill pass with true/false and pass the file with --grades.
  6. Read failures, not only the rate. Group failures by tag and cause (prompt, retrieval, tool, policy gap, bad test). Fix bad tests openly; never delete a failing case to pass.
  7. Gate changes. In CI or before release: --min-pass-rate for the overall bar and --fail-on-regression against the last accepted results. Keep results.json per release.

Decision points

  • Non-determinism: run flaky cases 3-5 times and require a majority, or lower temperature for evaluation runs; record which cases are flaky.
  • Launch bar: agree with the business owner, e.g. 100% on safety/policy tags, 90%+ overall, no regressions. Put it in the spec.
  • Too few cases for a tag (< 5): treat its pass rate as anecdotal.

Output

48 case(s): 41 pass, 5 fail, 2 needs review, 0 missing output
pass rate 85.4% (of scored cases 89.1%)
  order-status   18/19  95%
  policy          6/8   75%
  refunds         5/7   71%
[FAIL] refund-limit: tool_not_called: tool calls: ['create_refund']
[FAIL] promo-expired: not_contains: found forbidden ['guarantee']
regressions: refund-limit; fixed: status-no-number
Verdict: not ready - policy tag below the 100% bar; refund tool called without limit check.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.