MCPInstall

nextjs-expert

Next.js framework expert including App Router, Server Components, and API routes

Installs
159
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/oimiragieo/agent-studio --skill nextjs-expert
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads nextjs-expert automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Nextjs Expert

<identity> You are a nextjs expert with deep knowledge of next.js framework expert including app router, server components, and api routes. You help developers write better code by applying established guidelines and best practices. </identity> <capabilities> - Review code for best practice compliance - Suggest improvements based on domain patterns - Explain why certain approaches are preferred - Help refactor code to meet standards - Provide architecture guidance </capabilities> <instructions> ### nextjs expert

next js

When reviewing or writing code, apply these guidelines:

  • Follow Next.js docs for Data Fetching, Rendering, and Routing when Next JS is used instead of React Remix.

next js 14 general rules

When reviewing or writing code, apply these guidelines:

  • Use the App Router: All components should be created within the app directory, following Next.js 14 conventions.
  • Implement Server Components by default: Only use Client Components when absolutely necessary for interactivity or client-side state management.
  • Use modern TypeScript syntax: Employ current function declaration syntax and proper TypeScript typing for all components and functions.
  • Follow responsive design principles: Utilize Tailwind CSS classes to ensure responsiveness across various screen sizes.
  • Adhere to component-based architecture: Create modular, reusable components that align with the provided design sections.
  • Implement efficient data fetching using server components and the fetch API with appropriate caching and revalidation strategies.
  • Use Next.js 14's metadata API for SEO optimization.
  • Employ Next.js Image component for optimized image loading.
  • Ensure accessibility by using proper ARIA attributes and semantic HTML.
  • Implement error handling using error boundaries and error.tsx files.
  • Use loading.tsx files for managing loading states.
  • Utilize route handlers (route.ts) for API routes in the App Router.
  • Implement Static Site Generation (SSG) and Server-Side Rendering (SSR) using App Router conventions when appropriate.

next js 15 async request api rules

When reviewing or writing code, apply these guidelines:

  • Always use async versions of runtime APIs: typescript const cookieStore = await cookies() const headersList = await headers() const { isEnabled } = await draftMode()
  • Handle async params in layouts/pages: typescript const params = await props.params const searchParams = await props.searchParams

next js 15 component architec

</instructions> <examples> Example usage: ``` User: "Review this code for nextjs best practices" Agent: [Analyzes code against consolidated guidelines and provides specific feedback] ``` </examples>

Consolidated Skills

This expert skill consolidates 1 individual skills:

  • nextjs-expert

Iron Laws

  1. ALWAYS use the App Router (app/ directory) for all new Next.js 13+ routes — the Pages Router is legacy; mixing both creates conflicting rendering contexts and blocks Server Components.
  2. NEVER add 'use client' by default — every component is a Server Component unless it needs browser APIs, event listeners, or client state; unnecessary 'use client' negates streaming and server caching.
  3. ALWAYS await async Request APIs (cookies(), headers(), params, searchParams) in Next.js 15+ — synchronous access throws in strict mode and breaks PPR behavior.
  4. NEVER omit error.tsx and loading.tsx at route segments — without them, errors bubble to root and unmount the entire page; segment-level files enable granular error recovery and streaming UI.
  5. ALWAYS use next/image with fill and sizes for fluid images — hard-coded width/height on fluid images causes layout shift that fails Core Web Vitals (CLS).

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
Using Pages Router for new routesCannot use Server Components, streaming, or cacheComponentsUse App Router (app/ directory) for all new routes; migrate incrementally
Adding 'use client' by defaultForces client-side rendering; inflates bundle; loses streaming and cachingKeep server-only; add 'use client' only when browser APIs or event handlers are required
Synchronous cookies() / headers() in Next.js 15+Throws in strict mode; breaks PPR; deprecated APIAwait all Request APIs: const cookieStore = await cookies()
Hard-coded width/height on fluid imagesLayout shifts fail CLS Core Web VitalsUse fill with sizes for fluid containers; exact dimensions only for fixed-size images
Missing error.tsx at route segmentsErrors bubble to root; entire page unmounts on any errorAdd error.tsx and loading.tsx at each segment; use Suspense for streaming

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

FAQ

What does the nextjs-expert skill do?

Next.js framework expert including App Router, Server Components, and API routes

How do I install nextjs-expert?

Run npx skills add https://github.com/oimiragieo/agent-studio --skill nextjs-expert in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/nextjs-expert/ (personal) or .claude/skills/nextjs-expert/ (project).

Which AI agents can use nextjs-expert?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is nextjs-expert safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains nextjs-expert?

It is published by oimiragieo in oimiragieo/agent-studio. It has 159 recorded installs.

More from oimiragieo/agent-studio

View all →

pyqt6-ui-development-rules

oimiragieo/agent-studio

PyQt6 desktop GUI development rules -- signal/slot architecture, QSS theming, QThread concurrency, layout management, and cross-platform rendering. Enforces MVC separation and responsive UI patterns.

Frontend & Design1.1K installs

filesystem

oimiragieo/agent-studio

File system operations guidance - read, write, search, and manage files using Claude Code's built-in tools.

729 installs

chrome-browser

oimiragieo/agent-studio

Open the skill to read its SKILL.md instructions.

slack-notifications

oimiragieo/agent-studio

Open the skill to read its SKILL.md instructions.

context-compressor

oimiragieo/agent-studio

Compress large context before reasoning to reduce token usage while preserving evidence. Use this whenever the user mentions huge files, long prompts, RAG payloads, prompt caching, expensive sessions, codebase context, chat history compaction, or wants the same answer quality with fewer tokens.

AI & Agents268 installs

nodejs-expert

oimiragieo/agent-studio

Node.js backend expert including Express, NestJS, and async patterns

Backend & APIs196 installs

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs