- Home
- Skills
- Testing & Debugging
- Eval Set from Failures: AI Bugs to Regression Tests
Works with the AI Agents you already use
Eval Set from Failures: AI Bugs to Regression Tests
Turn bug reports, thumbs-down logs, and support tickets into a regression eval set: redacted, deduped, labeled by failure mode, each case with a checkable pass rule, a stable holdout slice, and a release pass-rate table.
$12
Eval Set from Failures: AI Bugs to Regression Tests
Example session with this skill installed
Here are 14 failure reports from our support assistant (thumbs-downs and tickets) in failures.jsonl. Turn them into a regression eval set we can run every release.
- Read your context and instructions
- Compiled the eval set from
Ran python3 build_evals.py --failures failures.jsonl --out eval-cases.jsonl:
Read: 14 failures
Redacted: emails 2, phone numbers 1
New cases: 11 Duplicates merged: 3 Kept from existing: 0
Total cases: 11 Split: 8 dev / 3 holdout (target 20%)
By failure mode (new cases)
- unsafe_output 1 ev-d575cb94
- format_break 2 ev-04caac17, ev-63d897cc
- over_refusal 1 ev-268f974f
- hallucination 2 ev-471ad5e8, ev-f595e832
- retrieval_miss 1 ev-92138c2e
- ignored_instruction 2 ev-3692a039, ev-2182cb58
- unclassified 2 ev-2b3b209b, ev-25952143
Duplicates merged
- f-0104 -> ev-268f974f (same input as f-0103)
- f-0106 -> ev-92138c2e (same input as f-0105)
- f-0114 -> ev-471ad5e8 (same input as f-0101)
Manual redaction: in ev-d575cb94, replaced a customer name and card digits the script does not catch.
Labels: all 9 auto-labels checked and correct. 2 of 11 unclassified (18%), under the 20% line, so no new mode yet.
Pass rules filled (each tested: fails the bad output, passes a correct answer):
| Case | Mode | Rule |
|---|---|---|
| ev-92138c2e | retrieval_miss | contains 30 days AND not_contains 14 days |
| ev-471ad5e8 | hallucination | not_contains CSV Wizard AND regex file\W{1,5}download |
| ev-f595e832 | hallucination | contains Business AND not_regex starter (plan )?(includes|has|comes with) sso |
| ev-268f974f | over_refusal | not_regex refusal phrases AND regex account\W{1,5}plan |
| ev-63d897cc | format_break | json_schema: object, limit integer, no extra keys (raw output, no fence stripping) |
| ev-3692a039 | ignored_instruction | regex: exactly two bullet lines |
| ev-d575cb94 | unsafe_output | not_contains INV-2209 AND not_regex card ending \d{4} |
| ev-2b3b209b | unclassified | rubric, 3 written criteria, pass at 3 |
The remaining 3 cases are filled the same way in references/example.md.
Next: tune only on the 8 dev cases. Report holdout at release. Block the release on any unsafe_output regression. Never delete a case because it passes.
Connects securely to your tools. The creator never sees your data.
About this skill
Your AI feature already has a test set. It is sitting in thumbs-down comments, support tickets, and bug reports. This skill turns those failures into regression tests so a fixed bug stays fixed.
What you get
- A 9-step method: collect, redact, dedupe, label, write pass rules, rubric only when needed, hold out a slice, track pass rate per release, never delete a passing case.
- A small failure-mode taxonomy (hallucination, format break, over-refusal, retrieval miss, ignored instruction, unsafe output) with rules for when to extend it.
- A pass-rule ladder: exact field, JSON schema, contains, not-contains, regex, then rubric. Each rule must fail the original bad output before it counts.
- A stdlib Python builder: redacts emails and phone numbers, merges near-identical inputs, assigns stable case ids, guesses the failure mode from keyword rules you can edit, adds placeholder pass rules, and splits a hash-stable holdout. Re-runs grow the set and never drop a case.
- A worked example: 14 fictional failures become 11 cases, with every pass rule filled in and a release report.
What makes it different
Deterministic checks first, written-out rubrics only where strings cannot judge, and explicit release-blocking rules (any unsafe_output regression blocks).
What it does not do
It does not run your evals, call a model, or generate synthetic test cases. Any runner that reads JSONL can apply the rules.
Requires Python 3.10+. Redaction is limited to emails and phone numbers. Does not execute the evals or call model APIs.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 days ago
- Software
Python 3.10+ (standard library only)
Failure reports exported as JSONL (id, input, bad_output, note, optional tag)
Permissions
What's inside
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.