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 $0.00039 $0.00249
Sonnet 5 $0.00015 $0.00099
Haiku 4.5 $0.00008 $0.00050

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

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. 9d 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 6mo ago), licensed MIT. It adds 77 tokens to every session and 497 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-08-31.

Related

Other skills, from other repositories

telegram-dev

A development guide for Telegram, a messaging platform, covering bots, web apps that run inside Telegram, and client applications. It includes messaging, payments, login, webhooks, storage, and sensor-related interfaces.

aiskillstore/marketplace · 57 tokens

api-sculptor

Designs and implements APIs: REST, GraphQL, gRPC, and WebSocket. Produces OpenAPI 3.1 specs, GraphQL SDL schemas, Protocol Buffer definitions, and working server implementations. Use this skill when the user asks about API design, endpoint structure, schema definition, versioning strategy, pagination, authentication…

mturac/hermes-supercode-skills · 143 tokens

auth-architect

Designs and implements authentication and identity systems. Covers OAuth2 and OIDC flows including authorization code, PKCE, and client credentials; JWT design including RS256 vs HS256, key rotation, token blacklisting, and refresh token strategy; RBAC and ABAC modeling; SSO with Google, GitHub, and SAML 2.0; session…

mturac/hermes-supercode-skills · 166 tokens

swift-networking

Builds a protocol-based async/await networking layer with URLSession, testable abstractions, error handling, and mock support for Swift projects. Use when user says "add networking", "create an API layer", "fetch data from API", "build a network service", "add URLSession", "implement HTTP requests", "create a REST…

jeremieb/swift-unit-test-instructions · 82 tokens

swiftui-component

Creates SwiftUI views and screens following MVVM with thin view layers, ViewModel extraction, previews, accessibility support, and loading/error states. Use when user says "create a SwiftUI view", "build a screen", "add a new view", "create a component", "build the UI for", "add a SwiftUI screen", or "make a new…

jeremieb/swift-unit-test-instructions · 81 tokens

web-ui-ux

Web UI/UX specialist guidance for designing, reviewing, and polishing web product UI (layout, usability, microcopy, accessibility, responsive behavior, forms, navigation). Use when asked to improve UI/UX, audit a page, design a screen, create a component spec, or generate HTML head/manifest/icon guidance for a web…

ssdeanx/AI-Skills · 87 tokens