Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ngocsangyem/MeowKit --skill react-patternsgit clone --depth 1 https://github.com/ngocsangyem/MeowKitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ngocsangyem/meowkit/react-patterns)<a href="https://agentmods.dev/skills/ngocsangyem/meowkit/react-patterns"><img src="https://agentmods.dev/badge/skills/ngocsangyem/meowkit/react-patterns.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.00666 |
| Opus 5 | $0.00032 | $0.00333 |
| Sonnet 5 | $0.00013 | $0.00133 |
| Haiku 4.5 | $0.00006 | $0.00067 |
Grade A, and why
mk:react-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 72 lines · 63 tokens per session scan A e2d11e795065
mk:react-patterns is a skill published in the GitHub repository ngocsangyem/MeowKit (14 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 666 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
React Performance
Skill "React Performance" from databayt/hogwarts, covering react performance skill, memoization, code splitting and checklist.
trigger-realtime-and-frontend
Trigger.dev client/frontend surface: subscribe to runs in realtime (runs.subscribeToRun and the @trigger.dev/react-hooks hook useRealtimeRun), consume metadata and AI/text streams in React (useRealtimeStream), trigger tasks from the browser (useTaskTrigger, useRealtimeTaskTrigger), and mint scoped frontend credentials…
react-expert
Expert-level React development with hooks, performance optimization, state management, and modern patterns. Use when the user mentions frontend, hooks, JSX, TypeScript, or Next.js, or when the task involves Modern React, State Management, Forms, or Performance Optimization.
nextjs-development
Next.js 16.2.4 with TypeScript — App Router, Server Components, use cache directive, Turbopack dev, Server Actions, ISR, SSR, SSG, MCP devtools, metadata API, route handlers, instrumentation.
nextjs-agent-first
Next.js 16.3+ agent-first features: AGENTS.md, first-party Skills, agent-browser React introspection, actionable errors. Use when building Next.js apps with AI coding agents.
swc-docs
SWC 1.x — Rust-based JS/TS compiler. @swc/cli, @swc/core, .swcrc config, preset-env, minification, plugins.