nextjs-architect

nextjs-architect is a skill for Claude Code, Codex from FutureJJ/claude-skills. It costs 77 tokens per session (497 once invoked), scanned A, original, MIT.

Guidance for structuring Next.js web applications, including page routing, server-side work, data loading, caching, and deployment.

In plain words
What is it for?
Designing Next.js routes, choosing static or server rendering, using Server Actions and middleware, improving image handling, and deploying applications.
Why use it?
It helps developers choose how pages should render and how data should be fetched and cached as an application grows.

Skill for Claude CodeCodex

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

Good fit Designing Next.js routes, choosing static or server rendering, using Server Actions and middleware, improving image handling, and deploying applications.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/futurejj/claude-skills/nextjs-architect"><img src="https://agentmods.dev/badge/skills/futurejj/claude-skills/nextjs-architect.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 497 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.00077 $0.00497
Opus 5.5 $0.00031 $0.00199
Sonnet 5.5 $0.00015 $0.00099
Haiku 4.5 $0.00008 $0.00050

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

Security

Grade A, and why

nextjs-architect 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 3mo 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-architect/SKILL.md · 40 lines

What it actually says

Next.js Architect

You are a Next.js expert focused on App Router patterns, production performance, and scalable architecture.

Decision Framework

  1. Rendering strategy? Static by default (SSG). Use SSR only when data must be fresh on every request. Use ISR for data that changes periodically.
  2. Data fetching? Server Components for initial data. Server Actions for mutations. Route Handlers for external API consumption.
  3. Caching? Understand the four layers: Request Memoization → Data Cache → Full Route Cache → Router Cache.

Core Principles

  • Server-first. Everything is a Server Component until it needs interactivity.
  • Colocate data fetching. Fetch in the component that needs it, not in a parent. Next.js deduplicates fetch calls automatically.
  • Parallel data loading. Use Promise.all or parallel route segments to avoid waterfalls.
  • Progressive enhancement. Forms should work without JavaScript via Server Actions.

Anti-Patterns

  • Using 'use client' at the layout level — makes everything below it a client component
  • useEffect + fetch for initial data — use Server Components instead
  • Not setting revalidate on data fetches — default is cached forever
  • Putting secrets in client components — they're shipped to the browser
  • Over-using dynamic imports when static would work

Reference Guide

Topic Reference Load When
App Router patterns references/app-router.md Routing, layouts, loading, error handling
Data & caching references/data-caching.md Fetch strategies, revalidation, cache layers
Server Actions references/server-actions.md Mutations, forms, optimistic updates
Middleware & auth references/middleware.md Auth, redirects, headers, geo-routing
Deployment references/deployment.md Vercel, Docker, self-hosted, edge
Files

What ships with it

5 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. 3mo ago First seen · 40 lines · 77 tokens per session scan A 3908bbde5eee

Subscribe to this mod's changes

nextjs-architect is a skill published in the GitHub repository FutureJJ/claude-skills (3 stars, last pushed 9mo ago), licensed MIT. It adds 77 tokens to every session and 497 once invoked, about $0.0003 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-architect compared with skills from other repositories

nextjs-architect next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nextjs-architectFutureJJ/claude-skillsSkill39mo agoMITA77Claude Code, Codex
api-sculptormturac/hermes-supercode-skillsSkill26mo agoMITA143Claude Code
auth-architectmturac/hermes-supercode-skillsSkill26mo agoMITA166Claude Code
swift-networkingjeremieb/swift-unit-test-instructionsSkill49mo agoMITA82Claude Code, Codex
offensive-api-abuseSnailSploit/Claude-RedSkill12k15d agoMITB184Claude Code, Codex
offensive-graphqlSnailSploit/Claude-RedSkill12k15d agoMITB219Claude Code, Codex
telegramsanjay3290/ai-skillsSkill4651mo agoApache-2.0A114Claude Code