Skip to content
Skills Library
Security · Building & coding

view

/view

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", "highlight the PII", "view redaction diff", "see what rehydrate restored", or wants to inspect exactly which spans each type/layer removes. LOCAL only — the HTML embeds REAL values (like a vault artifact): written locally, gitignored, banner-marked private, never shipped or committed.

Licence
MIT
Last repository change
25.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/view.py

What it does and when to use it

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", "highlight the PII", "view redaction diff", "see what rehydrate restored", or wants to inspect exactly which spans each type/layer removes. LOCAL only — the HTML embeds REAL values (like a vault artifact): written locally, gitignored, banner-marked private, never shipped or committed.

Triggers from the description

show me what was redactedvisualize the de-idcompare original and redactedhighlight the PIIview redaction diffsee what rehydrate restored
Original author description

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", "highlight the PII", "view redaction diff", "see what rehydrate restored", or wants to inspect exactly which spans each type/layer removes. LOCAL only — the HTML embeds REAL values (like a vault artifact): written locally, gitignored, banner-marked private, never shipped or committed.

How it works

  1. Privacy invariants (do not violate)
  2. Run it
  3. What the HTML shows
  4. After running
  5. Setup
Original SKILL.md headings · 54 lines, 406 words
SKILL.md preview
---
name: view
description: 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", "highlight the PII", "view redaction diff", "see what rehydrate restored", or wants to inspect exactly which spans each type/layer removes. LOCAL only — the HTML embeds REAL values (like a vault artifact): written locally, gitignored, banner-marked private, never shipped or committed.
---

# 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)
- **The HTML embeds REAL values** (originals + placeholders) so you can compare them.
  It is therefore a **vault artifact**: same posture as the relationship-graph HTML.
- **Local only.** Written next to the input, a sibling `.gitignore` excludes
  `*.view.html` (and `*.map.json`), and a red **PRIVATE** banner sits at the top.
  Never share it, never commit it, never ship it.
- **Counts only to stdout.** The terminal output carries span counts by type — never
  PII values or redacted-text dumps.
- **Self-contained & offline.** Inline CSS + JS, no CDN / external resources, so it
  renders offline and can never 404. Default detection layer is `regex` (no network,
  no models).

## Run it
```bash
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:
- `--map MAP.json` — supply the reversible map explicitly.
- `--layers regex,natasha,llm` — choose detection layers (default `regex`, offline-safe).
- `--out DIR` — write the `.view.html` into DIR instead of next to the input.

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

## What the HTML shows
- The transcript with each PII span wrapped in
  `<mark class="pii TYPE" data-orig=… data-ph=…>`, **colored by type** (PERSON, DATE,
  EMAIL, …). Hover a span to see `original ↔ placeholder`.
- An interactive **state toggle**:
  - **All** — fully redacted: every span shows its placeholder.
  - **None** — original: nothing masked.
  - **Selected** — mask only the PII types you check (per-type checkboxes in the legend).
- A **legend + counts by type**.

## 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`.
Files in this package (2)
  • SKILL.md 3 KB
  • scripts/view.py 15 KB

Versions

RepositoryScoreLicence
This page · glebis/claude-skills100MIT
egregore-labs/egregore100MIT
egregore-labs/egregore100MIT
tshah-95/vean100AGPL-3.0
spaquet/markify87MIT

Database snapshot: 13.11.2026 · package version cd621b93cc08 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100anon
    De-identify a session transcript (file or folder) by redacting PII LOCALLY before any sharing or cloud use. Produces a redacted GREEN copy with unique reserved-sentinel placeholders ([CONFIDE_PERSON_0001], [CONFIDE_EMAIL_0001], [CONFIDE_DATE_0002]...) plus a counts-only stats…
  • 100audit
    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…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.