audit-dataset

audit-dataset is a skill for Claude Code, Codex from PKU-YuanGroup/OpenAI4S. It costs 40 tokens per session (518 once invoked), scanned A, original, MIT.

A standard-library tool for checking a tabular dataset before analysis or model training. It reports missing values, mixed data types, duplicates, identifier problems, target imbalance, and overlap between data splits.

In plain words
What is it for?
Use it to audit rows and columns, preserve source row IDs, check identifiers and groups, inspect train/validation/test leakage, and save a machine-readable audit report.
Why use it?
It exposes data problems that can make results misleading, such as duplicate records or the same patient appearing in training and test data. The audit also records decisions about accepted exceptions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit rows and columns, preserve source row IDs, check identifiers and groups, inspect train/validation/test leakage, and save a machine-readable audit report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pku-yuangroup/openai4s/audit-dataset
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PKU-YuanGroup/OpenAI4S --skill audit-dataset
Clone the repo
git clone --depth 1 https://github.com/PKU-YuanGroup/OpenAI4S

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit-dataset

README.md
[![agentmods](https://agentmods.dev/badge/skills/pku-yuangroup/openai4s/audit-dataset/github.svg)](https://agentmods.dev/skills/pku-yuangroup/openai4s/audit-dataset)
Your own site
<a href="https://agentmods.dev/skills/pku-yuangroup/openai4s/audit-dataset"><img src="https://agentmods.dev/badge/skills/pku-yuangroup/openai4s/audit-dataset/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for audit-dataset

Your own site · 80×15
<a href="https://agentmods.dev/skills/pku-yuangroup/openai4s/audit-dataset"><img src="https://agentmods.dev/badge/skills/pku-yuangroup/openai4s/audit-dataset.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 518 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00518
Opus 5 $0.00020 $0.00259
Sonnet 5 $0.00008 $0.00104
Haiku 4.5 $0.00004 $0.00052

Measured 8d ago against content hash ae890673ebdc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

audit-dataset scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (kernel.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/audit-dataset/SKILL.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Audit a dataset

Use this skill before statistics, model training, or external publication. The goal is a compact, machine-readable audit plus explicit decisions about every issue that could invalidate downstream results.

Workflow

  1. Load records without silently coercing values. Preserve source row IDs.
  2. Call audit_rows on a representative or complete list of row mappings.
  3. Inspect missingness and observed type mixtures column by column.
  4. Resolve duplicate records and non-unique identifiers deliberately.
  5. If a split column exists, check both stable IDs and grouping entities for train/validation/test overlap.
  6. Record accepted exceptions, then rerun the audit and save the JSON result next to the cleaned dataset.

Import and run

Hyphenated Skill directories are loaded with importlib:

from importlib import import_module

audit_rows = import_module("audit-dataset.kernel").audit_rows
report = audit_rows(
    rows,
    target="label",
    id_columns=("sample_id",),
    group_columns=("patient_id",),
    split_column="split",
)

rows must be a sequence of mappings. The report contains row and column counts, per-column missing/type/unique summaries, duplicate row and ID counts, target frequencies, and split-leakage examples.

Interpretation

  • Mixed numeric/string types usually indicate parsing or sentinel-value bugs.
  • Missingness is a property of both the data and the collection process; do not impute before checking whether it correlates with label, site, or time.
  • Duplicate IDs are not automatically duplicate observations. Decide whether repeated measures are expected and group them during splitting.
  • Any patient, molecule scaffold, time series, or near-duplicate entity shared across evaluation boundaries can inflate performance even when row IDs differ.
  • A clean structural audit does not establish representativeness, label validity, causal identifiability, or ethical suitability.

Required output

Report the checks performed, blocking findings, accepted exceptions, and the exact source artifact/version. Never describe a dataset as clean without naming the leakage keys and missing-value policy that were checked.

Read the full file on GitHub · 68 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed · +5 lines ae890673ebdc
  2. 12d ago First seen · 63 lines · 40 tokens per session scan A 242fef5057e3

Subscribe to this mod's changes

audit-dataset is a skill published in the GitHub repository PKU-YuanGroup/OpenAI4S (403 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 518 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

chroma

Open-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function API. Scales from notebooks to production clusters. Use for semantic search, RAG applications, or document retrieval. Best for local development and open-source…

synthetic-sciences/openscience · 63 tokens

Platos RAG

Ingest documents into the agent's long-term memory, then retrieve chunks semantically at turn-time. Five tools — ingest, retrieve, list, reindex, delete. Chunks are stored on the user's PlatosMemory rows with kind="rag" in metadata, so scope + user isolation comes for free.

winsenlabs/platos · 70 tokens

shap

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing…

synthetic-sciences/openscience · 109 tokens

glycobiology

Glycosylation site prediction and glycobiology analysis. N-glycosylation motif finding, O-glycosylation hotspot prediction, glycan structure resources. Lightweight, pure Python. For protein function queries use uniprot-database; for structure analysis use alphafold-database.

synthetic-sciences/openscience · 67 tokens

cellxgene-census

Query the CELLxGENE Census (61M+ cells) programmatically. Use when you need expression data across tissues, diseases, or cell types from the largest curated single-cell atlas. Best for population-scale queries, reference atlas comparisons. For analyzing your own data use scanpy or scvi-tools.

synthetic-sciences/openscience · 67 tokens

aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard…

synthetic-sciences/openscience · 74 tokens