Nextjs Patterns

Next.js best practices, server components, app router patterns, caching strategies, and full-stack architecture

492 stars 68 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add cosmicstack-labs/mercury-agent-skills --skill nextjs-patterns
Manual install
git clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills.git /tmp/mercury-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/mercury-agent-skills/categories/frontend/nextjs-patterns ~/.claude/skills/nextjs-patterns

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Next.js Patterns

Comprehensive guide to building production-grade Next.js applications with the App Router, Server Components, and modern React patterns.

## Core Architecture

### App Router vs Pages Router

| Aspect | App Router | Pages Router |
|--------|-----------|--------------|
| **Components** | Server Components by default | Client Components only |
| **Routing** | File-system based with layout nesting | File-system based, flat |
| **Data Fetching** | Server-side fetch, `use`, cache primitives | `getServerSideProps`, `getStaticProps` |
| **Loading States** | `loading.js` files | Manual implementation |
| **Error Handling** | `error.js` files | Manual implementation |
| **Streaming** | Built-in with Suspense boundaries | Not supported |

### Project Structure
Read the full skill on GitHub

Details

Skill name
nextjs-patterns
Path
categories/frontend/nextjs-patterns/SKILL.md
License
MIT
Repo updated
25 August 2026

FAQ

What does the Nextjs Patterns skill do?

Next.js best practices, server components, app router patterns, caching strategies, and full-stack architecture

How do I install the Nextjs Patterns skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add cosmicstack-labs/mercury-agent-skills --skill nextjs-patterns. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Nextjs Patterns popular?

It lives in cosmicstack-labs/mercury-agent-skills, which has 492 GitHub stars and 68 forks.

Related skills

Accessibility

492

cosmicstack-labs/mercury-agent-skills

Achieve and maintain WCAG compliance through inclusive design practices, proper ARIA usage, and comprehensive testing methodologies.

Frontend & Design68

Accessibility Testing

492

cosmicstack-labs/mercury-agent-skills

WCAG 2.1/2.2 audit, axe, Lighthouse, manual testing, screen reader testing, and remediation

Testing & QA68

Agent Audit Logging

492

cosmicstack-labs/mercury-agent-skills

Implement comprehensive audit logging and reporting for multi-agent systems. Covers event capture, structured logging, traceability, compliance reporting, forensic analysis, and real-time monitoring dashboards for agent actions and decisions.

AI, LLMs & Agents68

Personal Branding Statement

492

cosmicstack-labs/mercury-agent-skills

A personal brand coach that helps you articulate who you are, what you do, and why it matters. Generates one-liners, bio statements, taglines, positioning frameworks, and messaging matrices for freelancers, creators, and solopreneurs building a professional identity.

Frontend & Design68

Ky Design to HTML

166

KyrieCheungYep/ky-design-to-html-skill

Convert visible UI references such as screenshots, exported mockups, Figma frame images, SaaS empty states, dashboards, and landing page screenshots into high-quality HTML/CSS by decomposing layout, separating visual assets from code-rendered UI, implementing the page, then validating with browser screenshots and iterative visual correction. Use when the user asks to recreate, copy, convert, or implement a visual design as HTML/CSS from an image or equivalent visual reference. Do not use for ordinary frontend feature work without a visual reference, designing new pages from text only, backend

Frontend & Design23

React Native Patterns

492

cosmicstack-labs/mercury-agent-skills

Navigation, state management, native modules, performance, animations, and cross-platform strategies

Frontend & Design68

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.