skills/react-perf/SKILL.md
React and Next.js performance optimization patterns. Use when writing, reviewing, or optimizing React code for web apps, Remotion videos, or any React-based UI. Covers waterfall elimination, bundle optimization, re-render prevention, and server-side patterns.
npx skillsauth add kjaylee/misskim-skills react-perfInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
React 코드 작성 시 성능 최적화 핵심 패턴.
// ❌ 순차 await — 각 요청이 이전을 기다림
const user = await getUser();
const posts = await getPosts();
// ✅ 병렬 — 독립 요청은 Promise.all
const [user, posts] = await Promise.all([getUser(), getPosts()]);
await를 실제 사용 브랜치로 이동 (불필요한 대기 제거)// ❌ barrel import — 전체 모듈 로드
import { Button } from '@/components';
// ✅ 직접 import
import { Button } from '@/components/ui/Button';
next/dynamic으로 무거운 컴포넌트 지연 로드React.cache()로 요청 내 중복 제거// ❌ 콜백에서만 쓰는 state를 구독
const [items, setItems] = useState([]);
const handleClick = () => process(items);
// ✅ ref로 전환 (리렌더 방지)
const itemsRef = useRef([]);
const handleClick = () => process(itemsRef.current);
useState 초기값에 함수 전달 (lazy init)startTransition으로 긴급하지 않은 업데이트 분리Map/Set 사용 (O(1))filter().map() → 하나의 루프로 결합array.length 먼저 체크 후 비싼 비교Remotion 비디오 컴포넌트도 React이므로 동일 원칙 적용:
interpolate()는 매 프레임 호출 → 비싸면 캐싱useMemo / useCallbacktesting
게임 아이디어를 검토해 와우 팩터 5개를 추가하고, 스펙→TC→구현→QA→런칭까지 한 번에 밀어붙이는 일일 게임 런칭 써클. 기존 자동 게임 파이프라인을 대체/승격할 때 사용.
data-ai
Advanced YouTube analysis, transcripts, and metadata extraction.
development
Modern web design engineering skills including design tokens, advanced UI/UX methodologies, accessibility, and game-specific UI patterns. Use for building commercial-grade, performant, and accessible web interfaces.
development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".