ck:react-best-practices

Apply React/Next.js performance best practices to components, data fetching, and bundles.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/hidonguyen/trade-ops --skill ck-react-best-practices-hidonguyen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:react-best-practices
Source: https://github.com/hidonguyen/trade-ops/tree/main/.opencode/skills/react-best-practices
Command: npx skills add https://github.com/hidonguyen/trade-ops --skill ck-react-best-practices-hidonguyen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill consolidates time-saving React/Next.js performance guidelines that help teams write faster, smaller, and more maintainable UI code.

Core Features & Use Cases

  • Consistent performance patterns: ensures server/client patterns, suspense usage, lazy-loading, and proper data-fetching strategies are applied across codebases.
  • Guided refactoring: provides actionable patterns to review and improve existing components, pages, and bundles.
  • Real-world scenarios: helps optimize render paths, reduce bundle size, and improve perceived performance in large React apps.

Quick Start

Articulate a request to audit and apply React/Next.js performance best practices across a project.

Frequently Asked Questions about ck: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 server and client components?

Optimize React and Next.js performance by applying best practices for server and client component separation, using Suspense for data fetching, and minimizing bundle size with dynamic imports. This ensures faster, maintainable UI code across your project.

What are the best practices for data fetching in Next.js to improve perceived performance?

Best practices for data fetching in Next.js involve adopting proper strategies for server and client components, utilizing Suspense, and ensuring minimal data serialization. These patterns reduce render paths and improve perceived performance in large apps.

How do I refactor React code to reduce bundle size using dynamic imports?

Refactor React code to reduce bundle size by applying patterns like dynamic imports and lazy-loading. This guided refactoring approach reviews existing components and pages to safely improve bundle optimization and maintainability.

When should I use Suspense in React and Next.js components?

Use Suspense in React and Next.js components to optimize data fetching and render paths. It is part of a consistent performance pattern that improves perceived performance and enforces safe, maintainable refactoring across your codebase.

Does this approach work for auditing existing React codebases or only new projects?

This approach works for both auditing existing React codebases and new projects. It provides actionable patterns to review, refactor, and improve existing components, pages, and bundles while enforcing safe and maintainable refactoring practices.