agentleFS
belos-streetbelos-street/grimoire/skills/nextjs/skill.md

nextjs

Skill8 starsChanged 3 months agoMITView on GitHub

The React Framework for the Web - App Router, SSR, Security

49 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use declarative-infra, screenshots-in-prs and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • davidvornholtSkill

    declarative-infra

    Use when changing hosted infrastructure, such as server NixOS configurations, OpenTofu, cloud resources, infrastructure secrets, deployments, or provider credentials, even when another repository owns them.

    Also in 3 projects that use this

  • davidvornholtSkill

    screenshots-in-prs

    Use when opening or editing a pull request for a change to rendered UI.

    Also in 3 projects that use this

  • cordanaLLMSkill

    standards-sync

    Synchronize and reconcile local repository configurations, DevContainers, and universal agent harnesses with the governed repositories governance lattice.

    Also in 3 projects that use this

  • poorvith-mpSkill

    ci-pipelines

    Build CI/CD with build, test, security scan and deploy stages across common providers. Use when setting up GitHub Actions, GitLab CI, or build pipelines.

    Also in 3 projects that use this

  • jnotsknabSkill

    ux-ui

    Design usable, accessible, humane interfaces — interaction patterns, component states, forms, feedback, and WCAG compliance. Use when making decisions about how UI behaves, not just how it looks.

    Also in 3 projects that use this

  • thongdn-itSkill

    nuqs

    nuqs (type-safe URL query state) best practices for Next.js applications. This skill should be used when writing, reviewing, or refactoring code that uses nuqs for URL state management. Triggers on tasks involving useQueryState, useQueryStates, search params, URL state, query parameters, nuqs parsers, or Next.js routing with state.

    Also in 3 projects that use this

  • +1 more from davidvornholt

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 43 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Server Components: Default rendering on server

    line 80

“Common” is measured: kept by at least 6 in 10 of the 43 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

Next.js - The React Framework for the Web

Basics

  • SSR vs SSG vs ISR concepts → See basics
  • App Router vs Pages Router → See basics
  • Directory structure → See basics
  • Routing fundamentals → See basics

App Router

  • Layouts and nesting → See app-router
  • Pages and routing → See app-router
  • Loading and error states → See app-router
  • Server vs Client Components → See app-router
  • Route handlers (API) → See app-router
  • Middleware → See app-router

Data Fetching

  • fetch API and caching → See data-fetching
  • Server Components data → See data-fetching
  • Server Actions → See data-fetching
  • Parallel and sequential fetching → See data-fetching

Rendering

  • Server Components → See rendering
  • Client Components → See rendering
  • Streaming and Suspense → See rendering
  • Partial Prerendering → See rendering

Styling

  • CSS Modules → See styling
  • Tailwind CSS → See styling
  • Global CSS → See styling

API & Backend

  • Route Handlers → See api-backend
  • Headers and Cookies → See api-backend
  • Server Actions → See api-backend

Performance

  • Image optimization → See performance
  • Font optimization → See performance
  • Code splitting → See performance
  • Prefetching → See performance

Deployment

  • Vercel deployment → See deployment
  • Docker deployment → See deployment
  • Static export → See deployment

Security

  • Authentication (NextAuth.js) → See security
  • Authorization and RBAC → See security
  • XSS prevention → See security
  • CSRF protection → See security
  • Server Actions security → See security
  • API route security → See security

Quick Start

npx create-next-app@latest my-app --typescript --tailwind --eslint
cd my-app
npm run dev

Key Features

  • App Router: New filesystem-based routing
  • Server Components: Default rendering on server
  • Streaming: Suspense for progressive loading
  • Data Cache: Intelligent caching by default
  • Middleware: Edge middleware for routing
  • TypeScript: First-class TypeScript support

Project Structure

app/
├── layout.tsx      # Root layout
├── page.tsx        # Home page
├── globals.css     # Global styles
├── (marketing)/    # Route group
│   └── about/
│       └── page.tsx
├── blog/
│   ├── page.tsx
│   └── [slug]/
│       └── page.tsx
└── api/
    └── route.ts   # API route

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.