nextjs-app-router

nextjs-app-router is a skill for Claude Code, Codex from LeahyCC/claude-skills. It costs 60 tokens per session (865 once invoked), scanned A, original, MIT.

A set of development guidelines for Next.js applications that use the App Router, Next.js's newer system for organizing pages, layouts, data loading, and navigation.

In plain words
What is it for?
It is for building or reviewing Next.js App Router features such as pages, layouts, server-side data access, API endpoints, loading states, and metadata.
Why use it?
It helps developers choose where code should run, handle data and errors correctly, and avoid common routing and caching mistakes.

Skill for Claude CodeCodex

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

Good fit It is for building or reviewing Next.js App Router features such as pages, layouts, server-side data access, API endpoints, loading states, and metadata.

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

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin nextjs-app-router — /plugin install nextjs-app-router after adding the marketplace above.

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-app-router

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/leahycc/claude-skills/nextjs-app-router"><img src="https://agentmods.dev/badge/skills/leahycc/claude-skills/nextjs-app-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 865 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.00060 $0.00865
Opus 5.5 $0.00024 $0.00346
Sonnet 5.5 $0.00012 $0.00173
Haiku 4.5 $0.00006 $0.00086

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

Security

Grade A, and why

nextjs-app-router 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.

skills/nextjs-app-router/SKILL.md · 49 lines

How it starts

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

Next.js App Router

Preserve the app's supported version and configuration. Prefer server rendering and direct server reads where they fit; keep interactive and live browser behavior where needed.

Establish the context

Inspect package.json, lockfile, route folders, next.config.*, and project instructions. Identify the installed Next.js/React versions, App vs Pages Router, runtime/deployment constraints, and whether Cache Components is enabled. In monorepos resolve these from the affected app. Do not upgrade packages or enable features merely to fit an example.

Prefer version-matched docs bundled at node_modules/next/dist/docs/ on Next.js 16.2+, when available. Otherwise consult official docs for the supported version. The live docs can describe a newer minor; confirm API version history and config before use. Distinguish stable APIs, experimental options, deprecations and project conventions.

Choose the relevant resource

Read only the resources needed for the task; follow their official links when a version or behavior is uncertain.

Task Resource
Server/client boundaries, composition, serialization Server Components
Reads, streaming, browser data, actions, HTTP endpoints Data fetching
Existing cache mode, Cache Components, private/remote cache, invalidation Caching
Layouts, dynamic routes, search, parallel/intercepting routes Routing
Request redirects/rewrites and optimistic auth gates Proxy
Expected errors, loading, recovery, 404 response semantics Error handling
Metadata exports, inheritance and SEO integration Metadata
Image/font configuration and loading tradeoffs Assets
Incremental Pages to App migration Migration
Deliberate major/minor upgrades Version changes

Read the full file on GitHub · 49 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 · -17 lines fe0a65d6474f
  2. 1mo ago Changed · -115 lines · -9 tokens per session d7f1fed20232
  3. 3mo ago First seen · 181 lines · 69 tokens per session scan A 95ccdefce298

Subscribe to this mod's changes

nextjs-app-router is a skill published in the GitHub repository LeahyCC/claude-skills (4 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 865 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-app-router compared with skills from other repositories

nextjs-app-router next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nextjs-app-routerLeahyCC/claude-skillsSkill4yesterdayMITA60Claude Code, Codex
Accessibility Audit HelperNotysoty/openagentskillsSkill93mo agoMITA23Claude Code, Codex
accessibilityericrisco/rsc-harnessSkill6915d agoMITA86Claude Code, Codex
kb-framework-accessibilityCommunity-Access/accessibility-agentsSkill460todayMITA37Claude Code, Codex
Axe-core Accessibility TestingPramodDutta/qaskillsSkill25328d agoMITA33Claude Code, Codex
Accessibility AuditorPramodDutta/qaskillsSkill25328d agoMITA32Claude Code, Codex
Accessibility A11y EnhancedPramodDutta/qaskillsSkill25328d agoMITA34Claude Code, Codex