nextjs

nextjs is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (721 once invoked), scanned A, original, MIT.

A set of conventions for building applications with Next.js, a React framework for web pages and server-side features. It covers page organization, data loading, caching, metadata, API endpoints, and server-side actions.

In plain words
What is it for?
Use it when creating or reviewing Next.js applications, especially those using the App Router. It guides route files, server and client components, database or API data loading, caching, SEO metadata, and mutations.
Why use it?
Next.js projects can become inconsistent or inefficient when they mix routing, data fetching, and server code in unsuitable ways. These conventions give developers a consistent structure for new and changing code.

Skill for Claude CodeCodex

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

Good fit Use it when creating or reviewing Next.js applications, especially those using the App Router. It guides route files, server and client components, database or API data loading, caching, SEO metadata, and mutations.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/nextjs"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/nextjs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 721 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.00000 $0.00721
Opus 5.5 $0.00000 $0.00288
Sonnet 5.5 $0.00000 $0.00144
Haiku 4.5 $0.00000 $0.00072

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

Security

Grade A, and why

nextjs 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 1mo 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.

- Cache with `fetch(url, { next: { revalidate: 60 } })` or `{ cache: 'no-store' }` for dynamic data.
packages/catalog/skills/nextjs/SKILL.md · 57 lines

How it starts

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

Next.js Skill

You are working on a Next.js project. Apply these conventions and best practices.

App Router (Next.js 13+)

  • Use the app/ directory with the App Router by default. Avoid pages/ for new code.
  • Server Components are the default. Add "use client" only when you need browser APIs, event handlers, or React hooks.
  • Colocate page.tsx, layout.tsx, loading.tsx, error.tsx, and not-found.tsx in route segments.
  • Use generateMetadata() for dynamic SEO metadata; use the metadata export for static metadata.
  • Prefer import { notFound } from 'next/navigation' over manual 404 handling.

Data Fetching

  • Fetch data directly in Server Components with async/await — no useEffect for server data.
  • Use Route Handlers (app/api/route.ts) instead of pages/api/ for API endpoints.
  • Cache with fetch(url, { next: { revalidate: 60 } }) or { cache: 'no-store' } for dynamic data.
  • Use unstable_cache from next/cache for caching non-fetch async operations.
  • Call revalidatePath() or revalidateTag() in Server Actions after mutations.

Server Actions

  • Mark async functions with 'use server' at the top of the file or at function level.
  • Validate all Server Action inputs with Zod before processing.
  • Return { error: string } on failure and { success: true, data: … } on success — never throw.
  • Use useFormState / useActionState (React 19) in Client Components to display Server Action results.

Routing & Navigation

  • Use <Link href="…"> from next/link for client-side navigation — never <a> for internal routes.
  • Use useRouter() from next/navigation (not next/router) in Client Components.
  • Use redirect() from next/navigation in Server Components and Server Actions.
  • Dynamic segments: [slug] for single, [...slug] for catch-all, [[...slug]] for optional.

Images & Fonts

  • Always use <Image> from next/image — never bare <img> for content images.
  • Load fonts with next/font/google or next/font/local; assign to className on <html>.

Read the full file on GitHub · 57 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. 1mo ago First seen · 57 lines · 0 tokens per session scan A 01cd34464fd5

Subscribe to this mod's changes

nextjs is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 721 tokens. 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-08-31.

Related

Other skills, from other repositories

ask-sonner

Sonner, the React toast library: mounting Toaster once, toast() calls, promise and loading toasts, updating, dismissing, styling, theming, dark mode, positioning. Use when toasts do not appear, appear twice, sit behind a modal, ignore Tailwind classes, or do nothing from a server action.

ericrisco/rsc-harness · 71 tokens

plan-review

Criteria for reviewing implementation plans against quality standards.

kdcokenny/ocx · 11 tokens

agent-dependencies

Perform one conservative dependency or toolchain upgrade in the Elements monorepo and open a validated pull request. Use for nightly or unattended dependency maintenance, outdated package checks, first-party actions/ GitHub Actions updates, and pinned mise tool updates. Use the github-dependabot skill instead when the…

NVIDIA/elements · 73 tokens

agent-debug-ci

Investigate failed scheduled or nightly GitHub Actions runs on the default branch, determine whether the failure is reproducible and repository-owned, implement the smallest evidence-backed fix, validate it, and open a pull request. Use when a failed nightly CI event starts an agent, or when the standard CI or…

NVIDIA/elements · 80 tokens

authoring-patterns

Convert validated playground templates or HTML compositions into reusable pattern files (.examples.ts) in the pattern library. Use this skill whenever the user wants to save, persist, store, or catalog a template, prototype, composition, or playground result as a reusable pattern. Trigger on phrases like "save as…

NVIDIA/elements · 106 tokens

igniteui-blazor-generate-from-image-design

Implement Blazor application views from design images using Ignite UI Blazor components. Uses MCP servers (igniteui-cli, igniteui-theming) to discover components, generate themes, and follow best practices. Triggers when the user provides a design image (screenshot, mockup, wireframe) and wants it built as a working…

IgniteUI/igniteui-cli · 127 tokens