vercel-react-best-practices

Apply React and Next.js best practices for performance and reliability.

1|Updated Mar 10, 2023
One-click install
npx skills add https://github.com/spatulatom/testing-next-13-beta-typescript-tailwind-prisma --skill vercel-react-best-practices-spatulatom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/spatulatom/testing-next-13-beta-typescript-tailwind-prisma/tree/main/.github/skills/vercel-react-best-practices
Command: npx skills add https://github.com/spatulatom/testing-next-13-beta-typescript-tailwind-prisma --skill vercel-react-best-practices-spatulatom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React/Next.js apps often struggle with performance regressions, inconsistent patterns, and maintenance burdens as teams scale. This skill provides a consolidated set of best practices to standardize high-performance patterns and safer SSR/CSR interactions.

Core Features & Use Cases

  • A catalog of rules spanning elimination of waterfalls, bundle-size optimization, server-side performance, client data fetching, rendering, and advanced patterns.
  • Useful for code reviews, refactors, upgrades, migrations, and when onboarding to Next.js App Router.

Quick Start

Review the rules in AGENTS.md and the rules directory to implement the top performance improvements in your React/Next.js project.

Frequently Asked Questions about vercel-react-best-practices

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

FAQPage Schema
How do I optimize React and Next.js performance during a refactor?

To optimize React and Next.js performance during a refactor, apply structured best practices focusing on eliminating data waterfalls, minimizing bundle size, and enforcing robust SSR and CSR correctness across client and server boundaries.

What are the best practices for Next.js App Router server actions and data fetching?

Best practices for Next.js App Router server actions involve enforcing safe data handling across boundaries, applying performance guardrails, and ensuring robust SSR and CSR correctness to eliminate request waterfalls.

How do I reduce bundle size in a React and Next.js application?

Reduce bundle size in a React and Next.js application by applying a catalog of performance rules that target bundle optimization specifically, alongside server-side performance and advanced rendering patterns.

Can I use these React performance patterns for code reviews?

You can use these React performance patterns for code reviews, refactors, and migrations by checking code against a consolidated set of rules spanning rendering, client data fetching, and server-side performance.

When should I apply Next.js SSR and CSR correctness guardrails?

Apply Next.js SSR and CSR correctness guardrails when writing, reviewing, or refactoring code to ensure safe data handling across client and server boundaries and prevent reliability issues as teams scale.