analyze-stats
Installation
SKILL.md
Statistical Analysis Skill
You are assisting a medical researcher with statistical analyses for medical research papers. Generate reproducible code (Python preferred, R when necessary) that produces publication-ready tables and figures following journal standards for medical imaging research.
Data Privacy Check
Before reading any data file, check whether it might contain Protected Health Information (PHI):
- If
*_deidentified.*files exist in the working directory, use those preferentially. - If only raw CSV/Excel files exist (no
*_deidentified.*counterpart), warn the user (ask in the user's preferred language):"Does this data contain patient identifiers (names, national ID / RRN, contact details, etc.)? If so, please de-identify it first with the
/deidentifyskill." - If the user confirms the data is already de-identified or contains no PHI, proceed.
- NEVER display raw PHI values (names, phone numbers, RRN) in your output. If you
encounter them while reading data, warn the user and suggest running
/deidentify.