Dataset Quality Audit
zebbern/claude-code-guide
Run comprehensive quality checks on tabular data (CSV/Excel/TSV/JSON), detecting missing values, duplicates, outliers, format issues, and type inconsistencies to produce an overall score, grade, and…
A skill your agent uses when a clinical CSV/Excel dataset needs profiling and cleaning before analysis (missing values, outliers, duplicates, type mismatches).
$ npx skills add Aperivue/medsci-skills --skill clean-data -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Aperivue/medsci-skills clean-data --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/clean-data .claude/skills/clean-data && rm -rf skills-srcUse ~/.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/
Install the "clean-data" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/clean-data into .claude/skills/clean-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-data", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Aperivue/medsci-skills/tree/main/skills/clean-dataType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Aperivue/medsci-skills --skill clean-data -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Aperivue/medsci-skills clean-data --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/clean-data .agents/skills/clean-data && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "clean-data" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/clean-data into .agents/skills/clean-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-data", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Aperivue/medsci-skills --skill clean-data -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Aperivue/medsci-skills clean-data --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/clean-data .cursor/skills/clean-data && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "clean-data" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/clean-data into .cursor/skills/clean-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-data", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Aperivue/medsci-skills.git --path skills/clean-data--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Aperivue/medsci-skills --skill clean-data -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Aperivue/medsci-skills clean-data --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/clean-data .gemini/skills/clean-data && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "clean-data" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/clean-data into .gemini/skills/clean-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-data", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Aperivue/medsci-skills clean-dataInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Aperivue/medsci-skills --skill clean-data -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/clean-data .github/skills/clean-data && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "clean-data" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/clean-data into .github/skills/clean-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-data", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Aperivue/medsci-skills --skill clean-data -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Aperivue/medsci-skills clean-data --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/clean-data .opencode/skills/clean-data && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "clean-data" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/clean-data into .opencode/skills/clean-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-data", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
clean-dataA skill your agent uses when a clinical CSV/Excel dataset needs profiling and cleaning before analysis (missing values, outliers, duplicates, type mismatches).
Clean Data is an agent skill from Aperivue/medsci-skills. Use when a clinical CSV/Excel dataset needs profiling and cleaning before analysis (missing values, outliers, duplicates, type mismatches). Profiles, flags and generates cleaning code in three stages, each gated on the researcher's approval. Never auto-cleans.
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 18 other files, including scripts and reference files (for example `references/cleaning_patterns.md`, `references/implausible_value_rules.md` and `references/profiling_template.py`).
It sits in Data & Analytics, covering Data cleaning and Excel spreadsheets. It works with Microsoft Excel. The repository describes itself as: Agent Skills for medical research — literature search, reporting-guideline & citation checks, statistics, publication figures, submission. Works with Claude Code, Codex, Cursor &… The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 3b14ae2. It shows what the files ask for, not the result of running them.
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.
Ships 2 files in scripts/ (Python and Shell), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Clean Data loads about 2k tokens when it runs, and up to ~9.6k if it reads all its reference files. Until then it costs about 68 tokens; SKILL.md has 883 words of instructions outside code blocks.
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.
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); the scripts in this folder are not scanned.
The full file from Aperivue/medsci-skills at commit 3b14ae2, republished under its MIT licence (© Aperivue). 883 words, ~2,012 tokens.
.claude/skills/clean-data/SKILL.md (or your agent's skills folder). This skill also uses 14 other files; get the full folder from GitHub.Profile, flag, and generate cleaning code for a clinical dataset in three stages, each ending at a user-approval gate. You generate code and reports; you do NOT auto-clean data. Every cleaning decision needs the researcher's explicit confirmation, because clinical cleaning calls need domain knowledge.
PHI first. If the dataset contains PHI or PII, run /deidentify before proceeding, and use
*_deidentified.* files when they exist in the working directory. Otherwise work from the data
dictionary / codebook alone, or in a local-only environment with no network access. The skill writes
code that runs on the data; it does not need to see the raw rows to write it.
Input: CSV/Excel file path OR data dictionary/codebook
${CLAUDE_SKILL_DIR}/references/profiling_template.py (pandas) to the dataset. It reports:
variable and row counts, data types; missing count and percentage per variable; unique counts for
categorical variables; min/max/mean/median/SD for numeric variables; histograms and bar charts.[VERIFY: variable_name] and ask the user to confirm it against the data dictionary.Gate: The user reviews the profile. Ask whether to proceed to Stage 2 (Flagging) and whether any variables should be excluded or focused on.
Read ${CLAUDE_SKILL_DIR}/references/cleaning_patterns.md for missing-data mechanisms, outlier
decision rules, duplicate detection, date handling, and clinical pitfalls (inequality-prefixed lab
values, mixed units, sentinel values). Flag issues in these categories:
references/implausible_value_rules.md §1. An
implausible value is a likely data-entry/unit/sentinel error (correct or set missing); a
statistical outlier (#2) is biologically possible (keep + sensitivity analysis). Check units before
calling a bound violation an error. Never auto-fix.
5b. Cross-field inconsistencies: logical contradictions per references/implausible_value_rules.md
§2 — temporal ordering (birth ≤ event ≤ death, admission ≤ discharge), derived-vs-source (recomputed
BMI/age; subset ≤ superset; total = sum of parts), sex-/state-specific fields, and min ≤ max /
diastolic < systolic pairs. Name the rule that fired; a hard contradiction is High severity.smoking_status == 'never' implies pack_years == 0; alcohol_use == 'never' implies
grams_per_week == 0), flag records that store the implied zero as NULL. This is a contradiction,
not a missing-data pattern: complete-case models silently drop those never-smokers and MICE imputes
them a non-zero dose, corrupting the exposure contrast. Suggested action: "Set dose = 0 where
category == reference level; impute only the residual missingness among the exposed." Detected by
scripts/check_structural_zero.py given the category↔dose mapping; pairs with /analyze-stats
"Covariate Pitfalls: Structural Zeros & Dose/Duration Variables".(min+max) - x before the scale total or
Cronbach's alpha is computed. An un-recoded reverse item correlates negatively with the rest and
collapses alpha, often to a negative value. A negative alpha is a reverse-coding bug, not
"multidimensional structure". Suggested action: "Recode reverse-worded items, then recompute
reliability." Detected by scripts/check_reverse_coding.py (negative item-rest correlation and
negative raw alpha, given the scale item columns); the recode itself is applied downstream by
/analyze-stats likert_summary.py --reverse-items.Present the flag report as a table:
| Variable | Issue Type | Count | Severity | Suggested Action |
|---|---|---|---|---|
| age | Outlier (IQR) | 3 | Medium | Review: values 150, 200, -5 |
| pack_years | Categorical-implied zero | 12421 | High | Set 0 where smoking_status=='never' (structural zero, not missing) |
Severity levels:
Gate: The user marks each row (A) Approve the suggested action, (R) Reject / keep as-is, or (M) Modify the action. Only approved actions generate cleaning code.
For ONLY user-approved actions, generate Python (or R if requested) code:
All generated code MUST include:
np.random.seed(42) and random.seed(42) where applicablecleaning_log.csvEnd the generated script with this notice:
"This code implements ONLY the cleaning rules you approved. Review the cleaning_log.csv output to verify all changes before proceeding to analysis."
Out of scope: free-text extraction from clinical notes, and image data or DICOM metadata. After
cleaning, hand off to /analyze-stats. Take any citation from /search-lit, never from memory.
Structure all reports using this template:
## Data Profiling Report
### Dataset Overview
- Rows: [N]
- Columns: [N]
- File size: [size]
- Date range: [if applicable]
### Variable Summary
| Variable | Type | Missing N (%) | Unique | Min | Max | Mean | SD |
|----------|------|---------------|--------|-----|-----|------|-----|
| ... | ... | ... | ... | ... | ... | ... | ... |
### Flags
| Variable | Issue | Count | Severity | Suggested Action |
|----------|-------|-------|----------|-----------------|
| ... | ... | ... | ... | ... |
### Cleaning Code
[Python/R script -- only for approved actions]
### Cleaning Log
[What was changed, how many rows affected, before/after counts]© Aperivue, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 14 other files (scripts, references) in skills/clean-data of Aperivue/medsci-skills.
Open the folder on GitHubat commit 3b14ae2
Clean Data 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Clean Data this skillAperivue/medsci-skills | 329 | — | ~2k | Automated safety check: Pass | MIT | |
| Dataset Quality Auditzebbern/claude-code-guide | 4.6k | — | ~996 | Automated safety check: Pass | MIT | |
| Clean Dataexplorium-ai/gtm-skills | 160 | — | ~2k | Automated safety check: Pass | MIT | |
| Outlier Detection And Quality AssessmentMichaelYang-lyx/AIDABench | 111 | 1 repos | ~1k | Automated safety check: Pass | None | |
| Visual Skillsnpc-live/clawfirm | 156 | — | ~7.4k | Automated safety check: Pass | None | |
| Invalid Data CleaningMichaelYang-lyx/AIDABench | 111 | 1 repos | ~410 | Automated safety check: Pass | None |
zebbern/claude-code-guide
Run comprehensive quality checks on tabular data (CSV/Excel/TSV/JSON), detecting missing values, duplicates, outliers, format issues, and type inconsistencies to produce an overall score, grade, and…
explorium-ai/gtm-skills
Data cleaning, entity matching, and deduplication skill for Claude Code and Codex: triage, standardize, and validate a CSV, Excel, or JSON list of B2B companies or contacts before enrichment.
MichaelYang-lyx/AIDABench
执行全面的异常值检测与数据质量评估,利用 IQR 方法识别异常值并结合偏度、峰度分析数据分布特征,适用于非正态分布数据的预处理阶段。
npc-live/clawfirm
A skill your agent uses whenever the user provides data (CSV, JSON, table, pasted numbers, or any structured dataset) and expects a visual output — even if they don't say 'chart' or 'visualize'.
MichaelYang-lyx/AIDABench
用于大规模Excel数据的预处理,通过统计总行数判断是否转换为Parquet格式以提升读写效率,并使用正则表达式清洗指定文本列(如仅保留中文字符),最后导出清洗后的文件并提供下载链接。
ericrisco/rsc-harness
A skill your agent uses when a raw table is too dirty to trust — nulls, sentinels, duplicate rows, category sprawl, mixed types, bad dates — and you need a re-runnable clean() plus a schema gate…
Aperivue/medsci-skills
A skill your agent uses when validating or evaluating a trained medical-imaging model.
Aperivue/medsci-skills
A skill your agent uses when turning a folder of research PDFs into Obsidian notes, even if Obsidian is not named.
Aperivue/medsci-skills
A skill your agent uses when building or auditing a radiomics or tabular clinical-ML prediction model with a classical learner (LASSO, SVM, random forest, XGBoost and similar).
Aperivue/medsci-skills
A skill your agent uses when checking a radiology or medical AI study design before drafting or submission.
Aperivue/medsci-skills
A skill your agent uses when each author needs an ICMJE Conflict of Interest disclosure form (coidisclosure.docx) for submission.
Aperivue/medsci-skills
A skill your agent uses when an institutional Word form (.doc/.docx IRB protocol, ethics application, grant template) must be filled without breaking its styles, tables, fonts or page layout.
Works with
A skill your agent uses when a clinical CSV/Excel dataset needs profiling and cleaning before analysis (missing values, outliers, duplicates, type mismatches). Clean Data is an agent skill from Aperivue/medsci-skills. Use when a clinical CSV/Excel dataset needs profiling and cleaning before analysis (missing values, outliers, duplicates, type mismatches).
Clean Data fits situations like: A clinical CSV/Excel dataset needs profiling and cleaning before analysis (missing values; type mismatches).
Run `npx skills add Aperivue/medsci-skills --skill clean-data -a claude-code`. Or copy the skill folder (skills/clean-data in Aperivue/medsci-skills) into .claude/skills/clean-data in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Aperivue/medsci-skills --skill clean-data -a codex`. Or copy the skill folder (skills/clean-data in Aperivue/medsci-skills) into .agents/skills/clean-data in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Aperivue/medsci-skills --skill clean-data -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/clean-data, .gemini/skills/clean-data, .github/skills/clean-data and .opencode/skills/clean-data in your project.
Going by SKILL.md and its folder, Clean Data needs Python and a shell for the scripts in its folder. Our summary lists: Python 3; A Bash shell.
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.
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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Clean Data is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 8k 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 7.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Clean Data: Dataset Quality Audit (zebbern/claude-code-guide, 4.6k stars), Clean Data (explorium-ai/gtm-skills, 160 stars), Outlier Detection And Quality Assessment (MichaelYang-lyx/AIDABench, 111 stars) and Visual Skills (npc-live/clawfirm, 156 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Aperivue (a GitHub organization) maintains it in Aperivue/medsci-skills, which has 329 GitHub stars. The repository holds 54 skills in this directory. The repository was last updated on October 5, 2026.
Source: Aperivue/medsci-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.