nextjs-16

nextjs-16 is a skill for Claude Code from prowler-cloud/prowler. It costs 55 tokens per session (1,362 once invoked), scanned A, original, Apache-2.0.

A guide for building applications with Next.js 16's App Router, the file-based system for defining pages, layouts, server code, and browser code.

In plain words
What is it for?
It helps developers structure app/ routes, build pages and layouts, create server actions and API handlers, configure request proxies, and manage caching and loading behavior.
Why use it?
It clarifies which code runs on the server or in the browser and how Next.js 16 handles request logic, caching, loading states, errors, and streamed content. It also prevents using the older middleware approach where proxy.ts is expected.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps developers structure app/ routes, build pages and layouts, create server actions and API handlers, configure request proxies, and manage caching and loading behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prowler-cloud/prowler/nextjs-16
About the project

Prowler is an open-source cloud security platform that checks cloud environments for security issues and compliance with standards such as CIS, NIST, and GDPR. Security teams use it to assess configurations, prioritize findings, produce reports, and guide remediation.

prowler-cloud/prowler · 15,347 stars · on GitHub · prowler.com

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.

Any agent
npx skills add prowler-cloud/prowler --skill nextjs-16
Clone the repo
git clone --depth 1 https://github.com/prowler-cloud/prowler

Made for: Claude Code.

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-16

README.md
[![agentmods](https://agentmods.dev/badge/skills/prowler-cloud/prowler/nextjs-16/github.svg)](https://agentmods.dev/skills/prowler-cloud/prowler/nextjs-16)
Your own site
<a href="https://agentmods.dev/skills/prowler-cloud/prowler/nextjs-16"><img src="https://agentmods.dev/badge/skills/prowler-cloud/prowler/nextjs-16/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nextjs-16

Your own site · 80×15
<a href="https://agentmods.dev/skills/prowler-cloud/prowler/nextjs-16"><img src="https://agentmods.dev/badge/skills/prowler-cloud/prowler/nextjs-16.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,362 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00055 $0.01362
Opus 5.5 $0.00022 $0.00545
Sonnet 5.5 $0.00011 $0.00272
Haiku 4.5 $0.00006 $0.00136

Measured 13d ago against content hash 954da5df452a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nextjs-16 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 13d 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-16/SKILL.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

App Router File Conventions

app/
├── layout.tsx           # Root layout (required)
├── page.tsx             # Home page (/)
├── loading.tsx          # Loading UI (Suspense)
├── error.tsx            # Error boundary
├── not-found.tsx        # 404 page
├── (auth)/              # Route group (no URL impact)
│   ├── login/page.tsx   # /login
│   └── signup/page.tsx  # /signup
├── api/
│   └── route.ts         # API handler
└── _components/         # Private folder (not routed)

Next.js 16 Notes

  • Next.js ships docs for the installed version in ui/node_modules/next/dist/docs/ (01-app/, 03-architecture/...). Read the relevant page before version-sensitive work; it beats training data and this summary.
  • Prowler UI runs Next.js 16.4 with reactCompiler: true and Turbopack (ui/next.config.js). Cache Components (cacheComponents) is NOT enabled.
  • Never pass functions from a Server Component to a Client Component (for example a labelFormatter in filter config). TypeScript and jsdom tests accept it; the real page throws.
  • Request APIs are async: await cookies(), await headers(), and params / searchParams are Promises in pages, layouts and route handlers.
  • Use proxy.ts for request-boundary logic. middleware.ts is deprecated in Next.js 16. Prowler's ui/proxy.ts is export default auth(async (req) => ...) (NextAuth v5 wrapper).
  • proxy.ts runs on the Node.js runtime and cannot be configured for Edge.
  • Keep proxy.ts matchers narrow. Exclude api, static files, and image assets unless the route explicitly needs proxy logic.
  • Route Handlers in app/api/**/route.ts are the right fit for health checks, webhooks, backend-for-frontend endpoints, and server-only proxy calls.

Server Components (Default)

// No directive needed - async by default
export default async function Page() {
  const data = await db.query();
  return <Component data={data} />;
}

Server Actions

"use server";

import { revalidatePath } from "next/cache";
import { redirect } from "next/navigation";

export async function createUser(formData: FormData) {
  const name = formData.get("name") as string;

  await db.users.create({ data: { name } });

  revalidatePath("/users");
  redirect("/users");
}

Read the full file on GitHub · 187 lines

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. 13d ago Changed · +2 lines 954da5df452a
  2. 25d ago Changed · +24 lines 42011a6a0dae
  3. 3mo ago First seen · 161 lines · 55 tokens per session scan A 49f90d9430e6

Subscribe to this mod's changes

nextjs-16 is a skill published in the GitHub repository prowler-cloud/prowler (15,347 stars, last pushed 3d ago), licensed Apache-2.0. It adds 55 tokens to every session and 1,362 once invoked, about $0.0002 per session on Opus 5.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-30.

Related

nextjs-16 compared with skills from other repositories

nextjs-16 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nextjs-16prowler-cloud/prowlerSkill15k3d agoApache-2.0A55Claude Code
performing-aws-account-enumeration-with-scout-suitexalgorix/xalgorixSkill1.5kyesterdayApache-2.0A39Claude Code, Codex
shannonKeygraphHQ/shannonSkill52k4d agoAGPL-3.0A51Claude Code
ponytail-sec-auditandypitcher/ponytail-secSkill62todayMITA73Claude Code
ponytail-secandypitcher/ponytail-secSkill62todayMITA73Claude Code
ponytail-sec-triageandypitcher/ponytail-secSkill62todayMITA60Claude Code
cis-aws-database-3.11CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A17Claude Code, Codex