redact-before-sharing

redact-before-sharing is a skill for Claude Code, Codex from dambuchs/redact-pdf-mcp. It costs 85 tokens per session (501 once invoked), scanned A, original, MIT.

A tool that permanently blacks out personal information in PDFs, images, and screenshots. Redaction means hiding data so it cannot be recovered from the shared file.

In plain words
What is it for?
Preparing documents for sharing, filing, publication, or freedom-of-information and data-protection requests.
Why use it?
It prevents names, contact details, bank information, and identification numbers from being exposed when a document leaves your organisation.

Skill for Claude CodeCodex

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

Good fit Preparing documents for sharing, filing, publication, or freedom-of-information and data-protection requests.

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

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 redact-before-sharing

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dambuchs/redact-pdf-mcp/redact-before-sharing"><img src="https://agentmods.dev/badge/skills/dambuchs/redact-pdf-mcp/redact-before-sharing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 501 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.00085 $0.00501
Opus 5.5 $0.00034 $0.00200
Sonnet 5.5 $0.00017 $0.00100
Haiku 4.5 $0.00009 $0.00050

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

Security

Grade A, and why

redact-before-sharing 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 18d 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.

openai-plugin/skills/redact-before-sharing/SKILL.md · 31 lines

What it actually says

Redact or anonymize a document

1. Get the document

Call create_upload_link and give the user the upload_url as a link. They choose the file on that page and it goes straight to Redact PDF AI, not through this conversation. Do not read an attached copy of the document before redacting it.

2. Run it

When the user says the file is uploaded, call redact_pdf_and_wait with the upload_id.

  • To black out personal data, leave mode at its default.
  • To keep the document readable, pass mode: "pseudonymize": every person, company and address becomes a consistent tag such as [Person 1], and the result includes document_text, the document with tags in place of names.
  • pii_excluded_terms keeps words visible, such as the employer's name on a payslip. pii_included_terms always removes extra words, such as a reference number.

If the answer is waiting_for_upload, the user has not finished: ask them, then call it again.

3. Report back

Give the user the download_url as a link and the page count. The removed text is deleted from the file, not hidden under a box. Automatic detection can miss something, so for a filing or anything public the user should check the redacted PDF before sending it.

In pseudonymize mode, work only from document_text and keep every tag exactly as written. When the user wants the real names back in what you wrote, call restore_names with the document_id, the text_version and your text, and give them the link it returns. Never open the correspondence link yourself: it contains the real names.

4. Delete on request

When the user asks to delete a document, confirm first, then call delete_job with the job_id. The files and links stop working at once.

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. 18d ago Changed · +2 lines · -9 tokens per session b1bfbc56dd1d
  2. 1mo ago First seen · 29 lines · 94 tokens per session scan A c5296062f594

Subscribe to this mod's changes

redact-before-sharing is a skill published in the GitHub repository dambuchs/redact-pdf-mcp (1 stars, last pushed 12d ago), licensed MIT. It adds 85 tokens to every session and 501 once invoked, about $0.0003 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-10-19.

Related

redact-before-sharing compared with skills from other repositories

redact-before-sharing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
redact-before-sharingdambuchs/redact-pdf-mcpSkill112d agoMITA85Claude Code, Codex
pdf-processingPrefectHQ/fastmcpSkill29ktodayApache-2.0A14Claude Code, Codex
kernelcad-drawingsw1ne/kernelCAD-webSkill37todayMITA69Claude Code, Codex
pubmed-fulltext-accessu9401066/pubmed-search-mcpSkill302d agoApache-2.0A72Claude Code
pdf-asset-extractoru9401066/pubmed-search-mcpSkill302d agoApache-2.0A84Claude Code
cvxhrtips/cvxSkill84d agoApache-2.0A87Claude Code, Codex
agoragentic-anydoc-document-evidencerhein1/agoragentic-integrationsSkill411mo agoMITA82Cursor