deid

deid is a skill for Claude Code, Codex from LilMGenius/paperthin. It costs 155 tokens per session (1,802 once invoked), scanned A, original, MIT.

A privacy cleanup procedure for finding one person's or organization's data in a shared repository, folder, or other artifact. It replaces exposed values with roles or placeholders where appropriate and records the commits that still contain them.

In plain words
What is it for?
It helps find names, handles, email addresses, phone numbers, addresses, and account or client IDs belonging to one named owner.
Why use it?
Personal or organizational details can leak into files that are shared publicly or with others. This removes the values from the working artifact while preserving its useful behavior and identifying history that still needs a separate decision.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the paperthin plugin — 45 skills shipped together

Good fit It helps find names, handles, email addresses, phone numbers, addresses, and account or client IDs belonging to one named owner.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lilmgenius/paperthin/deid
About the project

Paperthin is a collection of low-level design patterns that coding agents can apply as repeatable checks and actions during software work. It is for people using agents such as Claude Code, Codex, Cursor, or other supported tools, and its catalogue entries package the patterns as skills, an instruction, and a plugin.

LilMGenius/paperthin · 1,481 stars · on GitHub · paperthin.ai

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 LilMGenius/paperthin --skill deid
Clone the repo
git clone --depth 1 https://github.com/LilMGenius/paperthin

Made for: Claude Code, Codex.

Or install paperthin, the plugin that ships this one along with the rest of its 45 skills.

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 deid

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lilmgenius/paperthin/deid"><img src="https://agentmods.dev/badge/skills/lilmgenius/paperthin/deid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 155 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,802 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.00155 $0.01802
Opus 5.5 $0.00062 $0.00721
Sonnet 5.5 $0.00031 $0.00360
Haiku 4.5 $0.00015 $0.00180

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

Security

Grade A, and why

deid 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 14d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/deid.mjs, scripts/deid.test.mjs), 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.

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/depth/deid/SKILL.md · 44 lines

How it starts

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

Find one owner's data in a shared artifact with needles built from that owner's records, replace each hit with the role it plays, and report which commits still carry it.

Goal

A shared artifact (a public repository, a template, a fixture set, a deliverable) holds nothing that belongs to one person or one organization, and still works: each leaked value is replaced by the role it plays or a placeholder that exercises the same code, or kept with a stated reason when it is already public. The working tree is changed only through a recorded decision file, so a rerun replays the same decisions. History is never rewritten here: the run lists the commits whose contents or messages carry a needle and names the decision the owner has to make about them.

The scope is what the human named: one artifact and one owner. The run never picks its own target or widens either.

Workflow

  1. Pin the artifact and the owner. Name the folder or repository and the one person or organization whose data must leave it. If the human named neither, ask; if several owners are involved, run once per owner.
  2. Build the needles from the owner's own records. Read the records the human points to (identity and login files, profiles, business and payout settings, client lists, ledgers, message exports) read-only, and ask for them when none were named, and write a needle file: a JSON array of { "label": "...", "value": "...", "ci": true, "regex": true } rows, ci and regex optional, every label unique and naming the kind of value (client-phone, owner-name-ko), never the value itself, since labels are printed. Spell each value every way it is written (a name in each script and order, a phone with and without separators and with the country code, an email in any case, an id with and without its prefix); a short or common word becomes a regex with word boundaries, since the script refuses a plain needle under three characters. Keep the file outside the artifact or under a gitignored local name, and never print a value: every later step names a needle by its label.
  3. List the hits. From this skill's folder run node scripts/deid.mjs scan <root> --needles <file> [--decisions <file>] [--no-git] [--json]. Inside a git work tree it reads every file git does not ignore; --no-git reads every file under the root. It prints each hit as file, line, column and label, never the value; exit 0 means no hit, 3 hits, 2 a usage error or a broken needle file. A file that is not UTF-8 text is reported without a line and is never rewritten.
  4. Judge each hit and record the decision. Read the hit in context without echoing the surrounding line, which carries the value and decide one of three things. A value already public by the owner's choice (the repository's own address, a published author credit, a public profile the artifact cites) is kept with its reason. A value in prose becomes the role it plays (the operator, the client, the company). A value in code, a test or a fixture becomes a placeholder of the same shape that still exercises the same branch: a reserved example domain for an email, an obviously synthetic number of the same length, a made-up name; check every assertion that reads it. Write a decision file, a JSON array of { "needle": "<label>", "replace": "..." } or { "needle": "<label>", "keep": "<reason>" } rows with optional "paths": [globs] matched against the repository-relative path; the first row whose needle and paths fit a hit decides it, so put scoped rows before general ones. The script refuses a replacement that itself carries a needle. Keep this file beside the needle file.
  5. State how serious the findings are, then apply. Before any change, tell the human what kind of data was found (identity, contact, credentials, client records, business figures, platform ids) and how much, with labels and counts only, since the remedy they pick depends on it. Then run node scripts/deid.mjs apply <root> --needles <file> --decisions <file> [--json]. It rewrites only files whose text changes, resolves overlapping needles to the longest, and leaves a hit no decision fits in place; exit 3 means hits are still open. Repeat steps 4 and 5 until scan with --decisions exits 0, then run the artifact's own tests and checks; a failure goes back into the decision file as a better placeholder, never into a hand edit.
  6. Scan history read-only. In a git repository run node scripts/deid.mjs history <root> --needles <file> [--decisions <file>] [--rev <rev>]... [--json]; it reads every ref unless --rev names some. It lists, per needle label, each commit whose patch adds the needle to a file and each commit whose message carries it, by commit id only, and changes nothing. The commit that adds a needle is where it entered; every descendant carries it until a later commit removes it, which is why a content rewrite starts at that commit. Exit 0 means history is clean, 3 that it is not.
  7. Report and hand history to its owners. Report the working tree result (files rewritten, values kept and why, hits left open) and the history result. For commit messages that carry a needle, tell the human to run /re0-git on the listed commits. For past file contents, name the decision only the owner can make and run none of it: rewrite every listed commit and its descendants with a content-rewriting tool, force push each ref, and accept that clones, forks and the host may keep serving the old commits until purged; recreating the repository is the alternative.

Read the full file on GitHub · 44 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 14d ago Changed · -1 lines 9cd42b9bf4e8
  2. 21d ago First seen · 45 lines · 155 tokens per session scan A 7fa0f8cf2ece

Subscribe to this mod's changes

deid is a skill published in the GitHub repository LilMGenius/paperthin (1,481 stars, last pushed 5d ago), licensed MIT. It adds 155 tokens to every session and 1,802 once invoked, about $0.0006 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-11-09.

Related

deid compared with skills from other repositories

deid next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deidLilMGenius/paperthinSkill1.5k5d agoMITA155Claude Code, Codex
modular-skillsathola/claude-night-marketSkill358yesterdayMITA24Claude Code
evaluate-skilledonadei/caliperSkill2392d agoMITA70Claude Code
context-boundary-reporteredonadei/caliperSkill2392d agoMITA20Claude Code, Codex
alertedonadei/caliperSkill2392d agoMITA20Claude Code, Codex
grill-skilledonadei/caliperSkill2392d agoMITA58Claude Code
hillclimb-skilledonadei/caliperSkill2392d agoMITA66Claude Code