nextjs-app-router-expert

nextjs-app-router-expert is a skill for Cursor from roedyrustam/vibes-plug. It costs 55 tokens per session (4,652 once invoked), scanned A, original, MIT.

A guide to building applications with Next.js 15's App Router, including server-rendered components, server actions, routing, streaming, and caching.

In plain words
What is it for?
Use it to design or migrate Next.js applications, build modal and nested routes, debug cache behavior, and add streaming or partially pre-rendered interfaces.
Why use it?
It helps resolve the architectural and caching decisions that arise when moving from Next.js's older pages-based routing system to the App Router.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the vibes-plug plugin — 176 skills, 9 agents, 2 MCP servers shipped together

Good fit Use it to design or migrate Next.js applications, build modal and nested routes, debug cache behavior, and add streaming or partially pre-rendered interfaces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roedyrustam/vibes-plug/nextjs-app-router-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.

Any agent
npx skills add roedyrustam/vibes-plug --skill nextjs-app-router-expert
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

Made for: Cursor.

Or install vibes-plug, the plugin that ships this one along with the rest of its 176 skills, 9 agents, 2 MCP servers.

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-app-router-expert

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/nextjs-app-router-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/nextjs-app-router-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,652 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 warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 75
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 78
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 81
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00055 $0.04652
Opus 5.5 $0.00022 $0.01861
Sonnet 5.5 $0.00011 $0.00930
Haiku 4.5 $0.00006 $0.00465

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

Security

Grade A, and why

nextjs-app-router-expert 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 6d 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.

.cursor/skills/nextjs-app-router-expert/SKILL.md · 484 lines

How it starts

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

Next.js 15 App Router Expert (2026 Edition)

English | Bahasa Indonesia


English

Orchestration & Integration

  • Upstream Ideation & System Design: brainstorming, zero-to-prod-orchestrator (Phase 3 & Phase 4).
  • Frontend & Design System: senior-frontend, design-system-architect, tailwind-expert, modern-css-native-expert.
  • State & Data Fetching: tanstack-query-expert, form-validation-expert, database-orm-expert.
  • Quality & Performance: performance-web-vitals, e2e-testing-expert, anti-slop, visual-ui-auditor.

Description

Production-grade architectural guide for Next.js 15+ App Router and React 19. Enforces modern standards: asynchronous request APIs (await params, await cookies()), function-level 'use cache' with cacheLife and cacheTag, Partial Prerendering (PPR), React Server Actions with useActionState and useOptimistic, Parallel & Intercepting Routes, and streaming layouts via <Suspense>.

Trigger Conditions

  • Architecting new Next.js 15+ applications or migrating legacy pages/ directory code.
  • Handling asynchronous request parameters (params, searchParams, cookies, headers).
  • Implementing atomic mutations using React 19 Server Actions without manual REST endpoints.
  • Setting up granular caching with the new 'use cache' directive and cache invalidation tags.
  • Building complex modal navigation patterns with Parallel and Intercepting Routes.
  • Optimizing Core Web Vitals (LCP, INP, TTFB) with Partial Prerendering and Streaming.

Core Architectural Patterns

1. Async Request APIs (Mandatory in Next.js 15)

In Next.js 15, dynamic APIs (params, searchParams, cookies(), headers()) are asynchronous Promises to enable future runtime streaming and static preloading:

// app/blog/[slug]/page.tsx
import { cookies, headers } from 'next/headers';
import { notFound } from 'next/navigation';
import { db } from '@/lib/db';

interface PageProps {
  params: Promise<{ slug: string }>;
  searchParams: Promise<{ preview?: string }>;
}

export default async function BlogPostPage({ params, searchParams }: PageProps) {
  // Await params and searchParams concurrently
  const [{ slug }, { preview }] = await Promise.all([params, searchParams]);
  const cookieStore = await cookies();
  const headerStore = await headers();

  const isPreview = preview === 'true' && cookieStore.get('preview_token')?.value === process.env.PREVIEW_SECRET;
  const post = await db.posts.findUnique({ where: { slug } });

  if (!post || (!post.published && !isPreview)) {
    notFound();
  }

  return (
    <article className="max-w-3xl mx-auto py-12 px-4">
      <h1 className="text-4xl font-extrabold tracking-tight">{post.title}</h1>
      <p className="mt-2 text-sm text-muted-foreground">User-Agent: {headerStore.get('user-agent')}</p>
      <div className="mt-6 prose dark:prose-invert">{post.content}</div>
    </article>
  );
}

Read the full file on GitHub · 484 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. 6d ago Changed · +333 lines · +55 tokens per session 8ac1346b7168
  2. 7d ago Changed · +2 lines · -49 tokens per session 115c966bc98d
  3. 10d ago Changed 5d46725cf28b
  4. 19d ago Changed f3fd336b6b17
  5. 24d ago Changed 5bced0f7509d
  6. 25d ago Changed ec949b0ec142
  7. 27d ago Changed · -6 lines · +34 tokens per session 080fb59051af
  8. 29d ago Changed · +6 lines · -34 tokens per session 89c4efff8505
  9. 1mo ago Changed 205c006e071d
  10. 1mo ago First seen · 149 lines · 49 tokens per session scan A ad88dd35971c

Subscribe to this mod's changes

nextjs-app-router-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (115 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 4,652 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

shadcn-ui

Complete shadcn/ui component library guide including installation, configuration, and implementation of accessible React components. Use when setting up shadcn/ui, installing components, building forms with React Hook Form and Zod, customizing themes with Tailwind CSS, or implementing UI patterns like buttons…

chidekina/aria-superpowers · 73 tokens

react-dev

This skill should be used when building React components with TypeScript, typing hooks, handling events, or when React TypeScript, React 19, Server Components are mentioned. Covers type-safe patterns for React 18-19 including generic components, proper event typing, and routing integration (TanStack Router, React…

chidekina/aria-superpowers · 66 tokens

react-antd-setup

Gera a estrutura completa de um projeto ReactJS configurado e pronto para usar Ant Design. Triggers on: /react-antd-setup, 'criar projeto react ant design', 'setup react antd'.

chidekina/aria-superpowers · 50 tokens

ai-engineering-toolkit

Overview of six AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

sickn33/agentic-awesome-skills · 47 tokens

ai-prompt-regression-testing

Use when comparing prompt changes against a fixed evaluation set: record actual model settings, required checks, missing results, judge limitations and case-level regression evidence.

sickn33/agentic-awesome-skills · 37 tokens

remotion-production-guide

Remotion (React video framework) production guide with Apple-style design rules. Use when: 'create video with remotion', 'remotion project', 'render video', 'product demo video', 'animated video', 'video from code'. Covers project setup, animation library, spring presets, typography rules, color palettes, pacing…

AnastasiyaW/codex-claude-code-config · 150 tokens