React patterns
Production ready. AI Agent Workflow System for Claude Code
npx -y skills add ngocsangyem/MeowKit --skill react-patternsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when writing, reviewing, or optimizing React/Next.js code. Triggers on .tsx/.jsx files, React component work, Next.js routes, bundle optimization, re-render issues, or performance improvements. Auto-activates alongside mk:typescript when React project detected.
SKILL.md
3.0 KB, 461 tokens by cl100k_base, as published. Nobody here has run it
React Patterns
React and Next.js performance optimization — curated rules across priority categories drawn from framework docs and production practice.
Complements mk:typescript (type safety) and mk:vue (Vue patterns). This skill covers React-specific performance patterns.
When to Use
- Writing or reviewing React/Next.js components
- Optimizing bundle size or render performance
- Fixing re-render issues
- Server vs client component decisions
- Data fetching patterns
Rule Categories (by priority)
Load the relevant reference when working in that area:
| Priority | Category | Reference | Key rules |
|---|---|---|---|
| CRITICAL | Eliminating waterfalls | references/async-patterns.md | Defer await, parallel promises, Suspense boundaries |
| CRITICAL | Bundle size | references/bundle-optimization.md | No barrel imports, dynamic imports, defer third-party |
| HIGH | Server performance | references/server-patterns.md | React.cache(), LRU cache, parallel fetching, after() |
| MEDIUM | Re-render optimization | references/rerender-optimization.md | Derived state, functional setState, memo, transitions |
| MEDIUM | Rendering perf | references/rendering-patterns.md | content-visibility, hoist JSX, conditional render |
Process
- Identify the performance concern (waterfall? bundle? re-render? server?)
- Load the matching reference file
- Apply rules — each rule has: problem, solution, code example
- Verify improvement (Lighthouse, bundle analyzer, React DevTools)
Gotchas
- Premature optimization: optimizing re-renders before measuring → measure first with React DevTools Profiler
- Over-memoizing: wrapping everything in useMemo/React.memo → memo only when profiler shows expensive re-renders
- Barrel file trap: importing from index.ts pulls entire module → always import directly from source file
Workflow Integration
Auto-activates during Phase 3 (Build) when React/Next.js project detected. Loaded by developer agent alongside mk:typescript.
What ships with it: 5 files
8.4 KB alongside SKILL.md
references/
- async-patterns.md1.6 KB
- bundle-optimization.md1.5 KB
- rendering-patterns.md1.6 KB
- rerender-optimization.md2.0 KB
- server-patterns.md1.7 KB