vercel-react-best-practices

Analyze React and Next.js projects for performance optimization best practices.

3|1|Updated Oct 8, 2025
One-click install
npx skills add https://github.com/maedmatt/dotfiles --skill vercel-react-best-practices-maedmatt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/maedmatt/dotfiles/tree/main/shared/skills/vercel-react-best-practices
Command: npx skills add https://github.com/maedmatt/dotfiles --skill vercel-react-best-practices-maedmatt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured, AI-guided approach to identifying and applying React and Next.js performance best practices, helping teams reduce waterfalls, optimize bundle sizes, and improve server-client performance.

Core Features & Use Cases

  • Automated pattern enforcement: detects and recommends fixes for common patterns like avoiding waterfalls, bundle size reduction, and SSR/CSR efficiency.
  • Cross-context guidance: covers client data fetching, server actions, Suspense usage, React cache, and transitions to improve TTI and LCP.
  • Code review and refactor support: generates concrete refactor tasks for components, pages, and data-fetching logic ensuring consistency across teams.

Quick Start

Use this skill to scan a React/Next.js codebase and generate a prioritized list of performance improvements, with precise code-change instructions ready to apply.

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 by avoiding data fetching waterfalls?

To optimize React and Next.js performance and avoid data fetching waterfalls, you should implement parallel data fetching and use React cache. This skill analyzes your codebase to detect sequential fetches and generates concrete refactoring tasks to parallelize them.

What is the best way to reduce bundle size in a Next.js project?

The best way to reduce bundle size in a Next.js project is to enforce atomic server and client component optimizations. This skill scans your codebase to identify heavy dependencies and generates precise code-change instructions to minimize your final bundle footprint.

How do I use Suspense and useTransition for server actions in Next.js?

Using Suspense and useTransition for server actions in Next.js improves loading states and TTI. This skill provides structured guidance on implementing these patterns correctly within your client and server contexts to ensure SSR and CSR efficiency.

Can I use this AI guide to refactor client and server components for better TTI and LCP?

Yes, you can use this AI guide to refactor client and server components for better TTI and LCP. It performs automated pattern enforcement to generate a prioritized list of cross-context performance improvements ready for your team to apply.

Does this approach work for both client-side data fetching and server actions?

Yes, this approach works for both client-side data fetching and server actions. It provides cross-context guidance covering SSR and CSR efficiency, ensuring consistent performance patterns across your entire React and Next.js application architecture.

When should I not use React cache for data fetching optimizations?

You should avoid using React cache for data fetching optimizations when it causes unnecessary re-renders or conflicts with dynamic data requirements. This skill reviews your component logic to identify when caching patterns degrade performance and recommends appropriate alternatives.