Skill v1.0.0
currentAutomated scan100/100version: "1.0.0" name: audit description: Checks a project's existing files for sensitive data that is already stored and guides the cleanup. The user runs the scanner and redact themselves; Claude evaluates the masked reports and suggests the commands. Use for "audit", "check the project for sensitive data", "clean up the files", or after a privacy notice has reported blocked data in a file.
Auditing and cleaning up existing files (audit)
Goal: find sensitive data that got into files before the privacy plugin was introduced, and replace it with placeholders.
⛔ Principle: only the user runs the scripts
guard.py and scan.py are run exclusively by the user, manually in the terminal — never by Claude (the CLI refuses LLM sessions, exit 3). Claude's role: suggest commands, evaluate pasted reports, maintain source files after user approval. In addition: do not open the affected files with Read/Grep to "look at" findings — that is exactly how the plaintext would end up in the context. The masked report is sufficient for every decision.
Procedure
- Suggest the scan: Give the user the command and ask for the output:
``bash python3 "${CLAUDE_PLUGIN_ROOT}/scripts/scan.py" --summary-only # overview python3 "${CLAUDE_PLUGIN_ROOT}/scripts/scan.py" <folder> # details if needed `` The output is fully masked and can safely be pasted into the chat.
- Evaluate the report: Summarize findings grouped by type and file —
[BLOCKED] = blocklist, [candidate] = possible extension (skill privacy:extend), [generated] = do not edit; regenerate after the sources have been cleaned.
- Suggest the cleanup: Dry run first, then for real — the user runs both:
``bash python3 "${CLAUDE_PLUGIN_ROOT}/scripts/guard.py" redact --dry-run <paths> python3 "${CLAUDE_PLUGIN_ROOT}/scripts/guard.py" redact --register-fingerprints <paths> ` --register-fingerprints` stores every redacted value as a block fingerprint (hash only) — re-entry protection in any notation.
- Verify success: The user runs the scan again with
--summary-only
(target: 0 BLOCKED outside binary files); have generated outputs regenerated.
- Name the limits (always):
- Binary files (PDFs, images) are not touched — report them and leave
the decision to the user (keep, move, redact externally).
- Session transcripts:
~/.claude/projects/…/*.jsonlcontain every
piece of plaintext ever seen and live outside the project. For these there is ${CLAUDE_PLUGIN_ROOT}/scripts/redact_transcripts.py (dry run is the default; for real with --write) — likewise to be run only by the user.
- Git history: Cleaned values remain readable in old commits.
Name the options (leave as is if the repo stays local; otherwise rebuild the history — destructive, the user does it themselves).