View

From glebis/claude-skills · View interactive version

View is an AI agent skill from the GitHub repository glebis/claude-skills. Build a self-contained interactive HTML that lets you SEE de-identification and restoration — original ↔ redacted ↔ rehydrated, with color-coded PII spans and All/None/Selected toggles. Use when the user says "show me what was redacted", "visualize the de-id", "compare original and redacted", "highl

How to use this skill

Skill file

confide:view — visual de-id diff (what redaction & rehydrate do)

Produce ONE standalone .html that renders a transcript with every PII span

highlighted and color-coded by type, and lets you toggle between the original and

the redacted views interactively. It reuses the span data from the shared core

(shared/confide_core.py) — a thin renderer, no new detection logic.

Privacy invariants (do not violate)

It is therefore a vault artifact: same posture as the relationship-graph HTML.

*.view.html (and *.map.json), and a red PRIVATE banner sits at the top.

Never share it, never commit it, never ship it.

PII values or redacted-text dumps.

renders offline and can never 404. Default detection layer is regex (no network,

no models).

Run it

python3 skills/view/scripts/view.py ORIGINAL.txt

If a <name>.map.json sits next to the input (from confide:anon), it is picked up

automatically so the view shows exactly that known PII; otherwise PII is detected with

the local layers and a fresh reversible map is built in memory.

Options:

It writes <name>.view.html and ensures a sibling .gitignore.

What the HTML shows

<mark class="pii TYPE" data-orig=… data-ph=…>, colored by type (PERSON, DATE,

EMAIL, …). Hover a span to see original ↔ placeholder.

After running

  1. Open the <name>.view.html locally in a browser to inspect the de-id.
  2. Report the counts summary (types) — never paste PII.
  3. Remind the user the file is private/local and must not be shared or committed.

Setup

The default regex layer always works offline. For Natasha (RU NER) or the local LLM

layer, run confide:setup first; otherwise pass --layers regex.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.