nextjs

nextjs is a skill for Claude Code, Codex from ericrisco/rsc-harness. It costs 90 tokens per session (5,134 once invoked), scanned A, original, MIT.

A guide for building and maintaining web apps with Next.js App Router, a part of Next.js that uses server-rendered pages and modern routing. It covers server and browser code boundaries, server actions, caching, authentication, metadata, and performance.

In plain words
What is it for?
Use it to build, review, test, secure, and improve Next.js App Router applications, including their page metadata, authentication, route handlers, and loading performance.
Why use it?
It helps prevent mistakes caused by mixing server and browser code or using the wrong caching rules for the Next.js version. It also gives a clear process for planning larger changes before coding.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is hand off to `../specify/SKILL.md` (brainstorm → spec → plan → tasks); it routes back here once the.

Good fit Use it to build, review, test, secure, and improve Next.js App Router applications, including their page metadata, authentication, route handlers, and loading performance.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ericrisco/rsc-harness
agentmods
npx agentmods add skills/ericrisco/rsc-harness/nextjs

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/ericrisco/rsc-harness/nextjs.svg)](https://agentmods.dev/skills/ericrisco/rsc-harness/nextjs)
Your own site
<a href="https://agentmods.dev/skills/ericrisco/rsc-harness/nextjs"><img src="https://agentmods.dev/badge/skills/ericrisco/rsc-harness/nextjs.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,134 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 warn 7 Sept 2026
SkillSpector: 2 findings, up to medium
  • medium Data Exfiltration · line 241
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 244
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00090 $0.05134
Opus 5 $0.00045 $0.02567
Sonnet 5 $0.00018 $0.01027
Haiku 4.5 $0.00009 $0.00513

Measured 3d ago against content hash 8039b2f7d927, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/verify.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/SKILL.md · 401 lines

How it starts

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

Next.js App Router — RSC, Server Actions, React 19, TypeScript

Build, review, test, secure and optimize App Router apps, handling both the Next.js 15 (uncached-by-default) and Next.js 16 (use cache) caching models correctly.

SDD gate — read before writing code. If this fired on a new, non-trivial feature or behaviour change and there is no approved spec + plan under 02-DOCS/wiki/sdd/, STOP and hand off to ../specify/SKILL.md (brainstorm → spec → plan → tasks); it routes back here once the plan is approved. Build directly only for a genuinely one-line / low-risk change. Method: ../sdd/SKILL.md.

Not this skill: Pages Router (pages/) — note the difference, defer to the Next.js Pages docs. A pure React SPA (Vite/CRA) → ../react/SKILL.md; React Native / Expo → ../react-native/SKILL.md; a generic React question with no Next/RSC dimension → keep it brief, from references/react.md. Non-Next backends → ../fastapi/SKILL.md, ../go/SKILL.md; the data layer behind the DAL → ../postgresdb/SKILL.md; framework-agnostic security → ../secure-coding/SKILL.md, complemented here, never duplicated.

First: detect the project's version & caching model

Run this before prescribing or reviewing any caching, middleware, or React-Compiler behavior. Never mix v15 and v16 advice.

  1. Read package.json → the next version.
  2. Read next.config.{ts,js,mjs} for cacheComponents, ppr, reactCompiler, experimental.
  3. proxy.ts at the root ⇒ v16; middleware.ts ⇒ v15 (or v16 not yet migrated).
  4. cacheComponents: true OR any "use cache" in the tree ⇒ Cache Components model (opt-in caching). Otherwise ⇒ v15 model (uncached fetch by default, revalidate/tags).

Do not flag proxy.ts, use cache, or cacheComponents as errors — they are correct on Next.js 16.

Signal in repo Model Caching API to use
cacheComponents: true or any "use cache" Cache Components (v16) "use cache" + cacheLife() + cacheTag()/updateTag()
middleware.ts, no cacheComponents v15 baseline fetch(..., { next: { revalidate, tags } }), unstable_cache, revalidateTag
proxy.ts present v16 routing middleware logic lives in proxy.ts (NOT a security boundary)
reactCompiler: true Compiler on drop manual useMemo/useCallback/React.memo (review-only)

Read the full file on GitHub · 401 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 401 lines · 90 tokens per session scan A 8039b2f7d927

Subscribe to this mod's changes

nextjs is a skill published in the GitHub repository ericrisco/rsc-harness (65 stars, last pushed 2d ago), licensed MIT. It adds 90 tokens to every session and 5,134 once invoked, about $0.0005 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-09-03.

Related

Other skills, from other repositories