vercel-react-best-practices

Apply Vercel React and Next.js performance best practices to code review and refactoring tasks.

78|18|Updated Feb 20, 2025
One-click install
npx skills add https://github.com/nakafaai/nakafa.com --skill vercel-react-best-practices-nakafaai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/nakafaai/nakafa.com/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/nakafaai/nakafa.com --skill vercel-react-best-practices-nakafaai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill consolidates React/Next.js performance guidelines from Vercel to help teams consistently apply best practices across client and server codebases.

Core Features & Use Cases

  • Rule-driven guidance for eliminating waterfalls, bundle optimization, server-side performance, client data fetching, re-render, rendering, JavaScript performance, and advanced patterns.
  • Real-world use: Review and refactor components and pages to improve TTI, LCP, and UX by applying patterns like parallel data fetching, Suspense usage, avoid barrel imports, and proper server actions security.
  • Use case: When reviewing a new Next.js page, apply guidelines to structure data fetching with parallel fetches, avoid unnecessary hydration risk, and ensure per-request deduplication.

Quick Start

Use the vercel-react-best-practices skill to guide refactoring sessions for a Next.js page by applying the top-priority rule sets and running a local audit

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 using Vercel best practices?

Optimize React and Next.js performance by applying Vercel Engineering best practices to eliminate waterfalls, optimize bundles, and structure server-side data fetching. This skill enforces consistent rules across codebases to improve TTI, LCP, and UX.

What is the best way to avoid data fetching waterfalls in Next.js?

Avoid data fetching waterfalls in Next.js by applying parallel fetches and per-request deduplication patterns. This skill provides rule-driven guidance to structure data fetching correctly and reduce unnecessary hydration risks.

How do I use Suspense in Next.js to improve page rendering?

Use Suspense in Next.js to improve page rendering by applying guidelines that structure async data fetching and component rendering. This skill provides rules for proper Suspense usage to enhance server-side performance and UX.

Does this skill help secure Next.js server actions?

Yes, this skill helps secure Next.js server actions by providing rule-driven guidance for proper server actions security. It ensures automated review tasks meet performance and security goals across client and server codebases.

How do I prevent bundle size bloat from barrel imports in React?

Prevent bundle size bloat from barrel imports in React by applying bundle optimization rules from this skill. It guides you to avoid barrel imports and structure components to eliminate unnecessary JavaScript payload.

Can I use this skill to refactor existing Next.js pages for better LCP?

Yes, you can use this skill to refactor existing Next.js pages for better LCP by applying top-priority rule sets. It guides refactoring sessions to improve TTI, LCP, and UX through optimized rendering and data fetching patterns.