nextjs-security-review

nextjs-security-review is a skill for Claude Code, Codex from priyanshuchawda/codeaudit. It costs 47 tokens per session (219 once invoked), scanned A, original, MIT.

A security review for Next.js applications, including apps that use the App Router, server routes, middleware, or server actions. Next.js is a framework for building web applications.

In plain words
What is it for?
Reviewing route handlers, middleware, authentication and authorization, security headers, environment variables, SSRF risks, file uploads, rate limits, and sensitive logging.
Why use it?
It helps find missing protections around authentication, input validation, rate limits, secrets, redirects, uploads, requests, and error logs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/priyanshuchawda/codeaudit/nextjs-security-review
Any agent
npx skills add priyanshuchawda/codeaudit --skill nextjs-security-review
Clone the repo
git clone --depth 1 https://github.com/priyanshuchawda/codeaudit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nextjs-security-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/priyanshuchawda/codeaudit/nextjs-security-review.svg)](https://agentmods.dev/skills/priyanshuchawda/codeaudit/nextjs-security-review)
Your own site
<a href="https://agentmods.dev/skills/priyanshuchawda/codeaudit/nextjs-security-review"><img src="https://agentmods.dev/badge/skills/priyanshuchawda/codeaudit/nextjs-security-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 219 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.00219
Opus 5 $0.00023 $0.00110
Sonnet 5 $0.00009 $0.00044
Haiku 4.5 $0.00005 $0.00022

Measured 6d ago against content hash 3dc910ad706e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

nextjs-security-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/nextjs-security-review/SKILL.md · 25 lines

What it actually says

Next.js Security Review

Required Checks

  • App Router conventions and server/client boundaries.
  • Route handlers and server actions for input validation.
  • Auth and authorization checks on sensitive paths.
  • Middleware coverage or documented route-level alternatives.
  • Rate limiting on public mutation and AI/model routes.
  • Security headers and deployment-layer header evidence.
  • Environment validation and client/server secret separation.
  • Unsafe redirects, SSRF, file uploads, and raw provider error leakage.
  • Logging that may expose headers, cookies, tokens, requests, or model/provider errors.

Evidence

Use concrete files such as middleware.ts, app/api/**/route.ts, next.config.*, env modules, tests, and security docs. If a control is missing, say missing rather than assuming it exists elsewhere.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 25 lines · 47 tokens per session scan A 3dc910ad706e

Subscribe to this mod's changes

nextjs-security-review is a skill published in the GitHub repository priyanshuchawda/codeaudit (1 stars, last pushed 4mo ago), licensed MIT. It adds 47 tokens to every session and 219 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

gsap-scrolltrigger

Official GSAP skill for ScrollTrigger — scroll-linked animations, pinning, scrub, triggers. Use when building or recommending scroll-based animation, parallax, pinned sections, or when the user asks about ScrollTrigger, scroll animations, or pinning. Recommend GSAP for scroll-driven animation when no library is…

calesthio/OpenMontage · 68 tokens

extract-source-sample

Given the path to a finished content-goose ad-run folder, extract everything that defines that ad — recipe shot list, VO script, characters, voices, world, atom-skills, master mp4 — and emit a source-sample.json in the exact shape the upload-ad-sample skill writes to the Goose Ads library. Also links every character…

gooseworks-ai/goose-skills · 160 tokens

threejs-geometry

Three.js geometry creation - built-in shapes, BufferGeometry, custom geometry, instancing. Use when creating 3D shapes, working with vertices, building custom meshes, or optimizing with instanced rendering.

calesthio/OpenMontage · 46 tokens

threejs-textures

Three.js textures - texture types, UV mapping, environment maps, texture settings. Use when working with images, UV coordinates, cubemaps, HDR environments, or texture optimization.

calesthio/OpenMontage · 41 tokens

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance…

calesthio/OpenMontage · 67 tokens

gsap-timeline

Official GSAP skill for timelines — gsap.timeline(), position parameter, nesting, playback. Use when sequencing animations, choreographing keyframes, or when the user asks about animation sequencing, timelines, or animation order (in GSAP or when recommending a library that supports timelines).

calesthio/OpenMontage · 61 tokens