Agent skill

Audit Sft Data Quality

by tokenbender in tokenbender/agent-guides

Audit supervised fine-tuning datasets against the behavior and task they are meant to teach.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Audit Sft Data Quality

skills CLI
$ npx skills add tokenbender/agent-guides --skill audit-sft-data-quality -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tokenbender/agent-guides audit-sft-data-quality --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tokenbender/agent-guides.git skills-src && mkdir -p .claude/skills && cp -r skills-src/claude-skills/audit-sft-data-quality .claude/skills/audit-sft-data-quality && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
audit-sft-data-quality
GitHub stars
367
Token cost
~2.7k tokens
SKILL.md length
1,283 words
Files
3 (incl. references)
Skills in repo
11
Repo updated
First seen
Licence
Apache-2.0

At a glance

Audit supervised fine-tuning datasets against the behavior and task they are meant to teach.

  • Works in 11 steps: Define the behavior contract → Freeze the source inventory → Validate structure and conversation… → …
  • Inspecting SFT JSONL
  • SKILL.md covers Core rule, 1. Define the behavior contract, 2. Freeze the source inventory and 3. Validate structure and…, plus 10 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Audit Sft Data Quality is an agent skill from tokenbender/agent-guides. Audit supervised fine-tuning datasets against the behavior and task they are meant to teach. Use when inspecting SFT JSONL, chat messages, instruction-response pairs, tool or agent trajectories, code corpora, synthetic examples, revised datasets, base-model evals, pass@k skill maps, train-validation-test splits, benchmark contamination, duplicate lineage, answer correctness, token limits, data mixtures, or train-readiness claims. Produce an evidence-backed row catalog, quality gates, duplicate and contamination…

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `agents/openai.yaml` and `references/iterative-sft-data-design.md`).

It sits in AI & LLM Engineering, covering Fine-tuning, Data cleaning and LLM evaluation. The repository describes itself as: one page guides that i let my subscribed/customised agents consume to perform actions. The licence is Apache-2.0.

When your agent uses it

  • Inspecting SFT JSONL
  • Instruction-response pairs
  • Agent trajectories
  • Synthetic examples

Example prompts

  • “/audit-sft-data-quality”

Workflow steps

11 steps, taken from the step headings in SKILL.md.

  1. Define the behavior contract
  2. Freeze the source inventory
  3. Validate structure and conversation semantics
  4. Categorize and tag every row
  5. Detect duplicates and lineage
  6. Audit contamination and split integrity
  7. Verify correctness with the strongest oracle
  8. Evaluate signal density and teaching value
  9. Audit corpus composition
  10. Assign a row disposition
  11. Validate with training and held-out execution

What it can do on your machine

Read from SKILL.md and the folder at commit a74dd9d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Audit Sft Data Quality loads about 2.7k tokens when it runs, and up to ~8.1k if it reads all its reference files. Until then it costs about 159 tokens; SKILL.md has 1,283 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~159
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from tokenbender/agent-guides at commit a74dd9d, republished under its Apache-2.0 licence (© tokenbender). 1,283 words, ~2,695 tokens.

Download SKILL.mdSave it as .claude/skills/audit-sft-data-quality/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
audit-sft-data-quality
description
Audit supervised fine-tuning datasets against the behavior and task they are meant to teach. Use when inspecting SFT JSONL, chat messages, instruction-response pairs, tool or agent trajectories, code corpora, synthetic examples, revised datasets, base-model evals, pass@k skill maps, train-validation-test splits, benchmark contamination, duplicate lineage, answer correctness, token limits, data mixtures, or train-readiness claims. Produce an evidence-backed row catalog, quality gates, duplicate and contamination report, corpus composition analysis, and a train, review, replace, reject, or eval-only decision.

Audit SFT Data Quality

Core rule

Judge every row against the target task. A polished answer is not high-quality supervision if it teaches the wrong behavior, violates the task contract, leaks the evaluator, or cannot be verified.

Apply hard correctness and integrity gates before diversity scores, confidence scores, or aesthetic judgments.

For base-eval diagnosis, capability planning, synthesis, augmentation, and iterative dataset design, read iterative-sft-data-design.md.

1. Define the behavior contract

Write the contract before reading candidate answers:

FieldRequired description
TaskWhat the model must accomplish
InputsAllowed data, context, tools, and state
OutputRequired schema, format, files, actions, or response style
InvariantsFacts that must remain true
Failure behaviorRejection, abstention, rollback, or recovery rules
Resource limitsContext, tokens, latency, memory, calls, or complexity
EvaluationOracle, tests, rubric, benchmark, and sampling policy
Generalization targetNovel domains, templates, difficulty, or workflows

Do not infer train readiness while any contract-critical field is unknown. Record assumptions explicitly when the source does not define them.

2. Freeze the source inventory

Preserve immutable evidence before transforming data:

  • source path, repository, revision, archive member, or URL;
  • file and member SHA-256;
  • row counts and unique task counts;
  • schema version and split;
  • synthetic, human, model-generated, repaired, or imported provenance;
  • license, privacy, consent, and secret-handling constraints;
  • parent row or revision lineage.

Never overwrite raw inputs. Put normalized, selected, repaired, and rejected rows in separately identified artifacts.

3. Validate structure and conversation semantics

Check every row, not a sample:

  • parseability and required keys;
  • stable task identity and label consistency;
  • legal role order and nonempty assistant target;
  • output-format compliance;
  • tool-call and tool-result pairing;
  • referenced files, attachments, schemas, and environments;
  • absence of accidental test, reference-answer, private-state, or system-prompt content;
  • tokenizer-measured length under the actual model revision;
  • loss masking and target boundaries when the training loader uses them.

Reject malformed rows rather than silently coercing them unless the repair is deterministic, recorded, and reverified.

4. Categorize and tag every row

Use tags that support balancing, diagnostics, and regression analysis. Include:

  • task family and domain;
  • target capability;
  • output mode and interaction mode;
  • algorithm, tool, or reasoning pattern;
  • stateful versus stateless behavior;
  • edge-case and failure-mode tags;
  • difficulty and resource profile;
  • source, split, revision, and synthetic status;
  • verification status and oracle type;
  • safety, privacy, or contamination risk.

Prefer explicit tags such as mutation-atomicity, boundary-conditions, tool-repair, deterministic-ordering, or calibrated-abstention over vague labels such as hard or quality.

5. Detect duplicates and lineage

Compare within the candidate set and against all existing sets at multiple levels:

  1. exact row hash;
  2. exact task ID or label;
  3. normalized prompt and answer;
  4. prompt-only and answer-only matches;
  5. revision suffixes and explicit parent metadata;
  6. source slug and source hash;
  7. template, paraphrase, or semantic overlap;
  8. equivalent tests, APIs, or solution contracts under different names.

Classify matches instead of calling all of them duplicates:

RelationDefault action
Exact duplicateKeep one canonical row
Same-ID correctionReplace the ancestor after verification
Versioned revisionKeep the newest verified version; preserve lineage
Paraphrase with identical targetDown-weight or keep one representative
Shared concept, distinct contractKeep if it adds measurable coverage
Conflicting answersQuarantine and adjudicate
Collision-qualified variantsReview APIs and tests before keeping both

Do not train an ancestor and its correction as independent examples unless the training format explicitly teaches critique and correction.

6. Audit contamination and split integrity

Check more than exact task IDs:

  • benchmark names and public exercise IDs;
  • prompt, title, filename, symbol, and test similarity;
  • answer or reference-code similarity;
  • shared templates and generated variants;
  • parent-child lineage across splits;
  • hidden labels, expected outputs, tests, rubrics, or judge feedback;
  • near-duplicate domains that preserve the same executable contract.

Use group-aware splits by underlying task, template, source family, and revision lineage. If a row teaches an evaluation answer directly, remove it from training or move the evaluation surface.

7. Verify correctness with the strongest oracle

Prefer deterministic evidence. Use the strongest applicable method:

Task typePreferred evidence
CodeBuild, tests, hidden tests, sanitizers, static checks, complexity probes
Math or logicExact solver, symbolic check, property tests, counterexamples
ExtractionSource-grounded field comparison and span provenance
TransformationRound-trip, invariant, and property-based checks
Tool or agent taskSandboxed replay, final-state assertions, action constraints
Structured outputSchema validation plus semantic field checks
Open-ended responseExplicit rubric, independent judges, factual grounding
Safety behaviorAdversarial cases, policy rubric, false-positive audit

Run tests answer-blind where possible. A compile pass proves syntax, not semantic correctness. A reward, confidence score, or judge approval does not override a deterministic counterexample.

Use model judges carefully
  • Give the judge the task contract and candidate, not the desired verdict.
  • Require a verdict, confidence, evidence, and concrete counterexample.
  • Use independent judges or adjudication for uncertain and high-impact rows.
  • Separate specification ambiguity from answer failure.
  • Send disagreements and low-confidence rows to review.
  • Never make judge approval the sole hard gate when executable evidence exists.
Show full SKILL.md (484 more words)Show less

8. Evaluate signal density and teaching value

Apply soft scoring only after hard gates pass. Score each survivor for:

  • directness of the desired behavior;
  • correctness coverage, including failure behavior;
  • clarity and absence of contradictory prose;
  • realism of inputs, tools, and state;
  • novelty relative to the retained corpus;
  • rare capability or failure-mode coverage;
  • answer concision and token efficiency;
  • difficulty appropriate to the target model;
  • usefulness for the declared evaluation and deployment distribution.

Do not reward length, stylistic polish, or exotic difficulty by default.

9. Audit corpus composition

Report counts by family, capability, source, difficulty, verification method, token bucket, and revision status. Detect:

  • dominant templates or families;
  • repeated easy examples;
  • rare but critical behaviors with too little coverage;
  • synthetic-source monocultures;
  • answer-length and difficulty skew;
  • conflicting style or tool contracts;
  • distribution mismatch with evaluation and deployment.

Balance by underlying behavior, not merely topic name. Preserve a verified anchor set and add the smallest tranche that tests the next hypothesis.

10. Assign a row disposition

Give every row one terminal or actionable status:

  • train: all hard gates pass;
  • replace-ancestor: verified correction or revision;
  • review: ambiguity, weak evidence, or unresolved overlap;
  • repair-and-reverify: deterministic defect with recoverable source evidence;
  • reject: wrong, leaked, unverifiable, conflicting, or malformed;
  • eval-only: useful diagnostic that must not enter training.

Do not call a dataset train-ready while selected rows still have unresolved hard gates.

11. Validate with training and held-out execution

Treat dataset audit and model validation as separate evidence tiers:

  1. train a bounded canary or short checkpoint sequence;
  2. keep model, optimizer, inference, and evaluation contracts fixed;
  3. evaluate first-attempt success, repair success, and best-of-N separately;
  4. run multiple seeds when sampling is stochastic;
  5. report per-task gains, retained tasks, and regressions;
  6. measure format validity, tokens, latency, and context exhaustion;
  7. promote only on held-out task success, not training loss alone.

Required outputs

Produce these artifacts or their equivalents:

  • immutable source manifest and hashes;
  • row-level audit catalog with categories, tags, evidence, and disposition;
  • duplicate and revision-lineage report;
  • contamination and split audit;
  • tokenizer and length audit;
  • verification receipt with oracle versions and test outcomes;
  • category, tag, source, and token summaries;
  • selected train and validation manifests;
  • rejected and review queues with reasons;
  • train-readiness decision and explicit limitations.

Lead the final report with confirmed counts, unresolved risks, and the next gate. Keep structural validity, executable correctness, and completed training as separate claims.

Non-negotiable failures

Reject or quarantine a row when any of these is true:

  • the target answer is known wrong or contradicted by a valid counterexample;
  • evaluation labels, hidden tests, or private references leak into the input;
  • the row exceeds the actual training context after official tokenization;
  • the answer violates the required action or output contract;
  • source or revision lineage is unknown where contamination matters;
  • an ancestor and correction conflict without an explicit teaching structure;
  • privacy, licensing, secret, or policy constraints prohibit use.

Do not convert absence of a discovered defect into proof of quality.

© tokenbender, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in claude-skills/audit-sft-data-quality of tokenbender/agent-guides.

  • SKILL.md
  • agents/openai.yaml
  • references/iterative-sft-data-design.md

Open the folder on GitHubat commit a74dd9d

Compare with similar skills

Audit Sft Data Quality next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Audit Sft Data Quality compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Audit Sft Data Quality this skilltokenbender/agent-guides367—~2.7kAutomated safety check: PassApache-2.0
Fine-Tuning ExpertJeffallan/claude-skills12k1 repos~1.7kAutomated safety check: PassMIT
Jd Gap Analysisstarkyru/learn-ai105—~1.9kAutomated safety check: PassMIT
ML Training Run VerifierLeeroo-AI/superml195—~3.8kAutomated safety check: PassApache-2.0
LLM JudgeAtmosphere/atmosphere3.8k—~333Automated safety check: PassApache-2.0
Genai Prompt Evaltimothywarner-org/claude-code224—~696Automated safety check: NotesMIT

Similar skills

  • Fine-Tuning Expert

    Jeffallan/claude-skills

    Guides LLM fine-tuning with LoRA and QLoRA through Hugging Face PEFT, from dataset validation and training checks to adapter merging, quantization and deployment.

    12k GitHub starsUsed in 1 repo~1.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Jd Gap Analysis

    starkyru/learn-ai

    Analyze a job description (pasted text OR a URL) and find the AI/ML/GenAI topics it requires that this learn-ai course does NOT yet cover.

    105 GitHub stars~1.9k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed
  • ML Training Run Verifier

    Leeroo-AI/superml

    Checks training code, configs and math against documented framework behavior before an expensive run, citing a knowledge base or official docs for every claim.

    195 GitHub stars~3.8k tokensUpdated 6 mo ago
    AI & LLM EngineeringAuto-check passed
  • LLM Judge

    Atmosphere/atmosphere

    AI quality judge that scores agent responses 0-10 across helpfulness, accuracy, completeness, and clarity.

    3.8k GitHub stars~333 tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Genai Prompt Eval

    timothywarner-org/claude-code

    Score a Python generative-AI app's outputs on groundedness, relevance, coherence, and safety before it ships.

    224 GitHub stars~696 tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check: notes
  • Training Data Curation

    sundial-org/skills

    Guidelines for creating high-quality datasets for LLM post-training (SFT/DPO/RLHF).

    152 GitHub stars~1.4k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed

More from tokenbender/agent-guides

All 11 skills in this repo
  • Capability Horizon Estimator

    tokenbender/agent-guides

    Estimate whether an AI model can complete a task and how long it will take, using METR-style time-horizon modeling.

    367 GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Technical Writing Workflow

    tokenbender/agent-guides

    A skill your agent uses for planning, researching, drafting, revising, or auditing technical write-ups, textbooks, papers, reports, READMEs, research notes, PR narratives, and public technical prose.

    367 GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Epistemic Libido

    tokenbender/agent-guides

    Filter, compare, and rank papers, posts, captures, threads, bookmarks, product claims, or research ideas for high-entropy mechanistic insight and underpriced leverage.

    367 GitHub stars~1.8k tokensUpdated 2 mo ago
    Auto-check passed
  • Manim Math Explainer

    tokenbender/agent-guides

    Trigger when: (1) the user asks for Manim, Manim Community, or ManimCE, (2) code contains from manim import , or (3) the task is to build a mathematical explainer animation.

    367 GitHub stars~799 tokensUpdated 2 mo ago
    Auto-check passed
  • Worklog

    tokenbender/agent-guides

    Issue-led atomic work logging. An agent skill from tokenbender/agent-guides.

    367 GitHub stars~1.6k tokensUpdated 2 mo ago
    Auto-check passed
  • X Thread Reader

    tokenbender/agent-guides

    A skill your agent uses when the user provides an X/Twitter status URL and needs the full thread, context beyond the first post, comparison, summary, intent analysis, title extraction, or reliable…

    367 GitHub stars~506 tokensUpdated 2 mo ago
    Auto-check passed

Questions about Audit Sft Data Quality

What does Audit Sft Data Quality do?

Audit supervised fine-tuning datasets against the behavior and task they are meant to teach. Audit Sft Data Quality is an agent skill from tokenbender/agent-guides. Audit supervised fine-tuning datasets against the behavior and task they are meant to teach.

When should I use Audit Sft Data Quality?

Audit Sft Data Quality fits situations like: inspecting SFT JSONL; instruction-response pairs; agent trajectories; synthetic examples.

How do I install Audit Sft Data Quality in Claude Code?

Run `npx skills add tokenbender/agent-guides --skill audit-sft-data-quality -a claude-code`. Or copy the skill folder (claude-skills/audit-sft-data-quality in tokenbender/agent-guides) into .claude/skills/audit-sft-data-quality in your project. Claude Code loads it when a task matches its description.

How do I install Audit Sft Data Quality in Codex?

Run `npx skills add tokenbender/agent-guides --skill audit-sft-data-quality -a codex`. Or copy the skill folder (claude-skills/audit-sft-data-quality in tokenbender/agent-guides) into .agents/skills/audit-sft-data-quality in your project. Codex loads it when a task matches its description.

Can I use Audit Sft Data Quality in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tokenbender/agent-guides --skill audit-sft-data-quality -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/audit-sft-data-quality, .gemini/skills/audit-sft-data-quality, .github/skills/audit-sft-data-quality and .opencode/skills/audit-sft-data-quality in your project.

What does Audit Sft Data Quality need to run?

SKILL.md names no scripts, command-line tools or credentials: Audit Sft Data Quality is instructions for the agent only.

Does Audit Sft Data Quality access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Audit Sft Data Quality safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Audit Sft Data Quality use?

Audit Sft Data Quality is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Audit Sft Data Quality use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.4k tokens, read only when the agent opens those files.

What are the alternatives to Audit Sft Data Quality?

Skills that share tags, products or a category with Audit Sft Data Quality: Fine-Tuning Expert (Jeffallan/claude-skills, 12k stars), Jd Gap Analysis (starkyru/learn-ai, 105 stars), ML Training Run Verifier (Leeroo-AI/superml, 195 stars) and LLM Judge (Atmosphere/atmosphere, 3.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Audit Sft Data Quality?

tokenbender (a GitHub user) maintains it in tokenbender/agent-guides, which has 367 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on July 23, 2026.

Source: tokenbender/agent-guides on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.