nextjs-expert

nextjs-expert is an agent for Claude Code from GoogilyBoogily/googilyboogily-claude-power-tools. It costs 64 tokens per session (1,361 once invoked), scanned A, original, MIT.

A specialist for Next.js 13–15 applications using the App Router, including server components and server-side data handling.

In plain words
What is it for?
Use it for hydration errors, server actions, route handlers, middleware, caching, ISR, static or server rendering, and deployment issues.
Why use it?
It helps resolve Next.js-specific routing, rendering, caching, build, and deployment problems.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the framework-agents plugin — 2 agents shipped together

Good fit Use it for hydration errors, server actions, route handlers, middleware, caching, ISR, static or server rendering, and deployment issues.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/googilyboogily/googilyboogily-claude-power-tools/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.

Clone the repo
git clone --depth 1 https://github.com/GoogilyBoogily/googilyboogily-claude-power-tools

Made for: Claude Code.

Or install framework-agents, the plugin that ships this one along with the rest of its 2 agents.

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/agents/googilyboogily/googilyboogily-claude-power-tools/nextjs-expert/github.svg)](https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/nextjs-expert)
Your own site
<a href="https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/nextjs-expert"><img src="https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/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/agents/googilyboogily/googilyboogily-claude-power-tools/nextjs-expert"><img src="https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/nextjs-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,361 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.00064 $0.01361
Opus 5 $0.00032 $0.00681
Sonnet 5 $0.00013 $0.00272
Haiku 4.5 $0.00006 $0.00136

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

fetch(url, { next: { revalidate: 3600 } }) // ISR: cached, revalidates after 1h
plugins/framework-agents/agents/nextjs-expert.md · 136 lines

How it starts

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

Next.js Expert

Expert in Next.js 13-15 App Router: Server Components, data fetching, caching, and deployment.

Step 0: Route or Stay

If the issue is not Next.js-specific, say so and stop:

  • React hooks / state / component patterns --> react-expert, STOP
  • TypeScript config or type errors --> typescript-expert, STOP
  • Database queries or schema --> database-expert, STOP
  • CSS / styling / Tailwind --> css-styling-expert, STOP
  • Testing --> testing-expert, STOP
  • Docker / deployment infra --> docker-expert, STOP

Boundary: If the question is purely React with no Next.js routing, RSC, or data fetching, you MUST redirect and STOP. Do not provide generic React guidance.

Step 1: Detect Environment

node -e "console.log(require('./package.json').dependencies?.next || 'Not found')" 2>/dev/null
[ -d "app" ] && echo "App Router" || echo "No app/ directory"
cat next.config.mjs 2>/dev/null || cat next.config.js 2>/dev/null || cat next.config.ts 2>/dev/null

Step 2: Diagnose and Fix

Match the category below. Apply the minimal fix first, escalate only if needed.


Server Components & 'use client' Boundaries

Error: Cannot use useState in Server Component / window is not defined -- hooks or browser APIs in a file without 'use client'.

grep -rn "useState\|useEffect\|useRef\|useContext" app/ --include="*.tsx" --include="*.ts" | grep -v "use client"

Fixes: 1) Add 'use client' to that component. 2) Push it to the smallest leaf. 3) Extract interactive bits into a separate Client Component. Never mark layout.tsx as 'use client' -- it opts the entire subtree out of RSC.

Hydration Errors

Error: Hydration failed because the server rendered HTML didn't match the client

Cause Fix
Date.now() / Math.random() in render Move to useEffect or pass from server as prop
Browser extensions injecting DOM suppressHydrationWarning on <html>/<body>
Conditional typeof window render useEffect + state flag for client-only UI
<p> inside <p>, <div> inside <p> Fix invalid HTML nesting

Read the full file on GitHub · 136 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. 9d ago First seen · 136 lines · 64 tokens per session scan A 6607842a561b

Subscribe to this mod's changes

nextjs-expert is an agent published in the GitHub repository GoogilyBoogily/googilyboogily-claude-power-tools (2 stars, last pushed 4mo ago), licensed MIT. It adds 64 tokens to every session and 1,361 once invoked, about $0.0003 per session on Opus 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-09-03.

Related

Other agents, from other repositories

CMS Developer

Drupal and WordPress specialist for theme development, custom plugins/modules, content architecture, and code-first CMS implementation.

SHAdd0WTAka/Zen-Ai-Pentest · 24 tokens

Realtime Collaboration Engineer

Expert realtime systems engineer for WebSocket/SSE infrastructure, presence, CRDT and OT-based collaborative editing, offline-first sync engines, and fan-out scaling with reconnect-safe protocols.

SHAdd0WTAka/Zen-Ai-Pentest · 39 tokens

Senior Developer

Premium implementation specialist - Masters Laravel/Livewire/FluxUI, advanced CSS, Three.js integration.

SHAdd0WTAka/Zen-Ai-Pentest · 22 tokens

laravel-vue-developer

Build full-stack Laravel applications with Vue3 frontend. Expert in Laravel APIs, Vue3 composition API, Pinia state management, and modern full-stack patterns. Use PROACTIVELY for Laravel backend development, Vue3 frontend components, API integration, or full-stack architecture.

davepoon/buildwithclaude · 61 tokens

Section 508 Accessibility Specialist

Expert U.S. federal Section 508 accessibility engineer (the 508 legal baseline is WCAG 2.0 Level AA; WCAG 2.1/2.2 AA are recommended best practice, and ADA Title II requires WCAG 2.1 AA for state/local government) specializing in accessible web development, ARIA implementation, screen reader testing…

SHAdd0WTAka/Zen-Ai-Pentest · 125 tokens

Drupal Shopping Cart Engineer

Expert Drupal e-commerce engineer specializing in Drupal Commerce for product catalog management, payment gateway integration, checkout workflow design, order management, tax and promotion configuration, and high-reliability storefront delivery on Drupal 10/11.

SHAdd0WTAka/Zen-Ai-Pentest · 48 tokens