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.
npx skills add Aperivue/medsci-skills --skill clean-datagit clone --depth 1 https://github.com/Aperivue/medsci-skillsWrote 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.
[](https://agentmods.dev/skills/aperivue/medsci-skills/clean-data)<a href="https://agentmods.dev/skills/aperivue/medsci-skills/clean-data"><img src="https://agentmods.dev/badge/skills/aperivue/medsci-skills/clean-data/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.
<a href="https://agentmods.dev/skills/aperivue/medsci-skills/clean-data"><img src="https://agentmods.dev/badge/skills/aperivue/medsci-skills/clean-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.02571 |
| Opus 5.5 | $0.00022 | $0.01028 |
| Sonnet 5.5 | $0.00011 | $0.00514 |
| Haiku 4.5 | $0.00005 | $0.00257 |
Grade A, and why
clean-data 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.
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.
How it starts
The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Data Profiling and Cleaning Skill
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.
Three-Stage Workflow
Stage 1: Profiling
Input: CSV/Excel file path OR data dictionary/codebook
- Adapt
${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. - If the user provides a codebook, cross-reference variable names, expected types, and expected
ranges. Never guess a column name or coding: when a mapping is uncertain, write
[VERIFY: variable_name]and ask the user to confirm it against the data dictionary. - Present the summary (see Output Format). Every count and statistic comes from the executed script's output.
- Earlier delivery of the same dataset. If the project already holds an earlier extract from the same study and source (even if its columns differ), do not assume the new file replaces it: a replacement, an increment and a mix of corrections and new rows look the same by name and date, and reading the type wrongly changes the denominator. Ask the user to confirm with the data provider which it is, which columns identify a row, and whether both files use the same ID system, and how corrections are delivered. Report counts only (no ID lists) of rows and patients in the old file only, the new file only, and both, and only once the key correspondence is confirmed. The choice (replace, key-based update-and-add, append, or separate cohort) is the user's, after the provider has confirmed those points; do not pick one.
What ships with it
14 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.
- references/cleaning_patterns.md 12 KB
- references/implausible_value_rules.md 8.6 KB
- references/profiling_template.py 11 KB runs code
- scripts/check_reverse_coding.py 7.6 KB runs code
- scripts/check_structural_zero.py 7.6 KB runs code
- skill.yml 1.3 KB
- tests/fixtures/profile_na_tokens.csv 190 B
- tests/fixtures/scale_reverse.csv 133 B
- tests/fixtures/smoking_clean.csv 91 B
- tests/fixtures/smoking_sentinel.csv 103 B
- tests/fixtures/smoking.csv 103 B
- tests/test_profiling_template.sh 2.3 KB runs code
- tests/test_reverse_coding.sh 2.4 KB runs code
- tests/test_structural_zero.sh 3.5 KB runs code
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.
- 8d ago Changed · +33 lines e52c40f1a2ae
- 2mo ago Changed · -43 lines · -10 tokens per session 6acb2b638a08
- 3mo ago First seen · 186 lines · 64 tokens per session scan A a860659a2043
clean-data is a skill published in the GitHub repository Aperivue/medsci-skills (406 stars, last pushed 4d ago), licensed MIT. It adds 54 tokens to every session and 2,571 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.
clean-data compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| clean-dataAperivue/medsci-skills | Skill | 406 | 4d ago | MIT | A | 54 | Claude Code |
| genomic-intelligenceK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 151 | Claude Code, Codex |
| torch-geometricK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 71 | Claude Code, Codex |
| bulk-rnaseqK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 111 | Claude Code, Codex |
| waypoint-bioK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 129 | Claude Code, Codex |
| aeonK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 74 | Claude Code |
| bidsK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 84 | Claude Code, Codex |