gohypergiant avatar

Accelint React Best Practices

A comprehensive React optimization guide that teaches Claude to spot the anti-patterns that actually cause production bugs. The skill covers 25+ patterns from critical issues like components defined inside components (which lose focus on every keystroke) to SSR hydration mismatches and unnecessary re-renders. It's built for progressive disclosure so Claude only loads what it needs, checking first whether you're using React Compiler (which handles memoization automatically) before suggesting manual optimizations. Especially useful when you're debugging infinite loops, reviewing performance, or working with Next.js. Includes a standardized audit template with severity levels and impact categories, plus detection scripts you can run on your codebase.

skills.sh installs
335
GitHub stars
25
last updated
Aug 21, 2026

Install

$ npx -y skills add gohypergiant/agent-skills --skill accelint-react-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

React Best Practices

Comprehensive performance optimization and best practices for React applications, designed for AI agents and LLMs working with React code.

NEVER Do React

These are the most critical anti-patterns that cause real production issues. Experts learned these the hard way through debugging sessions and performance investigations.

NEVER define components inside components — creates new component type on every render, causing full remount with state loss and DOM recreation. Results in input fields losing focus on keystroke, animations restarting unexpectedly, and useEffect cleanup/setup running on every parent render.

NEVER subscribe to searchParams/localStorage if you only read them in callbacks — causes component to re-render on every URL change or storage event even when the component doesn't display those values. Read directly in the callback instead: new URLSearchParams(window.location.search).

NEVER use object/array dependencies in useEffect — triggers effect on every render since objects are recreated with new references each time. Extract primitive values (id, name) from objects and use those as dependencies instead.

Sponsors

Details

Repository
github.com/gohypergiant/agent-skills
Categories
Frontend Development, Documentation, Code Review & Quality, AI & Agent Building, Debugging
First seen
Jun 3, 2026

More from gohypergiant/agent-skills

All 14
1dalestudy avatarreactdalestudy/skillsReact 성능 최적화 및 베스트 프랙티스 스킬. Vercel Engineering 가이드 기반, 프레임워크 비종속. 다음 상황에서 사용: (1) React 컴포넌트(.tsx, .jsx) 작성 또는 수정 시, (2) 상태 관리, hooks, 리렌더링 최적화 작업 시, (3) 비동기 데이334skills.sh installs
2vinayakkulkarni avatarnuxt-best-practicesvinayakkulkarni/vue-nuxt-best-practicesNuxt 4 performance optimization and architecture guidelines (current through Nuxt 4.5) for building fast, maintainable full-stack applications. This skill shoul325skills.sh installs
3wsimmonds avatarnextjs-client-cookie-patternwsimmonds/claude-nextjs-skillsPattern for client components calling server actions to set cookies in Next.js. Covers the two-file pattern of a client component with user interaction (onClick325skills.sh installs
4syncfusion avatarsyncfusion-angular-image-editorsyncfusion/angular-ui-components-skillsImplement feature-rich image editing in Angular applications using Syncfusion Image Editor. Use this skill whenever user mentions editing images, adding annotat322skills.sh installs
5syncfusion avatarsyncfusion-angular-diagramsyncfusion/angular-ui-components-skillsBuild and configure Syncfusion EJ2 Angular Diagram for flowcharts, org charts, process diagrams, and data-visualization. Trigger when users ask to create nodes/318skills.sh installs
6syncfusion avatarsyncfusion-angular-treegridsyncfusion/angular-ui-components-skillsImplements Syncfusion Angular TreeGrid for hierarchical data with sorting, filtering, editing, exporting, paging, virtual scrolling, and advanced features. Supp318skills.sh installs