skills/medical/medical-data-tools/SKILL.md
Medical data workflow guide for DICOM metadata inspection and basic de-identification, physiological signal analysis with NeuroKit2, and cohort-table profiling for clinical research datasets. Use when the user asks to inspect imaging metadata, summarize ECG/PPG/EDA/RSP/EMG signals, or profile tabular medical datasets without making patient-specific diagnoses or treatment decisions.
npx skillsauth add drugclaw/drugclaw medical-data-toolsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the user asks to inspect medical imaging files, biosignal recordings, or cohort tables for research, QA, or data-engineering work.
Typical triggers:
which python3 || true
python3 - <<'PY'
mods = ["pandas", "numpy", "pydicom", "neurokit2"]
for name in mods:
try:
__import__(name)
print(f"{name}: ok")
except Exception as exc:
print(f"{name}: missing ({exc})")
PY
If pydicom or neurokit2 is missing, say so immediately instead of pretending the analysis ran.
templates/dicom_inspect.pytemplates/neuro_signal_analyze.pytemplates/clinical_cohort_profile.pyUse templates/dicom_inspect.py for:
Quick start:
python3 templates/dicom_inspect.py imaging/ct_series \
--recursive \
--output medical/dicom_inventory.csv \
--summary medical/dicom_inventory.json
Basic de-identification example:
python3 templates/dicom_inspect.py imaging/mri_case \
--recursive \
--deidentify-dir medical/dicom_deidentified \
--output medical/dicom_case.csv \
--summary medical/dicom_case.json
Deliverables:
State clearly that the built-in de-identification is basic tag scrubbing, not a validated anonymization pipeline.
Use templates/neuro_signal_analyze.py for:
Example:
python3 templates/neuro_signal_analyze.py \
--input signals/ecg.csv \
--signal-column ecg \
--signal-type ecg \
--sampling-rate 250 \
--signals-output medical/ecg_processed.csv \
--output medical/ecg_features.csv \
--summary medical/ecg_features.json
Deliverables:
Do not overstate these outputs. They are research features, signal summaries, and QA signals, not diagnoses.
Use templates/clinical_cohort_profile.py for:
Example:
python3 templates/clinical_cohort_profile.py \
--input cohorts/nsclc_registry.csv \
--patient-id-column patient_id \
--visit-id-column visit_id \
--time-column encounter_time \
--label-column response \
--code-column regimen \
--group-column sex \
--group-column stage \
--output medical/nsclc_profile.csv \
--summary medical/nsclc_profile.json
Deliverables:
Good answers should mention:
For public drug, clinical-trial, regulatory, or literature APIs, activate pharma-db-tools.
For study design, evidence synthesis, and reporting-guideline work, activate clinical-research-tools.
For biology databases, activate bio-db-tools.
For hypothesis tests, regression, or survival analysis on cohort tables, activate stat-modeling-tools or survival-analysis-tools.
For review matrices, citation cleanup, or hypothesis and reproducibility planning, activate literature-review-tools or scientific-workflow-tools.
tools
Survival and time-to-event workflow guide for Kaplan-Meier summaries, log-rank tests, and Cox proportional hazards models with reproducible outputs. Use when the user asks for time-to-event analysis, censored data summaries, hazard ratios, or survival-group comparison for research datasets.
tools
Statistical modeling workflow guide for hypothesis tests, effect-size reporting, statsmodels regression, diagnostics, and structured result export. Use when the user asks for statistical test selection, OLS or logistic regression, coefficient tables, inference, or reproducible statistical summaries for scientific datasets.
tools
Research-method workflow guide for hypothesis framing, peer-review style critique, reproducibility planning, study-design checks, and scientific-writing structure. Use when the user asks for manuscript critique, research-gap framing, hypothesis generation, reproducibility checklists, or study-planning support that should stay on the research side rather than patient-care decisions.
tools
Scientific visualization workflow guide for publication-ready static figures with seaborn or matplotlib and interactive figures with Plotly. Use when the user asks for scientific plots, cohort or assay figures, publication graphics, dashboards, or reusable plotting scripts for research datasets.