本文へ移動
cccskills
無料GitHub で公開

mk:react-patterns

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.

インストール方法を見る

含まれるファイル(6)

  • SKILL.md3.0 KB
  • references/async-patterns.md1.6 KB
  • references/bundle-optimization.md1.5 KB
  • references/rendering-patterns.md1.6 KB
  • references/rerender-optimization.md2.0 KB
  • references/server-patterns.md1.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use this skill to generate well-branded interfaces and assets for MeowKit (AI Agent Toolkit for Claude Code), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

mk-advise

無料

Turn a raw idea into ONE honest recommendation: interview one question at a time until confirmed, then give a verdict with trade-offs and a checklist. Not for options or debate.

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

Browser automation CLI for agents: navigate, click/fill, screenshot, extract data, test apps, Electron/Slack, cloud browsers. NOT for the user's real Chrome profile/cookies (mk:chrome-profile).

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

Detects the right agent and complexity tier at Phase 0 orient; runs first in every workflow. NOT for runtime agent routing inside a single skill.

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

Angular v20+ patterns: components, signals, services, forms, routing, HTTP, testing, SSR. Auto-activates on .ts files in Angular projects (angular.json detected).

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

Design and review durable REST, GraphQL, RPC, or event API contracts: shape, compatibility, pagination, error semantics. Discovers existing consumers first. Not implementation, schema, or release.

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

ngocsangyem のスキルをすべて見る

このスキルの問題を報告する