One-click install
npx skills add https://github.com/sinhong2011/minikyu --skill vercel-react-best-practices-sinhong2011
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/sinhong2011/minikyu/tree/main/.opencode/skill/vercel-react-best-practices
Command: npx skills add https://github.com/sinhong2011/minikyu --skill vercel-react-best-practices-sinhong2011

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses common performance bottlenecks in React and Next.js applications, ensuring faster load times, smoother user experiences, and more efficient code.

Core Features & Use Cases

  • Performance Optimization: Provides detailed rules and best practices for critical areas like data fetching, bundle size, rendering, and server-side performance.
  • Code Refactoring Guidance: Offers concrete examples of incorrect vs. correct implementations to guide developers in improving their code.
  • Use Case: A developer can use this Skill to review their Next.js page code and identify opportunities to eliminate waterfalls, reduce bundle size by avoiding barrel imports, and optimize server-side data fetching for quicker responses.

Quick Start

Apply the Vercel React best practices to the provided codebase to improve its performance.

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 for faster load times?

To optimize React and Next.js performance, apply comprehensive rules covering data fetching, bundle size, server-side rendering, and re-render optimization. This eliminates waterfalls and reduces JavaScript bundle overhead for smoother user experiences.

What is the best way to eliminate waterfalls in Next.js server-side data fetching?

Eliminating waterfalls in Next.js server-side data fetching requires restructuring sequential awaits into parallel data retrieval patterns. This skill provides concrete correct vs. incorrect code examples to guide automated refactoring for quicker server responses.

How can I reduce React bundle size by avoiding barrel imports?

Reducing React bundle size involves avoiding barrel imports that pull unnecessary modules into the bundle. Applying specific optimization patterns from this skill ensures only required code is included, significantly cutting down the final JavaScript payload.

Why does my React application suffer from excessive re-renders and how do I fix it?

Excessive React re-renders occur when component props or state changes trigger unnecessary DOM updates. Optimize rendering performance by implementing advanced patterns and memoization techniques detailed in these best practice rules.

Can AI agents automatically refactor my React codebase to follow Vercel best practices?

Yes, AI agents can automatically refactor React codebases using these detailed Vercel best practices. The skill provides concrete rules with code examples specifically designed for automated refactoring and code generation to improve overall performance.