nextjs

Automate Next.js App Router patterns for pages, layouts, components, API routes, and NextAuth v5.

2|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/ftc8569/ftcmetrics --skill nextjs-ftc8569
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs
Source: https://github.com/ftc8569/ftcmetrics/tree/main/.claude/skills/nextjs
Command: npx skills add https://github.com/ftc8569/ftcmetrics --skill nextjs-ftc8569

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Patterns and best practices for building the FTC Metrics frontend with Next.js 16 App Router, covering pages, layouts, components, API routes, and authentication flows.

Core Features & Use Cases

  • Server and Client Component patterns for React with Next.js
  • Protected routes and monorepo integration using NextAuth v5
  • Dynamic routing and API route scaffolding within the FTC Metrics frontend
  • Reference patterns and conventions to accelerate development across packages/web

Quick Start

Navigate to packages/web and start the development server with bun dev.

Frequently Asked Questions about nextjs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Next.js App Router pages and layouts in a monorepo?

To structure Next.js App Router pages and layouts in a monorepo, apply server and client component patterns within the packages/web directory. This ensures maintainable routing and component isolation across the frontend application.

What is the best way to implement protected routes with NextAuth v5 in Next.js?

Implementing protected routes with NextAuth v5 in Next.js involves integrating authentication flows directly within your App Router layouts. This approach secures dynamic routing paths and restricts access to authorized users across the web application.

How do I scaffold API routes using Next.js App Router conventions?

Scaffolding API routes using Next.js App Router conventions requires defining route handlers within the app directory structure. This pattern automates backend endpoint creation and integrates seamlessly with your frontend components and monorepo packages.

When should I use Server Components vs Client Components in Next.js?

Use Server Components in Next.js for static rendering and direct data fetching, and Client Components for interactive UI elements requiring browser APIs. Separating these patterns ensures optimal performance and correct data flow within the App Router.

Does this Next.js frontend pattern support dynamic routing for metrics dashboards?

Yes, these Next.js frontend patterns fully support dynamic routing for metrics dashboards. You can create dynamic route segments within the App Router to display specific metric data based on URL parameters.