performance-rules

Measure and reduce Core Web Vitals in React and Next.js applications.

3|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/mauriciodelrio/delriodev-skills --skill performance-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-rules
Source: https://github.com/mauriciodelrio/delriodev-skills/tree/main/es-skills/software/frontend/performance-rules
Command: npx skills add https://github.com/mauriciodelrio/delriodev-skills --skill performance-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps front-end engineers identify and fix performance regressions in React and Next.js applications by focusing on Core Web Vitals, long tasks, and inefficient rendering patterns to improve perceived load, interaction latency, and visual stability.

Core Features & Use Cases

  • Measure before optimizing: workflow and tools to profile with React DevTools Profiler and Web Vitals.
  • Core Web Vitals targets: concrete goals for LCP, INP, and CLS and actions to reach them.
  • Lazy loading & code splitting: guidance for React lazy/Suspense and next/dynamic for browser-only modules.
  • Memoization & rendering: when to use useMemo, useCallback, and React.memo with profiler-driven rules.
  • Virtualization: when and how to virtualize long lists using @tanstack/react-virtual.
  • Image and bundle optimization: next/image usage, priority and sizes, bundle analysis and size budgets.
  • Monitoring & observability: how to collect and report Web Vitals for ongoing measurement.

Quick Start

Use the performance-rules skill to analyze a Next.js page, measure LCP/INP/CLS with the profiler, and get prioritized optimizations.

Frequently Asked Questions about performance-rules

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

FAQPage Schema
How do I reduce LCP and INP in my Next.js application?

Reduce LCP and INP in Next.js by profiling render costs with React DevTools Profiler, optimizing images via next/image, and applying code splitting with next/dynamic. Enforce performance budgets to meet targets like LCP < 2.5s and INP < 200ms.

When should I use React memoization and virtualization for performance?

Use React memoization (useMemo, useCallback, React.memo) and virtualization (@tanstack/react-virtual) when profiler-driven analysis reveals inefficient rendering patterns or long lists causing high render costs and interaction latency.

What is the best way to analyze and enforce bundle size budgets in React?

The best way to enforce bundle size budgets is to use bundle analyzers to inspect component output, apply lazy loading with React Suspense, and monitor Core Web Vitals continuously to prevent performance regressions.

How do I prevent CLS when implementing lazy loading in Next.js?

Prevent CLS during lazy loading by defining explicit dimensions and sizes for components and images. Use next/image with priority and sizes attributes to ensure visual stability and meet the CLS < 0.1 target.

Does this approach work for measuring Core Web Vitals across all React components?

Yes, this approach works for measuring Core Web Vitals across React components by collecting and reporting metrics using Web Vitals tools and the React DevTools Profiler to identify and fix specific render bottlenecks.