distil-pii-redactor
Skill159 starsChanged 6 months agoMITView on GitHub
Redact, anonymize, sanitize, or remove PII locally with Distil-PII and llama.cpp; keep personal data and secret values out of model context, logs, and chat.
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Use this skill when the user asks to redact, anonymize, sanitize, or remove PII or personal data from text.
- Distinctive: line 40
Do not quote, summarize, or repeat raw PII in chat.
- Distinctive: line 41
Prefer file-based input and output when the sensitive text is already in a file or attachment.
- Distinctive: line 45
If the user asks for only the LLM or redaction output, do not narrate setup, server status, tool use, or validation details in the final …
- Very specific: line 47
Do not use --show-entities in normal workflows.
- Distinctive: line 48
Do not store raw PII in tracked files, shell history, long-lived notes, or logs.
- Very specific: line 53
Do not convert raw PII into HybridClaw secrets.
- Very specific: line 58
If llama-server is missing, install it with:
- Distinctive: line 69
Start the local server:
- Very specific: line 118
Use --show-entities only while testing the redactor, because it includes the original sensitive values:
- Distinctive: line 126
Do not paste debug JSON back to the user unless they explicitly requested it and understand that it contains original PII.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Distil PII Redactor
Use this skill when the user asks to redact, anonymize, sanitize, or remove PII
or personal data from text. It runs a local Distil-PII GGUF model through
llama-server; raw text must not be sent to external APIs.
Privacy Rules
- Do not quote, summarize, or repeat raw PII in chat.
- Prefer file-based input and output when the sensitive text is already in a file or attachment.
- Return only the redacted text unless the user is explicitly debugging the redactor itself.
- If the user asks for only the LLM or redaction output, do not narrate setup, server status, tool use, or validation details in the final response.
- Do not use
--show-entitiesin normal workflows. It emits original values. - Do not store raw PII in tracked files, shell history, long-lived notes, or logs.
- This skill declares no external credentials. If a downstream tool needs
authentication, use that tool's HybridClaw
secret_refor gateway secret injection and pass only redacted text downstream. - Do not convert raw PII into HybridClaw secrets. Secret refs are for credentials and auth material, not a transport for user data.
Setup
If llama-server is missing, install it with:
hybridclaw skill install distil-pii-redactor llama-serveror install llama.cpp manually. This skill intentionally has no
credentials: frontmatter because local inference does not need API keys; any
future remote-provider variant must declare secret_ref credentials instead of
reading raw environment variables.
Start the local server:
bash skills/distil-pii-redactor/scripts/setup.shThe setup script stores the model under ~/.hybridclaw/distil-pii by default,
downloads the public Distil-PII 1B GGUF model if missing, and starts
llama-server on 127.0.0.1:8712.
Stop the server:
bash skills/distil-pii-redactor/scripts/stop.shRedaction Workflow
For files, keep raw input and redacted output on disk:
python3 skills/distil-pii-redactor/scripts/redact.py \
--input-file sensitive.txt \
--output-file redacted.txtFor stdin:
python3 skills/distil-pii-redactor/scripts/redact.py < sensitive.txtFor short text that is already in the conversation, pass it directly only when there is no lower-exposure path:
python3 skills/distil-pii-redactor/scripts/redact.py "text to redact"The default output is only redacted_text, with sensitive spans replaced by
tokens such as [PERSON], [EMAIL], [PHONE], [ADDRESS], [SSN],
[CARD_LAST4:1234], and [IBAN_LAST4:1234].
The redactor refuses non-loopback --server-url values by default. Use
--unsafe-allow-remote only for an explicitly trusted endpoint after the user
accepts that raw text will leave the local machine.
Debug Output
Use --show-entities only while testing the redactor, because it includes the
original sensitive values:
python3 skills/distil-pii-redactor/scripts/redact.py --show-entities \
--input-file fixture.txtDo not paste debug JSON back to the user unless they explicitly requested it and understand that it contains original PII.
Validation
Run:
python3 skills/skill-creator/scripts/quick_validate.py skills/distil-pii-redactor
python3 skills/distil-pii-redactor/scripts/redact.py --help
bash -n skills/distil-pii-redactor/scripts/setup.sh
bash -n skills/distil-pii-redactor/scripts/stop.shIn this repository91 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/llm-wiki/templates/AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 1passwordSkill
- agentic-tpmSkill
- airtableSkill
- alexaSkill
- apple-calendarSkill
- apple-musicSkill
- apple-passwordsSkill
- bahnSkill
- blinkSkill
- bookingSkill
- brand-voiceSkill
- byd-batterySkill
- channel-catchupSkill
- code-reviewSkill
- code-simplificationSkill
- current-timeSkill
- diagramSkill
- discordSkill
- docxSkill
- download-platform-invoicesSkill
- excalidrawSkill
- fastbillSkill
- fax-sendSkill
- feature-planningSkill
- firecrawlSkill
- froniusSkill
- ga4Skill
- gh-issuesSkill
- github-pr-workflowSkill
- gogSkill
- google-adsSkill
- google-workspaceSkill
- gwsSkill
- handoff-linksSkill
- hermes3000-writingSkill
- hetzner-cloudSkill
- hetzner-dnsSkill
- hetzner-storage-boxSkill
- heygenSkill
- homematicSkill
- hubspotSkill
- hueSkill
- human-distillSkill
- hybridclaw-helpSkill
- image-generationSkill
- inbox-cleanupSkill
- iss-positionSkill
- langfuseSkill
- lexware-officeSkill
- llm-wikiSkill
- mailchimpSkill
- manim-videoSkill
- microsoft-365Skill
- miroSkill
- mittwaldSkill
- money-savingSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

