/hardening:privacy-auditfrom hardening
Data inventory and privacy audit for a product — enumerate exactly what user data is collected and where it lands (Neon/Supabase tables, logs, PostHog, Stripe, email provider, Better Stack/Sentry), check alignment with the privacy policy, verify GDPR export/delete paths exist, and grep for PII leaking into logs or API responses. Use when asked to "audit privacy," "check what data we collect," before a launch, or after adding a new data-collecting feature (signup field, analytics event, webhook).
Ships in hardening. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The rule is explicit: a privacy policy is required if any user data is collected, and the team must know exactly where it's stored. This skill produces that inventory and checks it against reality — not against what the privacy policy claims, but against what the code and infra actually do. Apply it first to anything public-facing that collects user data. Internal or proprietary services need the same discipline whenever they touch partner or customer data, even where no public policy is required.
Enumerate data collection points. Grep the codebase for the shape of intake, not just obvious forms:
providers config and any custom signIn/session callbacks for extra fields captured).id/createdAt — grep -rn "z.object" --include="*.ts" and read what each schema captures.stripe.customers.create, metadata: blocks) — Stripe stores whatever you attach.capture()/identify() calls — check properties: payloads for anything beyond anonymous event data (email, name, IP if not stripped).Build the data map. For every field found, record: field name → source (which form/event) → storage location (table.column, PostHog event property, Stripe metadata key, log line) → retention (indefinite / N days / until account deletion) → who else sees it (third-party processor: Stripe, PostHog, email provider, Sentry/Better Stack).
Check privacy-policy alignment. Read the live privacy policy (or draft from legal-docs skill if none exists) and confirm every row in the data map is disclosed. Flag:
Verify GDPR basics exist — even for a small SaaS, these two paths matter if any EU users are plausible:
/api/account/export route or equivalent; if none, note it as a gap.onDelete: Cascade on user-owned tables, Stripe customer deletion/anonymization, PostHog person deletion via API, removal from email provider list. A "delete" that leaves orphaned rows or a still-subscribed Stripe customer is not a real delete path.Run grep-based PII leak scans against logs and API responses:
grep -rn "console.log\|logger\." --include="*.ts" -A2 | grep -iE "email|password|apiKey|token|ssn|address" — anything printing a raw user object is a likely leak (console.log(user) instead of console.log(user.id)).select/omit used to exclude passwordHash, apiKeyEncrypted, internal stripeCustomerId unless the client legitimately needs it? A bare return NextResponse.json(user) without a select clause is the classic over-fetch leak.error.message from a Postgres connection failure can leak a DB host).beforeSend/scrubbing config — is PII scrubbing configured, or does every error event ship the full request body?Report format: data map table, policy-alignment gaps (list), GDPR path status (exists / partial / missing, per path), PII leak scan findings (file:line + what's exposed), and a prioritized fix list (leaks first, then policy gaps, then GDPR paths).
select/omit missing on sensitive fields)A data-map table plus a findings list with file:line references for every leak found. Do not write this to a persistent .md file unless asked — return it in the response.
legal-docs (for policy text) or a scoped implementation task with the user's sign-off (for the encryption/migration fix), since these touch production data.What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/agent-tooling-reviewUse when connecting, auditing, or widening the permissions of tooling an AI agent can call: MCP servers, plugins, skills, database or GitHub connections, API tokens issued to an agent, or an agent that will run unattended (scheduled, looped, event-triggered, background, CI). Triggers: a new MCP or plugin is about to be added, an agent needs write access it did not have, a connection points at production, an unattended job is being set up, or a tool's description changed after approval./auth-hardeningNextAuth v5 security audit and hardening checklist — session/cookie config, CSRF, OAuth scopes, per-route role checks, password-reset/OTP rate limits, secret rotation, session invalidation on privilege change. Use when adding auth to a new product, auditing an existing NextAuth v5 app, or reviewing any PR that touches session/role/permission code./exposure-scannpx claudepluginhub stylusnexus/agent-plugins --plugin hardeningOther plugins' skills for the same job