Phi cleaner

From drpedapati/sciclaw · View interactive version

Phi cleaner is an AI agent skill from the GitHub repository drpedapati/sciclaw. De-identify clinical text for drafts, notes, and manuscript excerpts using phi-cleaner before sharing with external tools or collaborators. Use when: (1) Removing patient names/dates/identifiers from free-text notes, (2) Producing sanitized excerpts for LLM prompts, (3) Running a PHI detection pass

How to use this skill

Skill file

phi-cleaner

phi-cleaner is an optional companion CLI for text de-identification.

Use it before sending potentially sensitive clinical text into downstream tooling.

Install

brew tap drpedapati/tools
brew install drpedapati/tools/phi-cleaner

Verify:

phi-clean --version

Common commands

# Clean direct text input
phi-clean "Patient John Smith was seen on 03/15/2024."

# Detect-only mode
phi-clean --detect "Dr. Chen at Mayo Clinic"

# File input/output
phi-clean -f note.txt -o note.cleaned.txt

# Show available models
phi-clean --models

Workflow guidance

  1. Run phi-clean before sharing clinical notes in chat workflows.
  2. Keep original and de-identified files separate.
  3. Validate cleaned output for context loss before publication.

Caveat

This tool helps reduce accidental PHI leakage, but it is not a legal/compliance determination on its own.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.