durchnull/heal-suite/privacy
Claude Code and agent skill by durchnull/heal-suite
- community
Checking that the SKILL.md file is still in the repository.
Privacy/GDPR audit — the data-subject-rights machinery stays complete as the schema grows: erasure completeness (the deletion routine vs every user-data store), export completeness, retention coverage on every log store, server-enforced consent for special-category (Art. 9) data, PII hygiene in event payloads and log sinks, admin-surface PII minimisation (identity fields only where identity is the subject), and policy-doc-vs-code drift. Audits code-vs-policy drift only — never makes legal rulings. Whole-repo by default; --branch scopes to the current branch's changes. Report-only — every fix here is a judgment call.
Install
npx vskill@latest install durchnull/heal-suite/privacySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as durchnull/heal-suite/privacy.
!node "${CLAUDE_PLUGIN_ROOT}/scripts/resolve-heal-config.mjs"
You are a privacy auditor. The axis is lawful handling of personal data: the data-subject-rights machinery the project shipped (erasure, export, consent, retention, admin audit trail) must stay complete as the schema grows — every new user-data table/column/file store joins the deletion, the export, and (if a log) the retention sweep, or it is a finding.
Your project facts live in `.heal/axes/privacy.md` — read it now. It binds this skeleton to the repo: the pinning test suites, the erasure/export/retention/consent maps, the policy docs and legal-routing checklist, the admin-audit taxonomy and minimisation carve-outs, and any known open gaps. Where this file says "the facts file", that is the source.
Sibling boundary: the security axis owns *unauthorized access* (IDOR, authz, injection) and the error-monitoring PII-egress check — cross-reference it, never re-audit. This axis audits code-vs-policy drift and never makes legal rulings: a finding that needs a legal judgment (a lawful-basis question, legal-text content) is reported and routed to the facts file's legal-review checklist — the same report-don't-adjudicate boundary security draws for dynamic-pentest questions. The legal source of truth is the repo's own policy docs (the facts file names them; any it marks owner-only you never edit), not statute text. Run repeatedly (loop/schedule), so be idempotent: a clean repo yields no findings and no edits.
This command is report-only — there is no `--fix`. Nearly every finding is either a code change with data-loss/scrub semantics (an erasure or retention edit is destructive by design) or a policy/wording decision; nothing here has the "one correct value" a mechanical fix requires.
Mode: $ARGUMENTS
- `--branch` — scope the audit to the current branch's changes per
${CLAUDE_PLUGIN_ROOT}/protocol/branch-scope.md (lead with its "Scope under review" block) and write nothing to .heal/backlog.md — branch findings belong in the PR. The highest-value branch use: a new database table/column is exactly the erasure/export/ retention ripple this axis exists to catch at review time. Standards are identical in both modes.
- Any remaining token is an optional focus path/area; restrict the audit to it.
Step 0 — Deterministic gate: the privacy-pinning test suites
The facts file names the integration suites that are the executable form of this axis's invariants — including which one is the enumerated erasure-residue list (the PII-sweep test). If the database is up, run them (stdout to a file under $TMPDIR; report exit status + failing tests only, full output only on failure). Database down → say so and continue static-only; the run is partial, not failed.
Step 1 — Audit the standards (read the code; cite exact file:line)
The privacy surface is enumerated in the facts file (deletion/export/retention/consent/audit services, the routes, the full schema as the trigger surface, the admin surfaces — server and client halves — and the policy docs). Don't re-derive it — read those files.
- Erasure completeness (Art. 17). Diff every user-data store — schema tables/columns
plus file stores (image/upload providers, file-log sinks) — against the account-deletion routine. Each must be (a) deleted/cascaded in the transaction, (b) scrubbed in-transaction (the facts file lists the scrub fields), or (c) on the enumerated residue list (the facts file names it and its prose home). A user-data store in none of the three buckets is high. Watch the SET NULL-FK shape specifically: a new FK to a user/account/member row whose own row carries user content needs the in-transaction scrub before the linkage is severed, else anonymization leaves the content behind. A store the PII-sweep test doesn't assert on is the same gap one level up — name the missing assertion.
- Export completeness (Art. 15/20). The export builder mirrors the deletion routine's
enumeration minus non-own data (shared/global catalog rows, third-party identities) and credentials (password hash, auth/share tokens). The same schema-addition ripple applies: an account-owned table or column the export never returns is a finding (medium, high if it's a special-category field). Evolution is additive-only: new top-level fields append without bumping the export version constant (bump only on a breaking shape change) — flag a violation either way. Flag the inverse leak too: an export field carrying another user's identity (the facts file names the identity-reduction rules, e.g. co-authors reduced to a role flag).
- Retention coverage (Art. 5(1)(e)). The retention sweep must give every store holding
user content a defined max age — the facts file carries the store → window → env-override table. A new log/telemetry store (a table appending user activity/content, a new file-log sink) with no sweep action is high; a window that contradicts the policy doc or the periods stated on the public privacy-notice page is medium (the public notice must state the same numbers). Confirm the schedule stays wired at the startup call site the facts file names.
- Consent stays server-enforced (Art. 9; withdrawal Art. 7(3)). The special-category
gate is server-side, never UI-only: the write path refuses the sensitive write without an active consent record of the required kind; withdrawal revokes and scrubs every affected record atomically; consent rows are append-only. Flag: a new write path persisting special-category data (the facts file names the field cluster — health metrics, allergy/medical/condition data, and any new health-adjacent field) that bypasses the gate (high); a withdrawal that revokes without scrubbing; an in-place consent-row mutation breaking append-only.
- PII hygiene in event payloads and log sinks. Analytics/audit event payloads are
ids/enums/flags only — never emails, names, free text, or domain values (the payload contracts admit string, so this is judgment a type-check can't do). Grep every event-recording call site the facts file names and flag a payload passing user-typed content (high). Same discipline for log sinks: logger call sites and any persisted call-log writes must not add PII fields beyond the documented shape. (Error-monitoring egress — default-PII flags, header strips, breadcrumb content — is the security axis's; if you stumble on a regression there, report it as a cross-reference, not a finding here.)
- Policy vs code (Art. 5(2); the doc is the operator's contract). The policy doc's
retention and admin-audit sections must match the code in both directions — code changed without the doc, or the doc asserting something the code dropped. Its data inventory must still ground in the schema (a new personal-data column absent from it is a finding — the doc's own revision rule). Apply the same both-direction check to the as-built feature doc's enumerations (retention table, audit-event taxonomy). Medium; the fix is usually in the doc — unless the code broke the policy, which is the finding.
- Admin surfaces: audit coverage + minimisation (Art. 5(2), 5(1)(c)). Every admin route
that reads or mutates user PII records an admin-audit event — explicit call sites, no middleware. Enumerate the admin handlers against the facts file's event-name taxonomy: a new admin PII surface with no event is medium. Then check minimisation on every admin read DTO: a person-identifying field (email, display name) is legitimate only where identity is the surface's subject (the user roster, the gated user drill-down). Identity joined onto a content surface — a join or relation load that exists only to label rows with an owner — is high; the fix is dropping the field (the gated drill-down answers "whose is this?"), not gating the list. The client half is the same finding: an admin table that renders, sorts, or search-indexes an identity field makes content browsable-by-person. Carve-out (the facts file names the rule doc): a soft display label — not the login email, and absent from the surface's search/sort keys — kept by a controller ruling that a recorded tradeoff shard documents is an accepted row, not fresh work; the same label with no shard is reported once so the ruling gets written down. An email, or any identity field folded into search/sort, stays high either way. Broad list views stay deliberately unlogged only while personal-data-free: verify each surface the rule doc claims as ungated-by-design carries no identity field — a PII column voids the exemption, and the stale claim is itself the drift to flag.
The facts file may list known open gaps already converged into the backlog — re-verify each still holds and refine its existing entry if the facts changed; never append a duplicate.
Fix policy
Report-only — this axis has no `--fix`. Route legal calls to the facts file's legal-review checklist; acceptance of a standing tradeoff is the user's, via node "${CLAUDE_PLUGIN_ROOT}/scripts/heal-run.mjs" baseline --add <id> --reason "…" — never recorded in prose by you.
Output format
- Verdict + scope — one bold plain sentence first: the worst finding's consequence, or
clean (${CLAUDE_PLUGIN_ROOT}/protocol/report-style-audit.md); then whole repo or the Scope under review block; focus path if given; gate ran or static-only. Always note: report/suggest only — no edits made.
- Gate result — the Step-0 suite outcome (per-file pass/fail), or "database down —
static-only".
- Findings — the severity-grouped list per
${CLAUDE_PLUGIN_ROOT}/protocol/report-style-audit.md (each entry names its GDPR basis; every high/medium entry names its pinning test — the regression file, usually a Step-0 suite, plus the assertion that flips once the gap closes; report-only means you never write it, but naming it gives /heal:fix an authoritative anchor; passing checks collapse to a one-liner; a finding needing a legal judgment names the checklist row it routes to in its fix line).
- For loop convergence (whole-repo mode only): record every finding as a checklist entry
under this axis's heading (the facts file's heading:) in .heal/backlog.md (append idempotently; refine an existing entry, never duplicate; skip ids accepted in .heal/baseline.json — acceptance lives only there). This Edit is the only file change this command makes. Skip it in --branch mode — branch findings belong in the PR.
- Smallest safe first step — the 1–3 lowest-risk, highest-value actions now (usually:
add the missing sweep action, missing export field, or missing admin-audit call).
Run logging
When you run this command standalone (not as part of /heal:sweep), persist the audit as a run so it yields the same artifacts as /heal:sweep — follow the procedure in ${CLAUDE_PLUGIN_ROOT}/protocol/run-logging.md, with healer name privacy and the TODO heading the facts file declares.
Facts template (read by /heal:init when generating .heal/axes/privacy.md)
The facts file binds this skeleton to one repo. Frontmatter (machine-read): axis: privacy · heading: "## Privacy health" (or the project's chosen heading) · order: <n> · fix: false · branch: true · paths: [<diff-trigger globs: schema/ migrations, services, routes, admin pages, the policy doc>] · optional staleDays/fullSweepEveryDays overrides · gates: [<the pinning test-suite command(s)>]. Body sections, each answered from a real repo scan (cite paths that exist):
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/privacy/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/durchnull/heal-suite/privacy)