nextjs-expert

nextjs-expert is a skill for Claude Code from personamanagmentlayer/pcl. It costs 77 tokens per session (1,287 once invoked), scanned A, original, Apache-2.0.

A guide to Next.js, a framework for building React web applications with server and browser rendering. It covers routing, server and client components, API endpoints, and several ways to generate page content.

In plain words
What is it for?
Use it to build or review Next.js applications, including App Router projects, server-rendered pages, static sites, API routes, loading and error states, and image or font handling.
Why use it?
It helps choose between rendering pages at build time, on each request, or in the browser. It also reduces confusion around Next.js routing and the division between server and client code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to build or review Next.js applications, including App Router projects, server-rendered pages, static sites, API routes, loading and error states, and image or font handling.

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

Made for: Claude Code.

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/personamanagmentlayer/pcl/nextjs-expert/github.svg)](https://agentmods.dev/skills/personamanagmentlayer/pcl/nextjs-expert)
Your own site
<a href="https://agentmods.dev/skills/personamanagmentlayer/pcl/nextjs-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/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/personamanagmentlayer/pcl/nextjs-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/nextjs-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,287 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.00077 $0.01287
Opus 5 $0.00039 $0.00643
Sonnet 5 $0.00015 $0.00257
Haiku 4.5 $0.00008 $0.00129

Measured 4d ago against content hash 62723685b351, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

nextjs-expert 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 4d 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.

stdlib/frameworks/nextjs-expert/SKILL.md · 185 lines

How it starts

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

Next.js Expert

You are an expert in Next.js framework, specializing in Server-Side Rendering (SSR), Static Site Generation (SSG), the App Router architecture, React Server Components, and building production-ready full-stack applications.

Core Concepts

Next.js Fundamentals

  • File-Based Routing: Automatic routing from filesystem
  • Hybrid Rendering: SSR, SSG, ISR, CSR in one app
  • API Routes: Built-in backend endpoints
  • Image Optimization: Automatic image processing
  • Font Optimization: Self-hosting web fonts
  • Code Splitting: Automatic route-based splitting

App Router (Next.js 13+)

  • Server Components: React components that run on server
  • Client Components: Interactive React components
  • Layouts: Shared UI across routes
  • Loading States: Instant loading UI
  • Error Handling: Error boundaries
  • Streaming: Progressive rendering

Rendering Strategies

  • Static Generation (SSG): Pre-render at build time
  • Server-Side Rendering (SSR): Pre-render on each request
  • Incremental Static Regeneration (ISR): Update static pages
  • Client-Side Rendering (CSR): Render in browser
  • Streaming SSR: Stream HTML progressively
  • Partial Prerendering: Mix static and dynamic

Data Fetching

  • Server Components: Fetch directly in components
  • Route Handlers: API endpoints
  • Server Actions: RPC-style mutations
  • Suspense: Handle async components
  • Caching: Automatic request deduplication
  • Revalidation: Time-based or on-demand

Best Practices

App Router Architecture

  • Use Server Components by default
  • Only mark components as 'use client' when needed
  • Colocate data fetching with components
  • Leverage Suspense for loading states
  • Implement proper error boundaries
  • Use layouts for shared UI

Performance

  • Optimize images with next/image
  • Enable font optimization
  • Implement code splitting
  • Use dynamic imports for heavy components
  • Configure proper caching strategies
  • Monitor Core Web Vitals

Read the full file on GitHub · 185 lines

Files

What ships with it

1 file 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. 4d ago First seen · 185 lines · 77 tokens per session scan A 62723685b351

Subscribe to this mod's changes

nextjs-expert is a skill published in the GitHub repository personamanagmentlayer/pcl (40 stars, last pushed yesterday), licensed Apache-2.0. It adds 77 tokens to every session and 1,287 once invoked, about $0.0004 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-05.

Related

Other skills, from other repositories