/dev-flow:app-securityfrom dev-flow
Scans app code for security issues before deployment: vulnerable dependencies, secrets in code/git history, Next.js authorization gaps (IDOR), data over-exposure, raw SQL. Runs static analysis then reviews flagged code against OWASP checklist with optional dynamic exploit testing via Strix.
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.
The fifth pre-deploy gate. The other four ask different questions, and none of them asks this one:
| Gate | Question |
|---|---|
compliance-audit | is it legal? |
vercel-doctor | what will it cost? |
shadscan | is the UI complete and accessible? |
launch-audit | can a stranger find it, trust it and buy from it? |
app-security | can someone use it to read or change what is not theirs? |
No gate replaces another. A product can pass all four others with every Server Action open to anyone who sends a POST.
| Level | What | With what | When |
|---|---|---|---|
| scan | dependencies, secrets, static analysis, our own Next.js checks | scripts/scan_security.py, which calls OSV-Scanner (or pnpm audit / npm audit), gitleaks and Semgrep when they are installed | every run |
| review | object-level authorization, data over-exposure, input validation, auth configuration, headers | you, reading the code with references/review.md | every run: on every flagged file, and on every Server Action and mutating route, flagged or not |
| dynamic | real exploits against the running app | Strix, in Docker, against next start locally or a preview | only when the user asks: before a first public launch, with sensitive data or payments — references/dynamic.md |
Scan.
python3 <skills>/app-security/scripts/scan_security.py <project-root> # the report
python3 <skills>/app-security/scripts/scan_security.py <project-root> --json # for the agent
It finds the app at the root and in apps/* and packages/* of a monorepo. Each check reports
found, ok, not checked, or not applicable (the Next.js checks on an Expo app). A missing tool, no network, a timeout or output that does not
parse is not checked, never ok, and the report never calls a project clean. A secret found in git
history comes first: it must be rotated, because deleting the file leaves it in every clone.
Missing tools: propose, ask, never install alone. The report prints the command for each one
(brew install osv-scanner, brew install gitleaks, pipx install semgrep). Ask the user once for
all of them. Without them the scan still runs our own checks and the dependency fallback (pnpm audit
/ npm audit, which need the network), and says what it could not look at. Semgrep downloads its
rules at run time: their licence forbids shipping them, so this skill never contains one.
Review. The Next.js checks are heuristics, and say so: a regex cannot follow a helper across
files. Open every flagged file and read it with references/review.md. Then read every exported
Server Action and every POST/PUT/PATCH/DELETE handler, flagged or not, because the dangerous
case — a session check that does not check ownership — passes every check here. A finding goes in
the report only after you have read the code that makes it real.
On a large project, read in this order: actions and routes that write; queries by id; what reaches
"use client" components; the rest.
Dynamic, only on request. Read references/dynamic.md before anything else. It starts with the
authorization rule, which you state to the user before any run.
Report, then route. One list, most severe first: secrets in history, then proven exploits, then authorization, then the rest. Each finding names the file and line, why it is real (what you read), and who fixes it:
| Finding | Routed to |
|---|---|
| an action or route with no session or ownership check | module-add auth for the helper; the code owner for the call |
| a query by id with no owner filter, a raw row returned | the code owner, with the fix from review.md |
| a secret in the code, in history or in a public variable | the user: rotate first, then move it to the environment |
| no security headers or CSP | vercel-deploy (headers in next.config.ts) |
| a vulnerable dependency | the user: upgrade, or record why not |
| a third-party component | registry-intake |
This skill proposes fixes and does not apply them silently. Apply one when the user says so, and re-run the scan afterwards.
Record the security block by editing .workflow/meta.json directly, as launch-audit does with its own
block, then append the run with dev-flow/scripts/update_meta.py <root> append-history --skill app-security.
Never bump phase, never block the deploy. A risk the user decides to keep goes in
findings.accepted with their reason, so the next run does not raise it again as new:
"security": {
"last_run_at": "<ISO-8601 UTC>",
"tools": { "deps": "osv-scanner", "secrets": "not-run", "static": "not-run" },
"findings": { "open": 3, "fixed": 5, "accepted": [{ "check": "public-env-secret", "reason": "…" }] },
"dynamic": null
}
The scan accepts a call to getSession, getCurrentUserId, getCurrentTenantId, requireUser,
verifySession or auth( inside the body as a session check. A project with its own helper declares it
once, and the scan reads it:
"stack_config": { "security_session_calls": ["requireMember", "withOrg"] }
Only a bare call counts: a helper named in a comment does not, and neither does a method of the same name
(db.update( is not a helper called update). A function of the project that itself takes the session counts as
a session check too, but only in a file that imports it, or in the file that defines it; a local function
with the same name shadows it.
app.json, app.config.*, or expo without next in package.json). The
dependency and secret scans apply in full, and so does the mobile part of review.md: tokens in
expo-secure-store, never in AsyncStorage, and nothing secret in EXPO_PUBLIC_, which ships in plain
text inside the app bundle.eve-agent's (eve-agent/references/eve-patterns.md §1–2). Here, check only that
the tools an agent calls reach data through the same owner-scoped access layer as the app.vercel-deploy keeps the Next.js version floor against known CVEs: that is about the version, not
the code, and this skill points to it rather than repeating it.module-add auth owns the session helpers (lib/auth-server.ts). This skill checks that they are
called, and that ownership is checked as well.registry-intake owns third-party component code. A finding inside vendor/registry/ goes there.compliance-audit owns the law. A leaked personal record is a security finding here and a possible
breach notification there; say both./security-review reviews only the current branch's diff, and needs an origin
remote. It is a useful extra pass on a pull request, not a replacement for this gate, which reads the
whole app.review.md.meta.json#security written, with the user's reason on every accepted risk; history appended;
phase unchanged.references/review.md — the checklist, ordered by OWASP Top 10:2025, with right and wrong examples.references/dynamic.md — the opt-in Strix level: authorization first, then how to run it.references/contracts.md — the .workflow/ dev-flow contract (vendored).references/contracts.md (opens in a new tab)references/dynamic.md (opens in a new tab)references/review.md (opens in a new tab)scripts/fixtures/gitleaks.json (opens in a new tab)scripts/fixtures/npm-audit.json (opens in a new tab)scripts/fixtures/osv.json (opens in a new tab)scripts/fixtures/pnpm-audit.json (opens in a new tab)scripts/fixtures/semgrep.json (opens in a new tab)scripts/scan_security.py (opens in a new tab)scripts/surfaces.py (opens in a new tab)scripts/test_scan_security.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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-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).