No slash command · from ADLC Harness
Provides 51 performance rules for React and Next.js across 8 categories including waterfalls, bundle size, server/client data fetching, and re-renders. Prioritized by impact with dependency-free alternatives.
Ships in ADLC Harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Performance guide for React and Next.js applications: 51 rules in 8 categories, prioritized by impact.
Each rule's full explanation and incorrect/correct examples are in rules/<rule-name>.md in this skill folder. Read only the rules that apply to the code at hand.
better-all, swr, lru-cache), use it only if the project already has it or the user asks. Otherwise use the dependency-free alternative (early-started promises, the data-fetching library already in use, a Map with expiry).memo/useMemo/useCallback rules; the compiler does that.<Activity> and useEffectEvent need React 19.2+, after() needs Next.js 15.1+. Check package.json before applying.Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Eliminating Waterfalls | CRITICAL | async- |
| 2 | Bundle Size Optimization | CRITICAL | bundle- |
| 3 | Server-Side Performance | HIGH | server- |
| 4 | Client-Side Data Fetching | MEDIUM-HIGH | client- |
| 5 | Re-render Optimization | MEDIUM | rerender- |
| 6 | Rendering Performance | MEDIUM | rendering- |
| 7 | JavaScript Performance | LOW-MEDIUM | js- |
| 8 | Advanced Patterns | LOW | advanced- |
async-defer-await - Move await into branches where actually usedasync-parallel - Use Promise.all() for independent operationsasync-dependencies - Start dependent promises early so partial dependencies run in parallelasync-api-routes - Start promises early, await late in API routesasync-suspense-boundaries - Use Suspense to stream contentbundle-barrel-imports - Import directly, avoid barrel filesbundle-dynamic-imports - Use next/dynamic for heavy componentsbundle-defer-third-party - Load analytics/logging after hydrationbundle-conditional - Load modules only when feature is activatedbundle-preload - Preload on hover/focus for perceived speedserver-auth-actions - Authenticate and authorize inside every Server Actionserver-cache-react - Use React.cache() for per-request deduplicationserver-cache-lru - Use LRU cache for cross-request cachingserver-serialization - Minimize data passed to client componentsserver-parallel-fetching - Restructure components to parallelize fetchesserver-after-nonblocking - Use after() for non-blocking operationsserver-dedup-props - Avoid passing the same data twice across RSC propsclient-swr-dedup - Use SWR for automatic request deduplicationclient-event-listeners - Deduplicate global event listenersclient-passive-event-listeners - Use passive listeners for scroll/touchclient-localstorage-schema - Version and minimize localStorage datarerender-defer-reads - Don't subscribe to state only used in callbacksrerender-memo - Extract expensive work into memoized componentsrerender-memo-with-default-value - Hoist non-primitive default props of memoized components to constantsrerender-simple-expression-in-memo - Don't wrap cheap primitive expressions in useMemorerender-dependencies - Use primitive dependencies in effectsrerender-derived-state - Subscribe to derived booleans, not raw valuesrerender-functional-setstate - Use functional setState for stable callbacksrerender-lazy-state-init - Pass function to useState for expensive valuesrerender-transitions - Use startTransition for non-urgent updatesrendering-animate-svg-wrapper - Animate div wrapper, not SVG elementrendering-content-visibility - Use content-visibility for long listsrendering-hoist-jsx - Extract static JSX outside componentsrendering-svg-precision - Reduce SVG coordinate precisionrendering-hydration-no-flicker - Use inline script for client-only datarendering-activity - Use Activity component for show/hiderendering-conditional-render - Use ternary, not && for conditionalsjs-batch-dom-css - Group CSS changes via classes or cssTextjs-index-maps - Build Map for repeated lookupsjs-cache-property-access - Cache object properties in loopsjs-cache-function-results - Cache function results in module-level Mapjs-cache-storage - Cache localStorage/sessionStorage readsjs-combine-iterations - Combine multiple filter/map into one loopjs-length-check-first - Check array length before expensive comparisonjs-early-exit - Return early from functionsjs-hoist-regexp - Hoist RegExp creation outside loopsjs-min-max-loop - Use loop for min/max instead of sortjs-set-map-lookups - Use Set/Map for O(1) lookupsjs-tosorted-immutable - Use toSorted() for immutabilityadvanced-event-handler-refs - Store event handlers in refsadvanced-use-latest - useLatest for stable callback refs// BAD: 순차 실행
const users = await getUsers();
const posts = await getPosts();
// GOOD: 병렬 실행
const [users, posts] = await Promise.all([getUsers(), getPosts()]);
// BAD: 배럴 파일에서 import (트리쉐이킹 실패)
import { Button } from '@/components';
// GOOD: 직접 import
import { Button } from '@/components/ui/button';
// BAD: 부모 리렌더링 시 매번 재계산
function Parent() {
const [count, setCount] = useState(0);
return <><ExpensiveList /><button onClick={() => setCount(c+1)} /></>;
}
// GOOD: memo로 격리
const ExpensiveList = React.memo(function ExpensiveList() { ... });
// React.cache()로 요청 단위 중복 제거
const getUser = React.cache(async (id: string) => {
return await db.user.findUnique({ where: { id } });
});
코드 작성·리뷰 때는 위 Priority 표의 CRITICAL → HIGH 순서로 적용한다. 성능 개선을 주장할 때는 측정(번들 분석, React Profiler, Lighthouse 등)이나 코드 근거를 함께 보고한다.
rules/advanced-event-handler-refs.md (opens in a new tab)rules/advanced-use-latest.md (opens in a new tab)rules/async-api-routes.md (opens in a new tab)rules/async-defer-await.md (opens in a new tab)rules/async-dependencies.md (opens in a new tab)rules/async-parallel.md (opens in a new tab)rules/async-suspense-boundaries.md (opens in a new tab)rules/bundle-barrel-imports.md (opens in a new tab)rules/bundle-conditional.md (opens in a new tab)rules/bundle-defer-third-party.md (opens in a new tab)rules/bundle-dynamic-imports.md (opens in a new tab)rules/bundle-preload.md (opens in a new tab)rules/client-event-listeners.md (opens in a new tab)rules/client-localstorage-schema.md (opens in a new tab)rules/client-passive-event-listeners.md (opens in a new tab)rules/client-swr-dedup.md (opens in a new tab)rules/js-batch-dom-css.md (opens in a new tab)rules/js-cache-function-results.md (opens in a new tab)rules/js-cache-property-access.md (opens in a new tab)rules/js-cache-storage.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jh941213/adlc-harness --plugin adlc-harness29 skills in this plugin
/api-design-principlesREST·GraphQL API를 새로 설계하거나, 엔드포인트·스키마·버전 관리·에러 형식·페이지네이션을 정하거나 API 스펙을 리뷰할 때. Triggers - API 설계, REST, GraphQL, 엔드포인트 설계, API versioning./async-python-patternsPython asyncio·async/await 코드를 작성하거나 디버깅할 때(동시 I/O, gather·TaskGroup, 타임아웃, 세마포어, 큐, 취소, 이벤트 루프 블로킹). Triggers - asyncio, async/await, 비동기 Python, aiohttp./brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation)./build-fix빌드·타입체크·컴파일이 실패해 에러를 고칠 때. Triggers - 빌드 에러, build error, 컴파일 에러, tsc 에러, 타입 에러, 빌드 실패, build fix. 런타임 에러·테스트 실패는 systematic-debugging./client-docs고객 제출용 SI/AO 산출물(아키텍처설계서, 인터페이스설계서, DB설계서, 요구사항추적표, 테스트결과서, 매뉴얼, 운영보고서)을 요청받았을 때 사용. Triggers - 검수 산출물, 납품 문서, 테스트결과서 뽑아줘./commit-push-pr변경을 커밋·푸시하고 PR을 만들 때 사용. Triggers - 커밋해, 푸시해, PR 만들어, PR 올려, commit and push. 리뷰·git log·diff 조회만 할 때는 쓰지 않는다.Other plugins' skills for the same job