Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more

    Eval Dataset Forge

    by Hale Sinclair

    1

    These faults are invisible when you read a JSONL file by eye.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Eval Dataset Forge

    Eval Dataset Forge

    Example session with this skill installed

    I drafted 40 test cases for our support-ticket router in cases.jsonl, with schema.json and taxonomy.json. Check them before I build the eval: schema errors, duplicates, and anything the taxonomy has that the cases don't cover.

    • Read your context and instructions
    • Compiled the eval dataset forge

    Round 1 on cases.jsonl: 3 schema errors, 1 exact and 2 near duplicates, and no cases at all for the 'cancellation' intent. Script output, unedited (examples/demo/out/round1.txt): ``` $ validate.py cases.jsonl --schema schema.json --out out/round1_validate.json validate cases.jsonl: 40 records, 3 errors in 3 records, 0 warnings [FAIL] E_MISSING 1 line 35 expected required field is missing E_ENUM 1 line 33 intent 'refund' not in allowed set (7 values) E_LENGTH 1 line 29 input 2 characters < min_length 3 $ dedup.py cases.jsonl --fields input --k 3 --threshold 0.6 --out out/round1_dedup dedup cases.jsonl: 40 records, fields=input, near = Jaccard of character 3-shingle sets >= 0.60 exact-duplicate groups: 1 (2 records) near-duplicate pairs: 2 (4 records) clusters: 3 dropped: 3 kept: 37 unparsed: 0 empty text: 0 cluster 1 [exact, 2 records] keep line 6 KEEP line 6 representative J=1.000 id=st-006 | My order 55812 was supposed to arrive Tuesday and the tracking hasn... drop line 10 exact J=1.000 id=st-010 | my order 55812 was supposed to arrive tuesday and the tracking hasn... cluster 2 [near, 2 records] keep line 11 KEEP line 11 representative J=1.000 id=st-011 | I forgot my password and the reset email never arrives. drop line 15 near J=0.810 id=st-015 | I forgot my password and the password reset email never arrives in ... cluster 3 [near, 2 records] keep line 21 KEEP line 21 representative J=1.000 id=st-021 | The app crashes every time I open the reports tab on Android 14. drop line 26 near J=0.700 id=st-026 | The reports tab crashes the app each time I open it on Android 14. wrote out/round1_dedup/cases.jsonl (37 records), out/round1_dedup/dedup_report.json $ stats.py cases.jsonl --by intent,difficulty,case_type --cross intent,case_type --taxonomy taxonomy.json --out out/round1_stats.json stats cases.jsonl: 40 records (0 unparsed) warnings: 11 GAP 9 RARE 1 UNDECLARED 1 WARN GAP intent='cancellation' is in the taxonomy but has no records WARN GAP no records with intent='cancellation' and case_type='edge' WARN GAP no records with intent='cancellation' and case_type='negative' WARN GAP no records with intent='cancellation' and case_type='positive' WARN GAP no records with intent='out_of_scope' and case_type='edge' WARN GAP no records with intent='out_of_scope' and case_type='positive' WARN GAP no records with intent='refund' and case_type='edge' WARN GAP no records with intent='refund' and case_type='negative' WARN GAP no records with intent='shipping' and case_type='negative' WARN RARE intent='refund' is 2.5% of records (< 5%) WARN UNDECLARED intent='refund' is not in the taxonomy ``` What I recommend, finding by finding: - line 33: 'refund' is not a queue. Map it to billing; that also clears the RARE, UNDECLARED and refund GAP warnings. - line 35: add the missing expected value (returns). - line 29: "hi" is shorter than the schema's minimum. Make it "Hello?" and keep it as an empty-input negative. - line 10 is line 6 in lower case: drop it. Lines 15 and 26 reword lines 11 and 21 and test nothing new: drop them. - cancellation: write 5 cases (positive, negative, edge). Also add a shipping negative and an out_of_scope edge case. - out_of_scope × positive stays empty by design: an out-of-scope request has no positive case. **Next step:** run round 2 on the fixed file, then split with a fixed seed and prove 0 leakage. (In the demo's round 2, validate --strict passes, dedup takes 47 records to 44, the split gives train 33 / val 6 / test 5, leakage finds 0 pairs, and 33 chat examples are exported.)

    Connects securely to your tools. The creator never sees your data.

    About this skill

    ## The problem An eval set is only as good as its cases. Hand-written and generated sets share the same faults: - the same question appears twice, once in lower case or slightly reworded; - a reworded copy lands in both train and test, so the score is inflated; - a public benchmark question sits inside a training prompt; - one label has 40 cases while another has none; - a field is missing or holds a value no one declared. These faults are invisible when you read a JSONL file by eye. ## What it does Your agent does the judgment work. It writes a taxonomy, sets difficulty levels and drafts cases, including the negative and edge cases teams skip: key-word traps, out-of-scope requests, unauthorised requests, instructions aimed at the system, and empty input. Six standard-library Python scripts then measure the result and name every finding by its file line: - **validate.py**: schema checks with 12 error codes and 4 warning codes (missing field, wrong type, enum, length, range, pattern, duplicate id, control characters, mojibake, BOM, and more), for JSONL, CSV or TSV. - **dedup.py**: exact duplicates after normalisation (case, width, punctuation, whitespace) and near duplicates by character-shingle Jaccard, grouped into clusters, with `--out DIR` for the deduplicated file and a JSON report. - **split.py**: a seeded, stratified train/val/test split. Duplicate clusters (exact, near, and a record quoted inside a longer one), and records that share a `--group-field` such as a source document, always land in one split. - **leakage.py**: overlap between train and test, or against a benchmark file: exact, near, and contained (one text pasted inside a longer one, in either direction: a test question inside a longer prompt, or the reverse). `--out DIR` writes the training file without the leaked records, and a JSON report. - **stats.py**: counts, cross tables and length percentiles, with GAP, IMBALANCE, RARE, UNDECLARED and MISSING warnings against your taxonomy. - **export_openai.py**: OpenAI chat fine-tuning JSONL. `--check` validates any such file against 9 format errors. Each script is one file that needs no other file of the package, so it runs alone as Agensi delivers it. Each prints its report and writes files only when given `--out`. No script overwrites a file it reads: an output path that is one of its inputs is refused (exit 2). ## What the check run proves - **Automated de-duplication that is exact, not sampled.** The similarity join returned exactly the pairs an all-pairs brute force finds, over 3.0 million pairs on GSM8K and TruthfulQA (0 missed, 0 extra). - **Measured recall on public data.** - 45 copies planted in GSM8K test (case, punctuation, full-width, reworded, reordered): all 20 exact and all 25 near copies found, 0 false pairs. - 12 GSM8K test questions planted in the training set, 3 of them inside a longer prompt: all 12 found with the right kind. Comparing 7485 x 1319 records took 4.2 s in the recorded run. - **Findings in the published files themselves.** - GSM8K: 4 training questions overlap 3 test questions. - GSM8K test: 1 near-duplicate pair (lines 419 and 559). - TruthfulQA.csv: 2 rows with an empty Source. - **Splits that cannot leak duplicates.** 0 groups straddled splits, every stratum was within 1 record of its target, and the same seed gave byte-identical files. leakage.py, with containment on and the split's own setting, found 0 exact, near or contained pairs between the splits. - **The case-design method** in references/case-design.md: taxonomy first, difficulty defined in writing, at least one case of each negative type, and how to judge each kind of finding. Its similarity is character-shingle Jaccard, not embeddings, and it is not a benchmark runner. ## How it works 1. The agent writes taxonomy.json and schema.json, then drafts cases.jsonl with positive, negative and edge cases per label. 2. validate.py, dedup.py and stats.py report errors, duplicate clusters and empty cells, each with its line number. 3. The agent decides per finding: fix it, drop it, keep it as a deliberate minimal pair, or fill the gap. Then it runs the checks again. 4. split.py splits the clean set with a fixed seed. leakage.py, run with the same setting, finds 0 overlap between the splits (exact, near or contained) and checks against any benchmark you name. 5. Optionally, export_openai.py writes chat fine-tuning JSONL and checks its format. Everything runs locally on Python 3.9+ standard library. There is no network access, no model call, and nothing to install. ## Use cases - Write a 40-200 case regression eval for a prompt, classifier, RAG system or agent. - Clean a fine-tuning set before you pay for training. - Check whether training data contains questions from GSM8K or another benchmark you report. - Make a reproducible train/val/test split that keeps templates and source documents together. - Find the labels and case types your test set never covers. ## Known limitations - Similarity is character-shingle Jaccard (and containment), not embeddings. A paraphrase that shares little wording, or a translation, is not caught. - With default settings on short questions, only 10 of 25 one-word rewrites were found. The short-text setting (`--k 3 --threshold 0.6`) found 25 of 25, but it also reports template siblings for you to judge. - Near duplicates join into clusters by chains (A~B and B~C put A and C together). In a set built from templates, one cluster can hold many siblings that are not copies, so the skill reviews cluster sizes before anything is dropped. - With the short-text setting, split.py also keeps contained pairs together, and short texts chain into large groups: on TruthfulQA the largest group held 98 of 790 questions (the split prints its largest group; strata still came within 1 record of target). - It does not run your model or score outputs, and it has no tokenizer or cost estimate.

    Similarity is character-shingle Jaccard (and containment), not embeddings: a paraphrase with little shared wording, or a translation, is not caught. On short questions the default setting found 10 of 25 one-word rewrites; the documented short-text setting (--k 3 --threshold 0.6) found 25 of 25, and it also lists template siblings for review. Clusters join by chains, so in a templated set the skill reviews cluster sizes before dropping anything; with the short-text setting split.py keeps contained pairs together too, and on TruthfulQA its largest group held 98 of 790 questions. It does not run models or score outputs, and it has no tokenizer.

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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 today

    Software
    Python 3.9+

    No accounts, API keys or services.

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    The scripts make no network calls and start no subprocesses. They read only the files named on the command line and refuse (exit 2) an output path that is one of their inputs.

    Listedtoday

    What's inside

    Creator

    Hale Sinclair

    Hale Sinclair

    9 skills on Agensi

    Frequently Asked Questions

    No. It uses character-shingle Jaccard, computed exactly: on 3.0 million pairs it returned exactly what an all-pairs brute force finds. That catches copies that differ in case, punctuation, width, a few words or word order. A paraphrase with little shared wording is not caught. references/similarity.md shows which cases it catches and which it misses.

    Your agent drafts them, following the workflow in SKILL.md and references/case-design.md: taxonomy first, three difficulty levels, and negative and edge cases for every label. The scripts then check what was drafted.

    JSONL, CSV and TSV, including nested JSON fields (`a.b`) and OpenAI chat `messages` files. Line numbers in every report are the physical lines of your file.

    No. It builds and checks the dataset. You run it in your own harness or eval tool.

    No. The scripts make no network calls and read only the files you name.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.