
Nextjs Expert
- 147 installs
- 36 repo stars
- Updated July 14, 2026
- oimiragieo/agent-studio
Implement App Router pages, server components, data fetching, and deployment patterns when building Next.js SaaS sites, marketing pages, or storefront frontends.
About
nextjs-expert gives agents deep Next.js knowledge for App Router, server and client components, routing, metadata, and performance-conscious data loading. It helps teams ship modern React web apps with framework-correct patterns instead of generic React advice that breaks SSR, caching, or deployment on Vercel-like targets.
- App Router and RSC guidance
- Data fetching and caching patterns
- SEO-friendly rendering defaults
- Auth and middleware conventions
- Production-oriented Next.js idioms
Nextjs Expert by the numbers
- 147 all-time installs (skills.sh)
- +5 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #957 of 2,245 Frontend Development skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/oimiragieo/agent-studio --skill nextjs-expertAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 147 |
|---|---|
| repo stars | ★ 36 |
| Last updated | July 14, 2026 |
| Repository | oimiragieo/agent-studio ↗ |
What it does
Implement App Router pages, server components, data fetching, and deployment patterns when building Next.js SaaS sites, marketing pages, or storefront frontends.
Files
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
appdirectory, 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
fetchAPI 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-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Using Pages Router for new routes | Cannot use Server Components, streaming, or cacheComponents | Use App Router (app/ directory) for all new routes; migrate incrementally |
Adding 'use client' by default | Forces client-side rendering; inflates bundle; loses streaming and caching | Keep 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 API | Await all Request APIs: const cookieStore = await cookies() |
| Hard-coded width/height on fluid images | Layout shifts fail CLS Core Web Vitals | Use fill with sizes for fluid containers; exact dimensions only for fixed-size images |
Missing error.tsx at route segments | Errors bubble to root; entire page unmounts on any error | Add error.tsx and loading.tsx at each segment; use Suspense for streaming |
Memory Protocol (MANDATORY)
Before starting:
cat .claude/context/memory/learnings.mdAfter completing: Record any new patterns or exceptions discovered.
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
Invoke the nextjs-expert skill and follow it exactly as presented to you
'use strict';
/**
* Post-execute hook for nextjs-expert
* Auto-generated by enterprise-bundle-scaffolder
*
* Records metrics after skill execution.
*/
function postExecute(_context) {
// Record execution metrics
return { ok: true, skill: 'nextjs-expert' };
}
module.exports = { postExecute };
'use strict';
/**
* Pre-execute hook for nextjs-expert
* Auto-generated by enterprise-bundle-scaffolder
*
* Validates inputs before skill execution.
*/
function preExecute(context) {
// Validate skill invocation context
if (!context || typeof context !== 'object') {
return { allow: true, message: 'nextjs-expert: no context to validate' };
}
return { allow: true };
}
module.exports = { preExecute };
nextjs-expert Research Requirements
Generated: 2026-02-28
Skill Description
Next.js framework expert including App Router, Server Components, and API routes
Research Areas
- Current best practices for nextjs-expert
- Industry standards and tooling
- Integration patterns
Source References
- To be populated by skill-updater research phase
nextjs-expert Rules
Purpose
Next.js framework expert including App Router, Server Components, and API routes
Best Practices
- Follow domain-specific conventions
- Apply patterns consistently
- Prioritize type safety and testing
Integration Points
See SKILL.md for complete documentation.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "nextjs-expertInput",
"description": "Input schema for Next.js framework expert including App Router, Server Components, and API routes",
"type": "object",
"additionalProperties": true,
"properties": {
"target": {
"type": "string",
"description": "Target file or path for the skill to operate on"
},
"options": {
"type": "object",
"description": "Additional options for skill execution",
"additionalProperties": true
}
}
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "nextjs-expertOutput",
"type": "object",
"additionalProperties": true,
"properties": {
"ok": {
"type": "boolean"
},
"summary": {
"type": "string"
}
}
}
#!/usr/bin/env node
/**
* nextjs-expert - Consolidated Expert Skill
* Consolidates 1 individual skills
*/
const fs = require('fs');
const path = require('path');
const args = process.argv.slice(2);
if (args.includes('--help')) {
console.log(`
nextjs-expert - Expert Skill
Usage:
node main.cjs --list List consolidated skills
node main.cjs --help Show this help
Description:
Next.js framework expert including App Router, Server Components, and API routes
Consolidated from: 1 skills
`);
process.exit(0);
}
if (args.includes('--list')) {
console.log('Consolidated skills:');
['nextjs-expert'].forEach(s => console.log(' - ' + s));
process.exit(0);
}
console.log('nextjs-expert skill loaded. Use with Claude for expert guidance.');
nextjs-expert Implementation Template
Goal
- Define target outcome and acceptance criteria.
TDD
1. Red 2. Green 3. Refactor
Verification
- lint
- format
- targeted tests