/code-audit-tools:nextjs-security-stingerfrom code-audit-tools
Audits Next.js apps (13-16, App and Pages Router) for security issues: version advisories, middleware/proxy auth gaps, Server Actions and Route Handlers without auth, data exposure in client components, caching, config, and auth-library misuse. Read-only.
Ships in code-audit-tools. 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.
Designed and built by Legion Code Inc.
Every path below (guides/, references/, scripts/) is relative to the folder that contains this SKILL.md. In Claude Code that folder is ${CLAUDE_SKILL_DIR}. If that text was not replaced with a real path, find the folder yourself (for example with Glob for **/nextjs-security-stinger/SKILL.md) and use it as the skill directory in every command.
Run the Next.js-specific part of the security dimension of an /audit-my-code run. It finds the installed next version in every app of the repo and matches it against a normalized table of 61 GitHub Security Advisories (2024 to 2026-09-30, including CVE-2025-29927 and the React2Shell RSC remote code execution CVE-2025-55182), then reviews the places Next.js apps actually break: authorization that lives only in middleware or proxy.ts, Server Actions and Route Handlers that are public endpoints without auth or ownership checks, private data passed to Client Components or baked into static and cached output, NEXT_PUBLIC_ secrets, broad images.remotePatterns, dynamic-host rewrites, CSP and header gaps, and auth-library misuse (Auth.js, Clerk, Supabase SSR). It writes contract-shaped SEC-NEXT-NNN findings, metrics, and notes to the run workspace and never changes the audited repository.
basic, full, or mario tier run with nextjs in intake.json.stacks.next dependency CVEs, SQL injection in plain helpers, secrets scanning of the whole repo: security-stinger through security-wasp-drone (the generic pass runs alongside this one).dangerouslySetInnerHTML, unsafe URLs in href, client storage of tokens): the react-security pair.sveltekit-security and polyglot-security pairs.mario tier's remediation Drone.web-security-posture-stinger.scripts/next_audit_scan.py against the repo with output into <workspace>/02-security/raw/. Record versions, router type, deployment target, auth library, and data access pattern in notes-nextjs-security-wasp-drone.md.findings-nextjs-security-wasp-drone.jsonl.NEXT_PUBLIC_, props to Client Components, server-only, source maps, taint, use cache, unstable_cache, static and ISR output.next/og.| Path | Load when |
|---|---|
guides/00-scoping.md to guides/06-writing-findings.md | In order, for every run |
references/REFERENCE.md | Index of all references and the script's inputs, outputs, and limits |
references/advisory-table.md | Any version or advisory question |
references/next-advisories.json | Read by the scanner; edit only when refreshing research |
references/checks-proxy-and-auth-boundaries.md | Guide 02 |
references/checks-server-actions-and-route-handlers.md | Guide 03 |
references/checks-data-exposure-and-caching.md | Guide 04 |
references/checks-config-and-headers.md | Guide 05 |
references/ai-failure-patterns.md | End of guides 02 to 05 |
references/finding-templates.md | Guide 06 |
references/research/distilled-nextjs-security.md | Verifying a claim or settling a dispute |
| Source research archive (not shipped with the plugin) | Source-repository only; the shipped distillation summarizes it, do not require it |
scripts/next_audit_scan.py | Run once in guide 00; rerun after refreshing the advisory table |
nextjs stack.audit-my-code-stinger - Owns the run contract this skill writes against (references/audit-contract.md).security-stinger - Generic security pass that runs next to this one; overlapping findings are merged by the brief renderer.react-security pair - Client component patterns in the same app.web-security-posture-stinger - Passive outside-in checks of a deployed site, if the user wants headers confirmed live.security-stinger (core Wasp Nest, when installed) - Generic security audit pass that runs alongside this one in the security dimension.Designed and built by Legion Code Inc. Licensed under AGPL-3.0-or-later.
README.md (opens in a new tab)guides/00-scoping.md (opens in a new tab)guides/01-version-and-advisory-check.md (opens in a new tab)guides/02-proxy-middleware-and-auth-boundaries.md (opens in a new tab)guides/03-server-actions-and-route-handlers.md (opens in a new tab)guides/04-data-exposure-and-caching.md (opens in a new tab)guides/05-config-and-headers.md (opens in a new tab)guides/06-writing-findings.md (opens in a new tab)references/REFERENCE.md (opens in a new tab)references/advisory-table.md (opens in a new tab)references/ai-failure-patterns.md (opens in a new tab)references/checks-config-and-headers.md (opens in a new tab)references/checks-data-exposure-and-caching.md (opens in a new tab)references/checks-proxy-and-auth-boundaries.md (opens in a new tab)references/checks-server-actions-and-route-handlers.md (opens in a new tab)references/finding-templates.md (opens in a new tab)references/next-advisories.json (opens in a new tab)references/research/distilled-nextjs-security.md (opens in a new tab)scripts/next_audit_scan.py (opens in a new tab)scripts/test_symlinks.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/audit-my-code-stingerOrchestrates /audit-my-code. Five tiers (foundation, vibe, basic, full, mario) of codebase audits, dispatched to paired Drones and delivered as a Legion Code Inc. brief./code-audit-brief-stingerRender the Audit My Code brief, one self-contained Field Guide styled HTML file per run, from the workspace only. Escapes repo text, merges duplicates, prints cleanly to PDF./code-bloat-stingerRead-only bloat audit of any repo. jscpd duplication, knip or language dead-code tools with a spot-check, cloc size, function and closure structure, split plans, banded verdict./code-forensics-stingerReview software vendor engagements using contracts, invoices, messages and delivery records. Produce cited evidence drafts for human or counsel review. Read README.md for the guide map./code-foundation-stingerRead-only repo health audit: Wasp Nest setup, agent readiness, CI, tests, lint, lockfiles, secrets, governance. Writes contract-shaped foundation findings and measures. Never edits the repo./lovable-audit-stingerAudit Lovable-built Supabase apps: RLS denials, role-differential reads, function gating, auth posture, bundle-forensics key/endpoint extraction, findings triage, reporting.npx claudepluginhub legioncodeinc/vibe-coding-tools --plugin code-audit-toolsOther plugins' skills for the same job