agentsclimarketplace

React patterns

Skill ngocsangyem/MeowKit/.claude/skills/react-patterns

Production ready. AI Agent Workflow System for Claude Code

Install
npx -y skills add ngocsangyem/MeowKit --skill react-patterns

Assembled 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:

PriorityCategoryReferenceKey rules
CRITICALEliminating waterfallsreferences/async-patterns.mdDefer await, parallel promises, Suspense boundaries
CRITICALBundle sizereferences/bundle-optimization.mdNo barrel imports, dynamic imports, defer third-party
HIGHServer performancereferences/server-patterns.mdReact.cache(), LRU cache, parallel fetching, after()
MEDIUMRe-render optimizationreferences/rerender-optimization.mdDerived state, functional setState, memo, transitions
MEDIUMRendering perfreferences/rendering-patterns.mdcontent-visibility, hoist JSX, conditional render

Process

  1. Identify the performance concern (waterfall? bundle? re-render? server?)
  2. Load the matching reference file
  3. Apply rules — each rule has: problem, solution, code example
  4. 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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.