Processes sensitive local documents through PII Guard and a local Ollama model into a reversible redacted copy without allowing the non-open-source main agent to read the original, restoration map, or restored contents. Use whenever the user asks to de-identify or redact a private file, create a reversible sanitized…
A local document-scrubbing tool that replaces personal details with tags before text is sent to a language model, then restores the real details in the returned answer.
Use when writing or refactoring PIIGhost Python code (src/ or tests/). Captures the project's code conventions and idioms BEYOND what PEP8 and ruff enforce: preferred expression forms, dispatch patterns, naming, and structural preferences the maintainer has called out during review. ruff/PEP8 handle formatting; this…
Use when writing or reviewing PIIGhost user-facing prose, the intro/pitch of README.md or README.fr.md, or any docs/en or docs/fr page. Triggers on choosing anonymisation vs dé-identification wording, prose that narrates instead of explaining, semicolons or em dashes in French, PIIGhost written in bold instead of code…
Pseudonymises medical and clinical documents by replacing patient identifiers with labelled tokens (e.g. [PATIENTNAME1], [NHSNUMBER1], [DATEOFBIRTH1]) so the text can be safely processed by AI or shared, with clinical meaning intact. Combines a deterministic pattern layer (NHS numbers with Modulus-11 validation, UK…