redact-output

redact-output is a skill for Claude Code from TimSimpsonJr/magpie. It costs 150 tokens per session (1,505 once invoked), scanned A, original, MIT.

A tool that removes or masks personal information from documents meant for publication while keeping the complete version in a local file.

In plain words
What is it for?
Use it before publishing investigation findings, vault notes, or other artifacts containing names, phone numbers, emails, dates of birth, or identification numbers.
Why use it?
It prevents uninvolved people's names and sensitive details from appearing in shared findings or notes. Officials and designated involved people can remain named.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the magpie plugin — 13 skills, 2 agents, 1 MCP server shipped together

Good fit Use it before publishing investigation findings, vault notes, or other artifacts containing names, phone numbers, emails, dates of birth, or identification numbers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timsimpsonjr/magpie/redact-output
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 TimSimpsonJr/magpie --skill redact-output
Clone the repo
git clone --depth 1 https://github.com/TimSimpsonJr/magpie

Made for: Claude Code.

Or install magpie, the plugin that ships this one along with the rest of its 13 skills, 2 agents, 1 MCP server.

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-output

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/timsimpsonjr/magpie/redact-output"><img src="https://agentmods.dev/badge/skills/timsimpsonjr/magpie/redact-output.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,505 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.00150 $0.01505
Opus 5 $0.00075 $0.00753
Sonnet 5 $0.00030 $0.00301
Haiku 4.5 $0.00015 $0.00151

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

Security

Grade A, and why

redact-output 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 10d 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.

skills/redact-output/SKILL.md · 95 lines

How it starts

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

redact-output

Redact UNINVOLVED third-party PII for PUBLISHED artifacts, while the FULL un-redacted exhibit is written to a LOCAL non-vault path. This is the OUTPUT side of Phase 7; it consumes Phase-5 pii_sweep's opt-in local_texts.

The redaction POLICY (Tim's call -- INVOLVED vs UNINVOLVED)

The line is involved vs uninvolved, NOT official vs non-official:

  • KEEP named: officials (rank/title prefix OR an officials-lexicon match) AND investigator-designated INVOLVED subjects -- supplied via a keep_names allowlist (parallel to pii_sweep's official_names).
  • REDACT to initials: a flagged PERSON name that is NEITHER official NOR involved is an uninvolved third party (the Simpsonville pattern: suspect / POI / minor names dumped into the reason fields).
  • SAFE DEFAULT: with no keep_names, every non-official flagged name is treated as uninvolved and redacted -- Simpsonville works out of the box; a project that is tracing involved non-official subjects (e.g. financial dealings) supplies them in keep_names so they stay named.
  • ALWAYS mask structured PII (ssn, dob, phone, email, alien#, driver-lic) to a TYPED placeholder regardless of the name policy.

The four entry points (design 2.0)

from scripts.redact_output import (
    redact_text, redact_note, redact_local_texts, write_local_exhibit,
)
  1. redact_text(text, *, keep_names=(), officials=()) -> str -- redact ONE flagged reason-field text (uninvolved names -> initials, structured PII -> typed placeholder). PUBLISH-safe; carries no text_id.
  2. redact_local_texts(local_texts, *, keep_names=()) -> {text_id: redacted} -- a LOCAL-ONLY map (feeds the exhibit; NEVER a published surface).
  3. redact_note(note_text, local_texts, *, keep_names=()) -> str -- the PUBLISH-safe note sanitizer: replaces each KNOWN flagged text in the note with its redact_text form, leaving the analyst's surrounding narrative untouched. The Task-7.2 "redact a findings note" path.
  4. write_local_exhibit(local_texts, exhibit_dir, *, vault_roots=()) -> Path -- write the FULL un-redacted exhibit CSV under exhibit_dir, the ONLY surface that carries text_id + raw text. Vault-guarded.

Read the full file on GitHub · 95 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. 10d ago First seen · 95 lines · 150 tokens per session scan A dd5212208ddd

Subscribe to this mod's changes

redact-output is a skill published in the GitHub repository TimSimpsonJr/magpie (2 stars, last pushed 3mo ago), licensed MIT. It adds 150 tokens to every session and 1,505 once invoked, about $0.0007 per session on Opus 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-08-31.

Related

Other skills, from other repositories

foia-request-writer

Drafts legally complete public records requests (federal FOIA and all 50 state laws), administrative appeals, and redaction challenge strategies for U.S. government records.

ur-grue/autopunk-media-skills · 40 tokens

foi-data-request

Drafts a Freedom of Information request specifically targeting datasets, databases, or digital records — written to maximise the chance of receiving complete, machine-readable data rather than summary PDFs or partial tables.

ur-grue/autopunk-media-skills · 42 tokens

source-verification

Walks through structured verification of sources, claims, images, video, and documents across five verification modes — visual media, documents, anonymous sources, expert credentials, and social media content — using the SIFT framework, forensic metadata inspection, deepfake indicators, C2PA Content Credentials, and…

ur-grue/autopunk-media-skills · 82 tokens

pdf-table-extractor-brief

Produces a structured extraction plan and clean spreadsheet template for pulling tabular data out of a PDF document — identifying the table structure, defining column headers, flagging extraction pitfalls, and providing a ready-to-use template that ensures the data lands in a consistent, analysable format.

ur-grue/autopunk-media-skills · 61 tokens

osint-tool-catalog

Produces a categorised catalog of open-source intelligence tools relevant to a journalist's investigation, with practical guidance on what each tool does, when to use it, and what its limitations are.

ur-grue/autopunk-media-skills · 43 tokens

eu-document-access-builder

Drafts a formal access-to-documents request under the applicable European transparency law for a specified institution and jurisdiction — covering EU Regulation 1049/2001, Germany's IFG, Switzerland's BGÖG, and France's CADA regime — using the correct legal basis, required elements, and procedural language for each.

ur-grue/autopunk-media-skills · 70 tokens