/dev-flow:compliance-auditfrom dev-flow
Scans codebase and stack for GDPR and EU AI Act compliance against an 11-point risk register (DSAR, consent, data residency, retention, AI transparency). Produces severity-graded reports with article mappings and applies safe mechanical remediations.
Ships in dev-flow. 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; scripts run unread.
Runs on a project that already exists (any dev-flow stack — Next.js web, Expo mobile, or an eve agent). It reads the codebase and .workflow/meta.json#stack, scores it against a fixed risk register, writes a report, and — on request — applies the safe mitigations while flagging the ones that need a human decision.
Not legal advice. This produces engineering findings and remediations. A DPO / qualified counsel confirms materiality, legal basis, and high-risk classification per deployment. Every generated artifact carries that caveat.
launch-audit asks whether the pages a user reads exist and are reachable; this skill asks
whether the handling behind them is lawful. Both, never one instead of the other:
launch-audit's, not this skill's. It is an information duty about the seller, not about the
data, which is why it sits in the other gate.A product can hold a flawless lawful basis and publish nothing a user can read. It can also publish a beautiful policy describing handling it does not do. Two failures, two gates.
Full checklist + article mapping + remediation recipes in references/gdpr-ai-act-checklist.md. In short:
| ID | Risk | GDPR / AI Act |
|---|---|---|
| R1 | No DSAR: data export / erasure (also Apple 5.1.1(v) + Play in-app account deletion) | Art. 15/17/20 |
| R2 | No consent capture / cookie-consent banner | Art. 6/7, ePrivacy |
| R3 | International transfer / EU data residency not addressed | Art. 44+ |
| R4 | No retention/TTL + no PII-scrubbing (logs, event log, caches) | Art. 5(1)(e) |
| R5 | No AI-transparency disclosure; synthetic voice unlabeled | AI Act Art. 50 |
| R6 | High-risk use case never classified (DPIA) | AI Act Annex III; GDPR Art. 35 |
| R7 | PII in server/app logs | Art. 32 |
| R8 | Sub-processors not disclosed / no DPA register | Art. 28 |
| R9 | Special-category data unguarded | Art. 9 |
| R10 | Memory/personalization not screened for manipulation | AI Act Art. 5 |
| R11 | A client analytics SDK sets identifiers before consent (a cookie-based init that neither runs cookieless nor reads the consent gate) | Art. 6/7 + ePrivacy |
| R12 | A paid consumer subscription whose cancellation is not self-serve in one click — or whose confirmation step offers a discount or a pause instead of confirming | §312k BGB (DE, in force); ROSCA + state auto-renewal laws (US) |
Art. 32 also covers keeping the software patched — that part lives in
vercel-deploy. "Security of processing" is not only R7 (PII in logs): running a framework version with known, published CVEs is the same article. Since 2026-07 Next.js ships pre-announced monthly security releases with two maintained lines whose labels move (2026-08-25: 16.3.x Active LTS, 15.5.x Maintenance LTS — 16.2 stopped receiving patches), and the deploy gate checks the project against that floor — seereferences/contracts.md§nextjs_version. Don't duplicate the check here; when auditing a web project, readmeta.json#historyfor a recentvercel-deployrun and say so if the floor has never been verified. Note for the report: a platform WAF rule is a mitigation, not a patch — Vercel says so itself.
.workflow/meta.json (stack.framework, auth, db, agent, deploy, …). If none, still run — infer the stack from the codebase and tell the user.python scripts/scan.py <project-root> for a fast first-pass signal (grep-level markers per risk). The scan is a signal, not a verdict — verify every hit by reading the file before reporting it (avoid false positives).Goal: a truthful, actionable report — no changes to the app.
python3 <dev-flow>/scripts/data_residency.py check <root> --json and read stack.data_residency, compliance.data_categories and compliance.sub_processors (dev-flow/references/eu-data-sovereignty.md). R3, R8 and R9 are audited against those choices: is every service the code actually calls in the register, does the configured region match the declared residency, does each flagged row carry a transfer basis, is a declared special category handled as R9 requires. When residency was never decided, that is itself the R3 finding.stack.db="neon-drizzle" + no EU region marker → R3; stack.agent="eve" → check R5/R4/R9/R10 in the agent).<root>/docs/compliance/audit-report.md: per finding → ID · severity (H/M/L) · article · evidence (file:line) · what's missing · recommended fix (safe-fix or decision). Group by severity. Lead with a one-paragraph posture summary and the "not legal advice" caveat.meta.json#compliance (see below) + append history ({ "skill": "compliance-audit", "action": "audit" }). No phase bump.Goal: apply the safe, mechanical mitigations; flag the decisions. Reuse existing skills — don't reinvent.
Auto-apply (safe / reversible):
lib/server/account.actions.ts + /settings/privacy route; mobile: a deleteAccount() in the auth lib; eve agent: export_memories + erase_all_memories tools per references/gdpr-ai-act-checklist.md). Wire the erasure cascade across the tenant's tables. Where module-add auth / rn-module-add / forms own the surface, invoke/extend them rather than hand-rolling.CookieConsentBanner + lib/consent.ts gate (blocks non-essential cookies/scripts until consent) + a /legal/privacy + /legal/cookies page stub. Mobile: log the push/ATT consent decision.agent/instructions.md + the chat header; voice: a label on synthetic audio).lib/log.ts redaction helper (replace raw console.error(e) with a scrubbed logger) + a documented retention policy + a TTL/cleanup job stub tied to erasure; purge persisted caches on sign-out.module-add/rn-module-add through data_residency.py add; here, add the rows the code shows and the register lacks (same command) and re-render docs/compliance/subprocessors.md. Only when a project predates the register, generate it from meta.json#stack (LLM provider, Vercel, Neon/Supabase/Firebase, Resend, Linear, RevenueCat, Expo push…), each with role + a DPA-link TODO.Flag only (needs a product/legal decision — never decide it): as TODO(compliance) entries in the report + inline:
docs/compliance/dpia-template.md, don't fill it in.After remediating: rewrite audit-report.md with each finding marked fixed / flagged, list applied changes, update meta.json#compliance, append history. Every change is a reviewable diff.
meta.json#compliance block"compliance": {
"last_audit_at": "<ISO>",
"findings": { "high": 0, "medium": 0, "low": 0 },
"remediated": ["R1","R2","R5","R7","R8"],
"flagged": ["R3","R6"],
"data_categories": ["identity-documents", "tax", …], // written by data_residency.py decide
"sub_processors": [ … ], // written by data_residency.py add; rendered to docs/compliance/subprocessors.md
"residency_verified_at": "<ISO>", // the decision itself lives in stack.data_residency
"high_risk": true | false | null
}
Horizontal capability — invoke any time. dev-flow proposes it as a pre-deploy gate when a project reaches feature_complete (before shipping), and in the deployed maintenance loop (re-audit after changes). It records meta.json#compliance + history and never bumps phase (like the discipline skills and scrum).
It is one of five pre-deploy gates that share this shape — legal (compliance-audit), cost/perf (vercel-doctor), UI quality + accessibility (shadscan), launch readiness (launch-audit), code security (app-security). Propose them together at feature_complete; each is independent, none blocks the deploy on its own. After deploy, dev-flow's debt audit reads its scan with the others.
docs/compliance/audit-report.md exists, every reported finding was verified in code (no raw scan noise), meta.json#compliance populated.fixed; decisions marked flagged with a DPIA template when high-risk is suspected; a re-run is a no-op for already-fixed items.cd compliance-audit/scripts && python3 -m unittest test_scan.design-md-to-app / module-add / rn-*); it adds only the compliance controls.phase.references/gdpr-ai-act-checklist.md — the R1–R12 checklist, article mapping, and per-risk remediation recipes (safe-fix vs flag).references/contracts.md — the .workflow/ dev-flow contract (vendored).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gdpr, eu-ai-act, compliance-audit, data-protection, privacy, pre-deploy-gate
npx claudepluginhub lukedj78/dev-flow --plugin dev-flow57 skills in this plugin
/animated-iconsAdd a Motion-animated icon to a Next.js app from a shadcn registry instead of hand-animating an SVG. Two registries, picked from the project's icon set: **heroicons-animated** (316 icons, `shadcn add @heroicons-animated/<name>`) and **hugeicons-animated** (165 icons, `shadcn add @hugeicons-animated/<name>`, which also installs a shared `lib/use-icon-animation.ts`). Both MIT, both on the `motion` runtime, both copied into your repo as source. This skill owns the install plus the two things the raw components lack: a `prefers-reduced-motion` guard and timing aligned to the project motion tokens (`lib/motion/`). Use when the user says "animated icon", "animate this icon", "make the bell/heart/menu icon animate on hover", "aggiungi un'icona animata", or wants an icon micro-interaction. Refuses outside Next.js web — for React Native use `rn-animations-gestures`. Not for: static icons, a whole motion system (`transitions`), or installing the runtime itself (`module-add motion`)./app-securityCheck whether an app's own code can be attacked before it ships — vulnerable dependencies, secrets in the code and in git history, Next.js authorization gaps (Server Actions and route handlers without a session check, queries by id with no owner filter — IDOR), data over-exposure, secrets in public env vars, raw SQL — then read the flagged code against an OWASP checklist, with an opt-in dynamic level (Strix) that proves exploits against the app running locally. The fifth pre-deploy gate, beside compliance-audit, vercel-doctor, shadscan and launch-audit; reports and routes, never blocks. Triggers: "security review", "è sicura l'app?", "controllo di sicurezza prima del deploy", "IDOR", "secrets in the repo", "pentest". Not for: GDPR and legal (compliance-audit), UI quality (shadscan), cost (vercel-doctor), launch readiness (launch-audit), a review of one branch diff (Claude Code's /security-review), third-party registry code (registry-intake)./app-verificationGive a project a manual for proving its features on the real app, written once and kept true: `.claude/skills/verify-<app>/` with how to launch it until it is usable, a read-only doctor check, how to drive it with the repo's real selectors, what counts as proof and where it goes, how to stop only what it started — plus one feature file per PRD story, seeded from the wireframe screen inventory, and a headless-Chrome render probe (overflow, wrapped headings, text hidden under reduced motion). Two modes: create (scaffold, fill from the code, prove it live once, record `meta.json#verification`) and maintain (re-read every feature from source, drive them all live, fix the manual, report real regressions). Web, Expo and eve. Triggers: "verify the app", "prova che funziona", "verification skill", "come si avvia l'app per provarla", "maintain the verify skill", "il manuale di verifica è aggiornato?". Not for: writing tests (write-tests), UI audits (shadscan), security (app-security), deploying (vercel-deploy)./composition-patterns-guideUse when refactoring React or React Native components that suffer from boolean prop proliferation, missing compound structure, prop drilling, or unclear ownership of state. Codifies the 7 Vercel composition-patterns rules for our web + RN stack — composition or explicit variants over boolean props, compound components with shared context, state lifted into providers, children over render props, React 19 (no forwardRef) — plus our colocation rules (Rule of Three, L0/L1/L2, `_components/`). Triggers on: "refactor this component", "questo componente ha troppi prop booleani", "rendi questo componente più componibile", "compound component", "context provider per X", "design del componente". Not for: scaffolding new components (use design-md-to-app, screenshot-to-page, rn-add-screen), or moving components up the hierarchy (use promote-component)./coss-uiSet up or extend a Next.js web app with Coss/UI — the official Cal.com design system, built on Base UI + Tailwind CSS v4 and installed through the shadcn CLI via the namespaced `@coss/*` registry. Two modes: Init (`shadcn init @coss/style` on a new project) and Add (pull `@coss/ui` primitives, single `@coss/<name>` components, or particles into an existing one). Sets `meta.json#stack.ui = "coss"`. Triggers: "usa Coss/UI", "coss.com/ui", "Cal.com design system", "aggiungi un componente Coss", "init @coss/style", "scaffold con Coss UI", or dev-flow routing when `stack.ui = "coss"`. Requires Tailwind CSS v4 and carries a mixed MIT/AGPLv3 license. Not for: writing the DESIGN.md (use figma-to-design-md / image-to-design-md), the generic Next.js scaffold (design-md-to-app owns it), backend modules (module-add), or React Native (RN uses NativeWind, not Coss)./data-fetchingRead data in a Next.js 16 App Router app the canonical way — async Server Components first, URL `searchParams` for filter state, `use()` + `<Suspense>` when a Client Component needs server data, Route Handlers + SWR/React Query only as a last resort. Server Actions are for mutations, never reads. Use when the user is about to load data via a Server Action, about to add `useEffect` to fetch, about to convert a page to `"use client"` for filter state, or pastes `useState + useEffect + fetch` in a Client Component. Also owns Next.js 16 Cache Components — `cacheComponents`, `use cache`, `cacheLife`, `revalidateTag`, `partialPrefetching`, Instant Navigation — and any question about caching, prefetching or navigation speed. Refuses outside Next.js 16 web. Not for: form persistence (`forms`), local UI state (`state-discipline`), React Native (`rn-data-fetching`), or mutations.