agentleFS
izahid19izahid19/nextjs-best-practices/SKILL.md

nextjs-best-practices

Skill0 starsChanged 4 months agoNo licenceView on GitHub

Comprehensive Next.js + TypeScript best practices and source of truth reference. Covers folder structure, environment variables, config/constants, API/CRUD layer patterns, Axios interceptors, routing, route guards, middleware, SEO (next-seo & Metadata API), _app.tsx/_document.tsx, state management (Context + React Query / TanStack Query), custom hooks, reusable components, forms (React Hook Form + Zod, Formik + Yup), TypeScript patterns, error handling (ErrorBoundary + Sentry), authentication, dynamic imports, next.config.js, ESLint/Prettier/Husky, naming conventions, CRUD layer deep-dive, helper/utility/common functions, toasters, DOMPurify, cookie/session/localStorage, data transformation, App Router (server/client components, Server Actions, Metadata API), image optimization (next/image), performance checklist (Core Web Vitals, bundle analysis), testing (Vitest + Testing Library + MSW + Playwright), internationalization (next-intl), and deployment (Docker, GitHub Actions CI, Vercel, ECS). Use this skill whenever writing, reviewing, or architecting Next.js code.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ai-agents-architect, auth-implementation-patterns and 5 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.
  • xfstudioSkill

    ai-agents-architect

    Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration. Use when: build agent, AI agent, autonomous agent, tool use, function calling.

    Also in 4 projects that use this

  • nilecuiSkill

    auth-implementation-patterns

    Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.

    Also in 3 projects that use this

  • xfstudioSkill

    docker-expert

    Docker containerization expert with deep knowledge of multi-stage builds, image optimization, container security, Docker Compose orchestration, and production deployment patterns. Use PROACTIVELY for Dockerfile optimization, container issues, image size problems, security hardening, networking, and orchestration challenges.

    Also in 3 projects that use this

  • nicolasestremSkill

    frontend-developer

    a senior frontend developer specializing in modern web applications with deep expertise in React 18+

    Also in 3 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 3 projects that use this

  • VercelSkill

    vercel-react-best-practices

    React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

    Also in 3 projects that use this

The file

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.