Individual skill
clean-data
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.
skills/clean-data/SKILL.md
Source commit cc462bc2069064b557c2fea12a1f83ed1fe67f66
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 7, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 374
- Repository last updated
- Nov 2, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- biostatistics Repository topic
- claude-code Repository topic
- claude-skills Repository topic
- clinical-research Repository topic
- diagnostic-accuracy Repository topic
- literature-review Repository topic
- manuscript Repository topic
- medical-ai Repository topic
- medical-research Repository topic
- meta-analysis Repository topic
- data Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 8,063 bytesreferences/cleaning_patterns.mddoc · 11,864 bytesreferences/implausible_value_rules.mddoc · 6,955 bytesreferences/profiling_template.pyruns · 11,413 bytesscripts/check_reverse_coding.pyruns · 7,828 bytesscripts/check_structural_zero.pyruns · 7,821 bytesskill.ymlasset · 1,310 bytestests/fixtures/profile_na_tokens.csvasset · 190 bytestests/fixtures/scale_reverse.csvasset · 133 bytestests/fixtures/smoking.csvasset · 103 bytestests/fixtures/smoking_clean.csvasset · 91 bytestests/fixtures/smoking_sentinel.csvasset · 103 bytestests/test_profiling_template.shruns · 2,373 bytestests/test_reverse_coding.shruns · 2,502 bytestests/test_structural_zero.shruns · 3,629 bytes
Read excerpt
# 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