nextjs

nextjs is a skill for Claude Code, Codex from ndisisnd/cook. It costs 40 tokens per session (1,869 once invoked), scanned A, original, MIT.

A coding and review guide for modern Next.js applications, a React framework for building web applications. It covers the newer App Router, server-rendered components, server actions, data access, caching, and older Pages Router projects.

In plain words
What is it for?
Use it when writing or reviewing Next.js pages, layouts, forms, data loading, API routes, and components that use the App Router or Pages Router.
Why use it?
It helps developers choose the right server or browser-side boundary and avoid mixing rules from Next.js’s two routing systems.

Skill for Claude CodeCodex

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

Good fit Use it when writing or reviewing Next.js pages, layouts, forms, data loading, API routes, and components that use the App Router or Pages Router.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ndisisnd/cook/nextjs
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 ndisisnd/cook --skill nextjs
Clone the repo
git clone --depth 1 https://github.com/ndisisnd/cook

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ndisisnd/cook/nextjs/github.svg)](https://agentmods.dev/skills/ndisisnd/cook/nextjs)
Your own site
<a href="https://agentmods.dev/skills/ndisisnd/cook/nextjs"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/nextjs/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ndisisnd/cook/nextjs"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/nextjs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,869 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.
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.00040 $0.01869
Opus 5.5 $0.00016 $0.00748
Sonnet 5.5 $0.00008 $0.00374
Haiku 4.5 $0.00004 $0.00187

Measured 1mo ago against content hash d3310e94c44a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nextjs 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 1mo 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.

standards/nextjs/SKILL.md · 153 lines

How it starts

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

Next.js

Targets Next.js 16.x, React 19.x, Node.js 24 LTS (Next requires 20.9+, which is EOL). Generic React rules: react/SKILL.md.

Apply the rules below, then load only the refs/*.md that _INDEX.md matches. App Router is the default; for a pages/-only project load refs/pages-router.md and apply no app/ rules.

Cache Model Decision

Check next.config.* for cacheComponents: true before writing caching code. One model per project.

  • On - data is dynamic by default. Cache with 'use cache' + cacheLife() + cacheTag(). Do not export dynamic, revalidate, fetchCache, dynamicParams, runtime. Wrap request-time reads (cookies(), headers(), searchParams) in <Suspense>.
  • Off (legacy) - cache with fetch options (force-cache, next: { revalidate, tags }) and segment config; no 'use cache'.

Invalidation: revalidateTag(tag, 'max') (two arguments required in 16), updateTag(tag) and refresh() (Server Actions only), revalidatePath(path).

P0 - Server & Client Components

  • Keep pages and layouts as Server Components unless they need hooks, browser APIs, or event handlers. Push 'use client' to interactive leaves.
  • Compose Server Components through Client Component children; never import one into a Client Component.
  • Server-to-Client props must be React-serializable. Allowed: primitives, bigint, Symbol.for() symbols, plain objects, arrays, Date, Map, Set, typed arrays, Promises, JSX, and Server Functions. Forbidden: class instances, non-Server functions, unregistered symbols, and null-prototype objects.
  • Never pass secrets or raw ORM/DB objects to the client. Use DTOs and import 'server-only'.
  • Avoid browser-only or non-deterministic values (window, Date.now(), Math.random()) in initial render.

P0 - Data Fetching & Access

  • Fetch in async Server Components or call DAL/service functions directly. Never fetch your own /api route from server code.
  • Use server-only DAL modules that verify auth, return DTOs, and dedupe with React cache().
  • Client Components reach the server only through Server Actions or Route Handlers.

Read the full file on GitHub · 153 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. 1mo ago Changed · -26 lines d3310e94c44a
  2. 3mo ago First seen · 179 lines · 40 tokens per session scan A fafb07edba04

Subscribe to this mod's changes

nextjs is a skill published in the GitHub repository ndisisnd/cook (2 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 1,869 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-31.

Related

nextjs compared with skills from other repositories

nextjs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nextjsndisisnd/cookSkill21mo agoMITA40Claude Code, Codex
frontend-architecture-plannerytvee-dev/webdev-agent-kitSkill728d agoApache-2.0A47Claude Code, Codex
frontend-layout-implementerytvee-dev/webdev-agent-kitSkill728d agoApache-2.0A50Claude Code, Codex
react-expertJeffallan/claude-skillsSkill13ktodayMITA79Claude Code
moai-design-toolsmodu-ai/moai-adkSkill1.3ktodayApache-2.0A45Claude Code
frontendcode-yeongyu/oh-my-openagentSkill71ktodaynoneA79Claude Code, Codex
moai-domain-uiuxmodu-ai/moai-adkSkill1.3ktodayApache-2.0A49Claude Code