pii-pdf

pii-pdf is a skill for Codex from glebis/claude-skills. It costs 65 tokens per session (1,645 once invoked), scanned B, original, MIT.

A local command-line workflow for finding and replacing personal information in PDF files or folders. It covers names, addresses, contact details, bank accounts, and IBANs, and supports review based on their positions in the document.

In plain words
What is it for?
Use it to anonymise PDFs, review detected personal information by page coordinates, or set up the required local OCR and language-processing tools.
Why use it?
It reduces the manual work of preparing PDFs for sharing while keeping the original files. Its detection is experimental, so a completed run does not prove that a document is fully anonymous.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to anonymise PDFs, review detected personal information by page coordinates, or set up the required local OCR and language-processing tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/glebis/claude-skills/pii-pdf
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 glebis/claude-skills --skill pii-pdf
Clone the repo
git clone --depth 1 https://github.com/glebis/claude-skills

Made for: 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-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/glebis/claude-skills/pii-pdf/github.svg)](https://agentmods.dev/skills/glebis/claude-skills/pii-pdf)
Your own site
<a href="https://agentmods.dev/skills/glebis/claude-skills/pii-pdf"><img src="https://agentmods.dev/badge/skills/glebis/claude-skills/pii-pdf/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-pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/glebis/claude-skills/pii-pdf"><img src="https://agentmods.dev/badge/skills/glebis/claude-skills/pii-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,645 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00065 $0.01645
Opus 5.5 $0.00026 $0.00658
Sonnet 5.5 $0.00013 $0.00329
Haiku 4.5 $0.00006 $0.00164

Measured 22d ago against content hash 56aca6e5bf52, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

pii-pdf scanned grade B with 1 finding 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 22d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (assets/cli/src/pii_pdf/__init__.py, assets/cli/src/pii_pdf/__main__.py, assets/cli/src/pii_pdf/cli.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Explain the actual installation plan before applying it. An explicit request to set up this engine authorizes its documented missing dependencies; do not ask again for the same installation. Downloads happen during setup
pii-pdf/SKILL.md · 83 lines

How it starts

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

PDF PII workflow

Use the bundled, versioned pii-pdf CLI. It combines native character boxes, local Tesseract OCR, spaCy PERSON and format rules. Preserve the user's selected scope and retain originals. The detector is experimental: a completed command is not a validated anonymous document.

SKILL_DIR below means the directory containing this file. Resolve it from the actual loaded skill path; do not assume the current working directory is the skill directory.

Setup mode

When asked to install, configure or repair this engine:

python3 "$SKILL_DIR/scripts/setup.py" --plan
python3 "$SKILL_DIR/scripts/setup.py" --apply

Explain the actual installation plan before applying it. An explicit request to set up this engine authorizes its documented missing dependencies; do not ask again for the same installation. Downloads happen during setup, not document processing. The installer checks the bundled source hashes, uses an isolated Python environment, installs its Python dependencies and the pinned English model, and installs a missing Tesseract through an existing supported package manager. It does not bootstrap Homebrew, run remote shell installers, or invoke sudo automatically.

Default environment: ~/.local/share/pii-pdf/venv. --venv PATH selects another environment. --system skip skips installing system packages; if Tesseract is still missing the result remains incomplete. Report a missing package manager or privilege requirement with the exact missing step; do not invent success or silently substitute cloud OCR. Use setup.py --help for supported switches.

For installation through npx and runtime setup, read references/installation.md. The standalone toolkit is maintained at https://github.com/glebis/pii-pdf; this skill includes a versioned source snapshot for reproducible setup.

Doctor mode

When asked to diagnose, check, test or troubleshoot this engine (/pii-pdf doctor), or when a document run fails with exit 2/3:

Read the full file on GitHub · 83 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. 22d ago First seen · 83 lines · 65 tokens per session scan B 56aca6e5bf52

Subscribe to this mod's changes

pii-pdf is a skill published in the GitHub repository glebis/claude-skills (417 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 1,645 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-08.

Related

pii-pdf compared with skills from other repositories

pii-pdf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pii-pdfglebis/claude-skillsSkill417todayMITB65Codex
LaTeX工具XiaoMaColtAI/math-modeling-skillSkill2.0ktodaynoneA46Claude Code, Codex
pdfXiaoMaColtAI/math-modeling-skillSkill2.0ktodaynoneA92Claude Code, Codex
autodoc-next-prospectus-auditPaodingAI/skillsSkill171mo agononeA39Codex
ChatDOC Studio--KnowledgeMatePaodingAI/skillsSkill171mo agononeA92Codex
nanodoc-parsePaodingAI/skillsSkill171mo agononeA108Codex
PDFlux-PDF2MarkdownPaodingAI/skillsSkill171mo agononeA78Codex