nextjs-expert

nextjs-expert is a skill for Claude Code from iwritec0de/app-dev. It costs 111 tokens per session (1,848 once invoked), scanned A, original, MIT.

A set of guidance for building Next.js applications with the App Router, Next.js's newer system for organizing pages and server-side code. It covers routing, data loading, components, images, fonts, and configuration.

In plain words
What is it for?
Creating or changing Next.js pages, routes, server actions, data fetching, middleware, components, images, fonts, and performance settings.
Why use it?
It helps prevent common Next.js mistakes, such as using the older Pages Router, loading initial data in the browser unnecessarily, or exposing server secrets.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the app-dev plugin — 17 skills, 11 commands, 4 agents, 3 hooks shipped together

Good fit Creating or changing Next.js pages, routes, server actions, data fetching, middleware, components, images, fonts, and performance settings.

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

Made for: Claude Code.

Or install app-dev, the plugin that ships this one along with the rest of its 17 skills, 11 commands, 4 agents, 3 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/iwritec0de/app-dev/nextjs-expert"><img src="https://agentmods.dev/badge/skills/iwritec0de/app-dev/nextjs-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,848 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00111 $0.01848
Opus 5.5 $0.00044 $0.00739
Sonnet 5.5 $0.00022 $0.00370
Haiku 4.5 $0.00011 $0.00185

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

Security

Grade A, and why

nextjs-expert scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| **SSR** | `fetch(url)` with no cache options, or `{ cache: 'no-store' }` | User-specific data, real-time content |
skills/nextjs-expert/SKILL.md · 152 lines

How it starts

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

Next.js Expert Skill

You are a Next.js expert specializing in the App Router architecture introduced in Next.js 13 and matured in 14+.

Critical Rules

  • Always use App Router — never suggest or scaffold Pages Router patterns in new code; App Router is the current model
  • Server Components by default — components are Server Components unless they explicitly need client-side state, effects, or browser APIs
  • Add 'use client' only when required — event handlers, useState, useEffect, useRef, browser-only APIs, or third-party client libraries
  • Fetch data in Server Components — avoid useEffect + fetch for initial data; let async Server Components do it
  • Use next/image for all images — never use bare <img> tags; next/image handles lazy loading, sizing, and format optimization
  • Use next/font for typography — load fonts via next/font/google or next/font/local to eliminate layout shift and self-host automatically
  • Follow file-based routing conventions — use the correct special filenames (page.tsx, layout.tsx, loading.tsx, error.tsx, not-found.tsx)
  • Never expose server secrets to the client — NEXT_PUBLIC_ prefix makes an env var available in the browser bundle; everything else is server-only

App Router File Conventions

Each route segment is a directory. Special files control rendering and behavior:

File Purpose
page.tsx Renders the route UI; makes a segment publicly accessible
layout.tsx Wraps children; persists across navigations within the segment
loading.tsx Instant loading UI shown while the segment streams in (wraps in <Suspense>)
error.tsx Error boundary for the segment; must be a Client Component
not-found.tsx UI for notFound() calls or unmatched routes within the segment
route.ts Route Handler (REST API endpoint); exports HTTP method functions
middleware.ts Runs before requests match a route; lives at the project root
template.tsx Like layout but re-mounts on every navigation (rare use case)

Read the full file on GitHub · 152 lines

Files

What ships with it

3 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. 2mo ago First seen · 152 lines · 111 tokens per session scan A b679abb08819

Subscribe to this mod's changes

nextjs-expert is a skill published in the GitHub repository iwritec0de/app-dev (3 stars, last pushed 7mo ago), licensed MIT. It adds 111 tokens to every session and 1,848 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

nextjs-expert compared with skills from other repositories

nextjs-expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nextjs-expertiwritec0de/app-devSkill37mo agoMITA111Claude Code
copyharleensahni/copy-to-clipboard-pluginSkill13mo agoMITA119Claude Code
rpichris-hendrix/ai-hubSkill2yesterdaynoneA88Claude Code, Codex
gogchris-hendrix/ai-hubSkill2yesterdaynoneA74Claude Code, Codex
ytmchris-hendrix/ai-hubSkill2yesterdaynoneB74Claude Code, Codex
sxonowork-studio/notfair-pluginSkill4.2ktodayMITA211Claude Code
sheet-music-publisherbitwize-music-studio/claude-ai-music-skillsSkill6723d agoCC0-1.0A36Claude Code