nextjs-expert
Use when building Next.js 14/15 applications with the App Router. Invoke for routing, layouts, Server Components, Client Components, Server Actions, Route Handlers, authentication, middleware, data fetching, caching, revalidation, streaming, Suspense, loading states, error boundaries, dynamic routes, parallel routes, intercepting routes, or any Next.js architecture question.
Why use this skill?
Master Next.js 14 and 15 with this expert OpenClaw skill. Get professional guidance on App Router, Server Components, data fetching, and production architecture.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jgarrison929/nextjs-expertWhat This Skill Does
The nextjs-expert skill acts as an authoritative, senior-level consultant for developers building modern web applications with the Next.js App Router. It is designed to assist with the entire lifecycle of a Next.js project, from initial architectural planning to complex production-level implementation. By leveraging deep knowledge of React Server Components, Server Actions, route management, and data-fetching patterns, this skill ensures your codebase adheres to the latest standards, including those introduced in Next.js 14 and 15.
Installation
To integrate this skill into your development environment, run the following command in your terminal:
clawhub install openclaw/skills/skills/jgarrison929/nextjs-expert
Use Cases
- Architecture Design: Use this skill when deciding how to structure your directory tree using route groups, parallel routes, or intercepting routes.
- Performance Optimization: Ask for guidance on how to leverage React Server Components, streaming with Suspense, or implementing incremental static regeneration (ISR).
- Data Integrity: Get assistance with building secure Server Actions, managing cookies for authentication, and implementing robust error boundaries.
- Migration: Consult the skill for help refactoring older
pagesdirectory logic or updating legacy code to utilize the mandatoryPromisetypes forparamsandsearchParamsin Next.js 15.
Example Prompts
- "I am building a blog system with dynamic routes. How do I properly type the
paramsobject in my[slug]/page.tsxfile for Next.js 15?" - "Can you help me refactor a client-side form to use a Server Action, ensuring proper error handling and revalidation of the cache?"
- "I am trying to implement a private route group. What is the difference between a private folder prefixed with an underscore versus a route group in parentheses?"
Tips & Limitations
- Tip: Always prioritize keeping your logic on the server. If you find yourself reaching for
'use client', check if you can lift the state or pass children as props to keep the parent as a Server Component. - Tip: When debugging 404s or error pages, verify your file naming conventions against the provided file hierarchy chart.
- Limitation: While the skill provides high-level code, always review generated snippets for project-specific business logic before deploying to production. Ensure you have the necessary environment variables configured for your data fetching needs.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-jgarrison929-nextjs-expert": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
shadcn-ui
Use when building UI with shadcn/ui components, Tailwind CSS layouts, form patterns with react-hook-form and zod, theming, dark mode, sidebar layouts, mobile navigation, or any shadcn component question.
dotnet-expert
Use when building .NET 8/9 applications, ASP.NET Core APIs, Entity Framework Core, MediatR CQRS, modular monolith architecture, FluentValidation, Result pattern, JWT authentication, or any C# backend development question.
database-operations
Use when designing database schemas, writing migrations, optimizing SQL queries, fixing N+1 problems, creating indexes, setting up PostgreSQL, configuring EF Core, implementing caching, partitioning tables, or any database performance question.
security-auditor
Use when reviewing code for security vulnerabilities, implementing authentication flows, auditing OWASP Top 10, configuring CORS/CSP headers, handling secrets, input validation, SQL injection prevention, XSS protection, or any security-related code review.