Skip to content
Productivity
Skill

/audit

Run a corpus-scale, STATS-ONLY PII audit over a folder of session transcripts LOCALLY and produce an aggregate report — counts by type and by layer, the per-session redaction-rate distribution, document lengths, and a coarse residual proxy. Use when the user says "audit my

From plugin
claude-skills
41415 skills

Claude Code

$ npx -y skills add glebis/claude-skills --skill audit --agent claude-code

SKILL.md

audit.SKILL.md
name: audit
description: Run a corpus-scale, STATS-ONLY PII audit over a folder of session transcripts LOCALLY and produce an aggregate report — counts by type and by layer, the per-session redaction-rate distribution, document lengths, and a coarse residual proxy. Use when the user says "audit my sessions", "scan folder for PII", "how much PII across these transcripts", "PII stats for my corpus", "is my redaction holding at scale", or points at a directory of transcripts and asks how much personal data it contains. Fully local — raw text never leaves the machine; the report carries ZERO PII values, transcript substrings, or filenames (only anonymized own-NN ids and counts), so the aggregates are safe to surface. Run it on a RED (raw) corpus to size the PII, or on a GREEN (already-redacted) corpus to check residual leakage.

confide:audit — corpus-scale, stats-only PII audit

Measure how much PII lives across a whole folder of sessions, without ever exposing any of it. The audit runs the layered LOCAL detector stack from `shared/confide_core.py` (regex → Natasha → local LLM) over each file and emits **only aggregates**. This mirrors the `real_session_eval` privacy contract: read text only in-process, emit counts.

Privacy invariants (do not violate)

  • **Local-only.** No cloud APIs. Raw transcript text never leaves the machine.
  • **Stats-only output.** The report (markdown + json + optional HTML) contains ONLY

counts and rates — never a transcript substring, never a detected PII value.

  • **No filenames.** Per-file rows are keyed by anonymized ids `own-00`, `own-01`, …

The original path/name is never written or printed. On an unreadable file, only the index + exception class name is recorded.

  • **Safe to surface.** Because it is counts-only, the aggregate report can be shared

with a cloud agent or pasted into a chat. The PII stays on the machine.

What it reports

  • `n_files`, total / mean / min / max document chars
  • `spans_by_type` (PERSON, EMAIL, PHONE, DATE, …) and `spans_by_layer` (regex / natasha / llm)
  • `overall_redaction_rate` plus the **per-session** redaction-rate distribution

(min / median / mean / max)

  • a **coarse residual proxy**: spans still detectable after redaction — ~0 on a clean RED

corpus, a leakage signal on a GREEN corpus.

Run it

Point it at a folder (recurses, processes every `.md`/`.txt`; skips confide's own `*.green.md` / `*.stats.json` outputs):

python3 skills/audit/scripts/audit.py FOLDER

Options:

  • `--list paths.txt` — also/instead audit absolute paths listed one per line.
  • `--layers regex,natasha,llm` — choose detection layers (default from config).

Use `--layers regex` for a fully offline, deterministic pass (no models/network).

  • `--out report.md` — report path; a `report.json` sibling is written alongside.
  • `--html` — also write a Tufte-ish dashboard (`report.html`, counts only).

Writes the markdown + json report (and optional HTML) and prints the aggregate summary — all counts only.

RED vs GREEN

  • **RED (raw) corpus:** sizes the PII problem before any redaction.
  • **GREEN (redacted) corpus:** the residual proxy and remaining `spans_by_type` tell you

whether redaction is holding at scale.

After running

1. Report the aggregate summary (file count, span totals by type/layer, redaction-rate distribution, residual proxy) — never paste PII. 2. If residual is non-trivial on a GREEN corpus, point the user at **confide:anon** to re-redact and **confide:red** to probe re-identification risk.

Setup

Layer availability (Natasha, local LLM via Ollama) comes from config — run **confide:setup** if they aren't installed. `--layers regex` always works offline.

Read more
@glebis
Ships withclaude-skills

~100 skills for Claude Code — meeting pipelines, research, image generation, TDD, publishing, personal analytics, and Claude Code ops. Each skill is a self-contained folder with a SKILL.md; Claude triggers them from natural language.

Stars on GitHub

Momentum

stars in total
414
Star history of glebis/claude-skills on GitHub, a chart by star-history.com

Other skills on claude-skills.

annotate

annotate

Build and verify a PII gold set with HUMAN annotators (first-class). Launch the browser annotator, label spans per the codebook,…

anon

anon

De-identify a session transcript (file or folder) by redacting PII LOCALLY before any sharing or cloud use. Produces a redacted…

red

red

Residual re-identification RISK CHECK on text you have ALREADY redacted (defensive, dual-use). Use when the user asks to "check…

rehydrate

rehydrate

Put the real values back into an analysis that was produced from GREEN (placeholder) text — LOCALLY, using the user's own…

setup

setup

Set up, install, and configure CONFIDE local de-identification — installs Python deps (natasha, scrubadub, phonenumbers,…

vault

vault

Set up and verify the CONFIDE THREE LOCKS for storing RED (real, identifiable) session data at rest — device FileVault, a…

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

pm-skills11d28k
@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about audit.

Which coding agents can use audit?
audit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.