pii-redactor

pii-redactor is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 125 tokens per session (2,389 once invoked), scanned A, original, Apache-2.0.

A local scanner that finds personally identifiable information (PII), such as phone numbers, email addresses, names, and identity numbers, in text and structured files. It can mask, hash, or replace detected data.

In plain words
What is it for?
Use it on logs, chat transcripts, tickets, CSV files, JSON files, or directories before sharing or logging them. It reports matches first and can write a redacted copy.
Why use it?
Logs and exported records can expose private information when shared or stored. Scanning and producing a separate cleaned file reduces that exposure while leaving the original untouched.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it on logs, chat transcripts, tickets, CSV files, JSON files, or directories before sharing or logging them. It reports matches first and can write a redacted copy.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/pii-redactor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Morningstar202604/awesome-skillkit --skill pii-redactor
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pii-redactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/pii-redactor/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/pii-redactor)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/pii-redactor"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/pii-redactor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pii-redactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/pii-redactor"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/pii-redactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,389 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00125 $0.02389
Opus 5.5 $0.00050 $0.00956
Sonnet 5.5 $0.00025 $0.00478
Haiku 4.5 $0.00013 $0.00239

Measured 2mo ago against content hash 71c3d20ca906, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pii-redactor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

site/skills/programming/security/pii-redactor/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PII Redactor

PII detection and redaction for logs, chat transcripts, tickets, and structured data (CSV/JSON). Covers 8 PII classes: ID card / phone number / email / bank card / name / address / license plate / unified social credit code. Core principle: default to a read-only dry-run scan; redaction produces a new file; the source file is never rewritten.

Distinct from secrets-vault-manager: that one manages secret infrastructure. This skill manages redaction of personal data in "already-visible text" — it does not touch keys, does no encryption, and does not go online.

Input Checklist

Input Required Description
Target file / directory Yes The path to scan; a directory is scanned recursively for text files
PII classes No All 8 by default; a subset can be specified (e.g. only redact id_card + phone)
Redaction strategy No mask (keep first/last 1-4 chars) / hash (first 8 chars of SHA-256) / replace (substitute a placeholder), default mask
Output file No Path for the redacted result; defaults to <original>.redacted
Dry run No --dry-run (on by default): only report hits, write no file

(Missing-input prompt template: "Please provide: (1) the file or directory path to scan; (2) the PII classes to redact (default all 8); (3) the redaction strategy (mask / hash / replace, default mask). Everything else uses defaults: dry-run on, output `.redacted".)

Pre-flight Checks

python3 -c "import sys; sys.exit(0 if sys.version_info>=(3,8) else 1)" \
  && echo "python>=3.8 OK" || echo "Python 3.8+ required"

Expected: prints python>=3.8 OK. On failure → prompt to upgrade Python or switch to a compatible environment and stop. No network, no environment-variable credentials needed (red line: this skill does not read any secrets).

Workflow

Step 1: Determine the input shape

Decide whether it is a single file or a directory. Expected: get a file list (for a directory, recurse over *.log *.txt *.json *.csv *.md, skipping binary and hidden files). On failure: the path does not exist → report PATH NOT FOUND: <path> and stop.

Read the full file on GitHub · 128 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +1 lines · -10 tokens per session 71c3d20ca906
  2. 2mo ago First seen · 127 lines · 135 tokens per session scan A 40d518db6741

Subscribe to this mod's changes

pii-redactor is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 125 tokens to every session and 2,389 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

pii-redactor compared with skills from other repositories

pii-redactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pii-redactorMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A125Claude Code, Codex
filing-reviewTauricResearch/TradingAgentsSkill124k5d agoApache-2.0A62Claude Code, Codex
reporting-adverse-eventsmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A195Claude Code
auditing-deidentification-runsmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A155Claude Code
pseudonymizing-for-gdprmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A158Claude Code
validating-us-coremaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A134Claude Code
fda-databasesynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A43Claude Code, Codex