/phi-guard:deidentify-datafrom phi-guard
Use when the user wants to analyse, share or upload a patient data file (CSV, Excel) or asks to de-identify it. Triggers: "ẩn danh", "ẩn danh dữ liệu", "xoá thông tin định danh", "de-identify", "anonymise", "pseudonymise", "dữ liệu người bệnh", "file số liệu bệnh nhân", "bảng thu thập số liệu".
Ships in phi-guard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Patient data stays on this machine. You work only from the de-identified copy.
python "${CLAUDE_PLUGIN_ROOT}/scripts/deidentify.py" <file> --out <project>/04_data
(use python3 if python is missing).patient_key;
visit/admission IDs → E0001…), year-only (date of birth → year), drop (removed; originals kept only in
the key files), keep. Give the reasons for drops: "non-patient name" (doctor, referrer, relative),
"unlisted ID-like header", "name-like values", "identifier-like values".
Also report rows_above_header (title rows skipped) and, for each keep column, suspect_values
(how many cells look like a name, phone, email or ID number; counts only).
If the script exits 2, show its error message; nothing was written. When it could not find the header
row, ask the user which row holds the column names and re-run with --header-row N (1-based).keep column that could still identify someone, first those with
suspect_values above 0 (free-text notes, rare diagnoses with exact dates, small villages).
Re-run after they rename or remove such columns.<stem>.key.csv (and <stem>.key-episodes.csv, if written) is and that key files
must never be uploaded, emailed or committed.<stem>.deid.csv. If asked to use the original, explain why not and offer the
de-identified copy.Limits to state plainly: detection is heuristic; free-text columns and images can still contain identifiers; a person must check before data leaves the hospital.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub drtranquanghung91-vn/clinical-research-orchestra --plugin phi-guard