nextjs-modern

nextjs-modern is a skill for Claude Code, Codex from clubpay/ronykit. It costs 80 tokens per session (2,369 once invoked), scanned A, original, BSD-3-Clause.

A set of guidelines for building and reviewing web applications with Next.js 16, a React framework for creating websites and web services. It focuses on the App Router and on deciding which code runs on the server or in the browser.

In plain words
What is it for?
Creating or reviewing routes, layouts, pages, server and client components, data loading, form actions, caching, and SEO metadata in Next.js apps.
Why use it?
It helps keep server-only code and secrets out of browser code while choosing suitable patterns for data fetching, forms, caching, and page metadata.

Skill for Claude CodeCodex

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

Good fit Creating or reviewing routes, layouts, pages, server and client components, data loading, form actions, caching, and SEO metadata in Next.js apps.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/clubpay/ronykit/nextjs-modern"><img src="https://agentmods.dev/badge/skills/clubpay/ronykit/nextjs-modern.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,369 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.00080 $0.02369
Opus 5.5 $0.00032 $0.00948
Sonnet 5.5 $0.00016 $0.00474
Haiku 4.5 $0.00008 $0.00237

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

Security

Grade A, and why

nextjs-modern 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 28d 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.

ronyup/internal/skeleton/skills/nextjs-modern/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.

Modern Next.js (App Router)

Apply these conventions when building or reviewing Next.js App Router (app/) codebases.

1. Server Components by default; Client Components at the leaves

  • Every file in app/ is a React Server Component (RSC) unless marked with 'use client'. Keep layouts, pages, and data-fetching wrappers on the server.
  • Push 'use client' as far down the component tree as possible — only on interactive leaves that use useState, useEffect, event handlers, or browser APIs.
  • Compose Server inside Client via children: A Client Component (e.g., an animated modal or collapsible sidebar) can render Server Components without turning them into client bundles when passed as children or slots.
  • Serialization boundary: Props passed from Server → Client must be serializable (plain objects, primitives, Promises, Server Actions — never class instances or unserializable functions).

2. Async request APIs (Next.js 15+)

In Next.js 15+, params, searchParams, cookies(), headers(), and draftMode() are asynchronous. Always await them:

export default async function OrderPage({
  params,
  searchParams,
}: {
  params: Promise<{ id: string }>;
  searchParams: Promise<{ tab?: string }>;
}) {
  const { id } = await params;
  const { tab = 'overview' } = await searchParams;
  // ...
}

3. Data fetching & parallel streaming

  • Colocate reads where needed and wrap shared server reads in React.cache() so layout, generateMetadata, and page deduplicate within a single request. React.cache() is request deduplication, not a cross-request cache.
  • Use Cache Components for explicit cross-request caching (Next.js 16): When cacheComponents is enabled, mark async functions or components with 'use cache', then set cacheLife(...) and cacheTag(...) from next/cache. Read cookies(), headers(), and other request-time values outside the cached scope and pass them in as serializable arguments.
  • Eliminate waterfalls: Start independent fetches in parallel with Promise.all([getUser(id), getOrders(id)]) or split slow secondary sections into separate async Server Components wrapped in <Suspense fallback={<Skeleton />}>.
  • Never call your own Route Handlers (app/api/...) from a Server Component over HTTP — call the underlying service/SDK or typed RonyKit stub directly.
  • Pass Promises to Client Components and unwrap them with React 19's use(promise) when the shell should render immediately.

Read the full file on GitHub · 185 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. 28d ago Changed · +14 lines ea5543ba3c07
  2. 1mo ago Changed · +61 lines · +30 tokens per session e60da6371195
  3. 3mo ago First seen · 110 lines · 50 tokens per session scan A 37e5d126066f

Subscribe to this mod's changes

nextjs-modern is a skill published in the GitHub repository clubpay/ronykit (38 stars, last pushed 28d ago), licensed BSD-3-Clause. It adds 80 tokens to every session and 2,369 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-30.

Related

nextjs-modern compared with skills from other repositories

nextjs-modern next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nextjs-modernclubpay/ronykitSkill3828d agoBSD-3-ClauseA80Claude Code, Codex
ast-introspectionpilinux/gorestSkill507yesterdayMITA28Claude Code, Codex
build-runpilinux/gorestSkill507yesterdayMITA22Claude Code, Codex
ci-orchestratorpilinux/gorestSkill507yesterdayMITA32Claude Code, Codex
config-loader-helperpilinux/gorestSkill507yesterdayMITA25Claude Code, Codex
db-infra-mockspilinux/gorestSkill507yesterdayMITA27Claude Code, Codex
migration-helperpilinux/gorestSkill507yesterdayMITA26Claude Code, Codex