affaan-m avatar

React Performance

A well-organized collection of 70+ React and Next.js performance rules pulled from Vercel's engineering best practices, sorted into eight priority tiers from waterfalls to advanced patterns. You'd reach for this when reviewing code, auditing Core Web Vitals regressions, or tracking down why your server components are slow. The waterfall elimination section alone (parallel Promise.all, deferred awaits, Suspense boundaries) will catch most of the low-hanging fruit in typical Next.js apps. The bundle size guidance on direct imports versus barrel files is correct and commonly ignored. It's dense enough that you'll want to activate it during refactoring sessions rather than keeping it loaded all the time, but the priority index makes it easy to focus on what actually matters for your bottleneck.

skills.sh installs
5.9K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add affaan-m/ecc --skill react-performance --agent claude-code

Installs into .claude/skills of the current project.

Files

React Performance

Performance optimization patterns for React 18/19 and Next.js, adapted from Vercel Labs react-best-practices (MIT, v1.0.0). This skill organizes rules by priority and provides decision-tree guidance for active code review and refactoring.

When to Activate

  • Writing or reviewing React/Next.js code for performance
  • Diagnosing slow page loads, slow interactions, or high CPU on the client
  • Auditing bundle size or Lighthouse Core Web Vitals regressions
  • Removing waterfalls in Server Components / API routes
  • Reducing client-side re-renders
  • Optimizing long lists, animations, or hydration
  • Auditing optimization choices in PRs touching app/, pages/, components/, or data layers

Priority Index

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
Frontend Development, Backend & APIs, Git & Pull Requests, Documentation, Code Review & Quality, AI & Agent Building, Debugging, Productivity & Planning, Cloud & Infrastructure
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1analogjs avatarangular-directivesanalogjs/angular-skillsCreate custom directives in Angular v20+ for DOM manipulation and behavior extension. Use for attribute directives that modify element behavior/appearance, stru5.7Kskills.sh installs
2pixijs avatarpixijs-html-sourcepixijs/pixijs-skillsUse this skill when rendering live HTML/DOM elements (or frozen snapshots of them) as PixiJS v8 textures via the EXPERIMENTAL HTML-in-Canvas browser APIs. Cover5.5Kskills.sh installs
3callstack avatarreact-native-testingcallstack/react-native-testing-libraryWrite tests using React Native Testing Library (RNTL) v13 and v14 (`@testing-library/react-native`). Use when writing, reviewing, or fixing React Native compone5.5Kskills.sh installs
4forcedotcom avatarexperience-ui-bundle-deployforcedotcom/sf-skillsMUST activate when the project contains a uiBundles/*/src/ directory and the task involves deploying, pushing to an org, or post-deploy org setup. Use this skil5.3Kskills.sh installs
5grafana avatarreact-19-plugin-migrationgrafana/skillsMigrate a Grafana plugin to React 19 compatibility. Use when the user asks to update a plugin for React 19, prepare for React 19, fix React 19 compatibility, up4.5Kskills.sh installs
6plannotator avatarhtml-diagramplannotator/effective-htmlDirect-invocation specialist for self-contained HTML diagrams whose layout, notation, and interaction clarify relationships, sequence, topology, state, hierarch4.4Kskills.sh installs