nextjs

nextjs is a skill for Claude Code, Codex from nimadorostkar/Claude-Skills-collection. It costs 35 tokens per session (1,122 once invoked), scanned A, original, MIT.

A guide for building Next.js applications with the App Router. Next.js is a React framework that can render pages on the server, in the browser, or in a mixture of both.

In plain words
What is it for?
Use it when choosing server or client components, setting up data loading and caching, adding server actions, streaming pages, or controlling how pages render.
Why use it?
It helps avoid confusing server and browser code, stale cached data, incorrect rendering choices, and mutations that fail to refresh the right content.

Skill for Claude CodeCodex

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

Good fit Use it when choosing server or client components, setting up data loading and caching, adding server actions, streaming pages, or controlling how pages render.

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

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/nimadorostkar/claude-skills-collection/nextjs/github.svg)](https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/nextjs)
Your own site
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/nextjs"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/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/nimadorostkar/claude-skills-collection/nextjs"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/nextjs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,122 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.00035 $0.01122
Opus 5 $0.00017 $0.00561
Sonnet 5 $0.00007 $0.00224
Haiku 4.5 $0.00003 $0.00112

Measured 8d ago against content hash 82df01a35cb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 8d 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/frontend/nextjs/SKILL.md · 116 lines

How it starts

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

Next.js

Purpose

Build Next.js applications where the server/client boundary is drawn deliberately, caching is understood rather than fought, and the rendering strategy matches what the page actually needs.

When to Use

  • Building or reviewing a Next.js App Router application.
  • Deciding what renders on the server versus the client.
  • Debugging stale data or unexpectedly dynamic rendering.
  • Implementing mutations with server actions.

Capabilities

  • Server and client component composition.
  • Data fetching, caching, and revalidation (time-based and tag-based).
  • Server actions for mutations, with validation and revalidation.
  • Streaming with Suspense and loading boundaries.
  • Rendering strategy: static, dynamic, ISR, partial prerendering.

Inputs

  • The page, its data dependencies, and how fresh each must be.
  • Which parts are genuinely interactive.
  • Auth model and whether the page is personalized.

Outputs

  • A component tree with "use client" pushed as far down as possible.
  • Explicit cache and revalidation settings per fetch.
  • Mutations that revalidate exactly what they changed.

Workflow

  1. Default to server components — They ship no JavaScript. Add "use client" only where you need state, effects, or browser APIs — and add it to the leaf, not the page.
  2. Fetch where you render — Fetch data in the component that needs it. Requests are deduplicated within a render pass; prop-drilling data down from the page is unnecessary.
  3. Set the cache explicitly — Every fetch gets a deliberate cache or next.revalidate. Relying on the framework default is how you ship stale prices.
  4. Stream the slow parts — Wrap slow sections in <Suspense> with a meaningful fallback so the shell renders immediately.
  5. Mutate with server actions — Validate the input (it is a public endpoint, whatever it looks like), perform the write, then revalidateTag or revalidatePath for exactly what changed.

Best Practices

  • "use client" at the top of a page turns the entire subtree into client components. Push it to the interactive leaf — the button, not the layout.
  • A server action is an HTTP endpoint. It has no implicit authorization. Check the session inside it, every time.
  • Reading cookies(), headers(), or searchParams opts the route into dynamic rendering. If a page unexpectedly stopped being static, this is why.
  • Tag-based revalidation (revalidateTag) is far more precise than path-based. Tag by entity, invalidate on write.
  • Never put a secret in a component that could be a client component. If it is imported by anything with "use client", it ships to the browser.
  • Use loading.tsx and error.tsx at every route segment. The defaults are a blank screen and a crash.

Read the full file on GitHub · 116 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. 8d ago First seen · 116 lines · 35 tokens per session scan A 82df01a35cb4

Subscribe to this mod's changes

nextjs is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (26 stars, last pushed 24d ago), licensed MIT. It adds 35 tokens to every session and 1,122 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-09-03.

Related

Other skills, from other repositories

airflow-plugins

Builds Airflow 3.1+ plugins that embed FastAPI apps, custom UI pages, React components, middleware, macros, and operator links directly into the Airflow UI. Use when building anything custom inside Airflow 3.1+ that involves Python and a browser-facing interface - creating an Airflow plugin, adding a custom UI page or…

astronomer/agents · 147 tokens

nextjs-patterns

Next.js best practices, server components, app router patterns, caching strategies, and full-stack architecture.

cosmicstack-labs/mercury-agent-skills · 24 tokens

tanstack-start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 +…

jezweb/claude-skills · 115 tokens

helius-phantom

Build frontend Solana applications with Phantom Connect SDK and Helius infrastructure. Covers React, React Native, and browser SDK integration, transaction signing via Helius Sender, API key proxying, token gating, NFT minting, crypto payments, real-time updates, and secure frontend architecture.

sendaifun/skills · 62 tokens

fusecore

Use when creating modules, understanding FuseCore structure, or implementing features in a FuseCore modular-monolith Laravel project.

fusengine/agents · 27 tokens

fullstack-guide

A development guide for building full-stack applications with React and TypeScript on the frontend and Node.js and Supabase on the backend. It covers component structure, data loading, routing, styling, performance, and TypeScript practices.

VidyFoo/antigravity-skill-engine · 74 tokens