dataset-curation

dataset-curation is a skill for Claude Code from fcakyon/phd-skills. It costs 60 tokens per session (910 once invoked), scanned A, original, MIT.

A method for examining datasets for bias, uneven class sizes, fairness concerns, label overlap, and gaps in the data’s sources, time periods, or content. A stratified sample is a sample that deliberately preserves chosen group proportions.

In plain words
What is it for?
Use it to analyze class imbalance, plan stratified samples, study dataset bias, check fairness, examine label co-occurrence, and plan data collection or ethical review.
Why use it?
It helps reveal whether a dataset may lead to unfair or unreliable model results and whether labels or data splits contain problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the phd-skills plugin — 12 skills, 6 commands, 2 agents, 4 hooks shipped together

Good fit Use it to analyze class imbalance, plan stratified samples, study dataset bias, check fairness, examine label co-occurrence, and plan data collection or ethical review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fcakyon/phd-skills/dataset-curation
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 fcakyon/phd-skills --skill dataset-curation
Clone the repo
git clone --depth 1 https://github.com/fcakyon/phd-skills

Made for: Claude Code.

Or install phd-skills, the plugin that ships this one along with the rest of its 12 skills, 6 commands, 2 agents, 4 hooks.

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 dataset-curation

README.md
[![agentmods](https://agentmods.dev/badge/skills/fcakyon/phd-skills/dataset-curation/github.svg)](https://agentmods.dev/skills/fcakyon/phd-skills/dataset-curation)
Your own site
<a href="https://agentmods.dev/skills/fcakyon/phd-skills/dataset-curation"><img src="https://agentmods.dev/badge/skills/fcakyon/phd-skills/dataset-curation/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 dataset-curation

Your own site · 80×15
<a href="https://agentmods.dev/skills/fcakyon/phd-skills/dataset-curation"><img src="https://agentmods.dev/badge/skills/fcakyon/phd-skills/dataset-curation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 910 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.00060 $0.00910
Opus 5.5 $0.00024 $0.00364
Sonnet 5.5 $0.00012 $0.00182
Haiku 4.5 $0.00006 $0.00091

Measured 3mo ago against content hash 82122eb0cb5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dataset-curation 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 3mo ago.

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.

plugin/skills/dataset-curation/SKILL.md · 107 lines

How it starts

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

Dataset Curation Methodology

You are helping a researcher curate, analyze, or expand a dataset with attention to bias, fairness, and quality.

Step 1: Distribution Analysis

Before any curation action, understand the current state:

Per-Class Distribution

  • Count instances per class/label/tag
  • Compute imbalance ratio (max_count / min_count)
  • Identify severely underrepresented classes (< 5% of max class)
  • Visualize: bar chart of class frequencies sorted by count

Co-occurrence Analysis

  • Build co-occurrence matrix: which labels appear together
  • Identify spurious correlations (e.g., "violence" always co-occurs with "male")
  • Check for label leakage between splits

Metadata Distribution

  • Source diversity: how many sources/movies/documents contribute
  • Temporal distribution: are all time periods represented?
  • Content diversity: genre, style, domain coverage

Step 2: Bias Assessment

For each identified imbalance or correlation:

  1. Is it real-world reflective? Some imbalances reflect genuine phenomena
  2. Is it harmful? Would a model trained on this data make unfair predictions?
  3. Is it fixable? Can we collect more data, resample, or reweight?

Fairness Dimensions

Check for bias along relevant protected attributes:

  • Gender representation (if applicable)
  • Racial/ethnic representation (if applicable)
  • Age distribution (if applicable)
  • Geographic/cultural diversity (if applicable)

Bias Metrics

  • Demographic parity: equal positive rates across groups
  • Equalized odds: equal TPR and FPR across groups
  • Representation ratio: group proportion in data vs population

Step 3: Stratified Sampling

When creating splits (train/val/test):

  1. Primary stratification: by label/class distribution
  2. Secondary stratification: by source (prevent source leakage across splits)
  3. Validation:
    • Chi-squared test for label distribution similarity across splits
    • No source overlap between splits
    • Rare classes have minimum representation in each split

Read the full file on GitHub · 107 lines

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. 3mo ago First seen · 107 lines · 60 tokens per session scan A 82122eb0cb5c

Subscribe to this mod's changes

dataset-curation is a skill published in the GitHub repository fcakyon/phd-skills (461 stars, last pushed 1mo ago), licensed MIT. It adds 60 tokens to every session and 910 once invoked, about $0.0002 per session on Opus 5.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

dataset-curation compared with skills from other repositories

dataset-curation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dataset-curationfcakyon/phd-skillsSkill4611mo agoMITA60Claude Code
thinking-out-loudShubhamsaboo/awesome-llm-appsSkill147kyesterdayApache-2.0A206Claude Code, Codex
hugging-face-model-trainerpatchy631/ai-engineering-hubSkill42k1mo agoMITA131Claude Code
hugging-face-datasetspatchy631/ai-engineering-hubSkill42k1mo agoMITA49Claude Code
azure-search-documents-dotnetmicrosoft/skillsSkill3.3ktodayMITA102Claude Code
azure-ai-ml-pymicrosoft/skillsSkill3.3ktodayMITA59Claude Code
capacitymicrosoft/skillsSkill3.3ktodayMITA105Claude Code