react

react is a skill for Claude Code, Codex from ndisisnd/cook. It costs 41 tokens per session (1,639 once invoked), scanned A, original, MIT.

A set of standards for writing and reviewing React with TypeScript, React being a library for building user interfaces and TypeScript being JavaScript with type checking.

In plain words
What is it for?
Building or reviewing React components, JSX, TSX, hooks, and TypeScript props. It covers cleanup, cancellation, and safe component structure.
Why use it?
It helps prevent mistakes with hooks, effects, component boundaries, asynchronous work, and typed properties.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Building or reviewing React components, JSX, TSX, hooks, and TypeScript props. It covers cleanup, cancellation, and safe component structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ndisisnd/cook/react
Install

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.

Any agent
npx skills add ndisisnd/cook --skill react
Clone the repo
git clone --depth 1 https://github.com/ndisisnd/cook

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for react

README.md
[![agentmods](https://agentmods.dev/badge/skills/ndisisnd/cook/react/github.svg)](https://agentmods.dev/skills/ndisisnd/cook/react)
Your own site
<a href="https://agentmods.dev/skills/ndisisnd/cook/react"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/react/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for react

Your own site · 80×15
<a href="https://agentmods.dev/skills/ndisisnd/cook/react"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/react.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,639 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01639
Opus 5.5 $0.00016 $0.00656
Sonnet 5.5 $0.00008 $0.00328
Haiku 4.5 $0.00004 $0.00164

Measured 1mo ago against content hash 89c85953e242, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

react 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 1mo 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.

standards/react/SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React

Target: React 19.x with React Compiler 1.0 and @types/react 19. Load by default for any .tsx or .jsx task; pull refs only when the task needs that depth. Framework rules (routing, caching, Server Actions wiring, CSP) live in the framework's skill.

P0 — Hook Correctness

  • Dependency arrays must be exhaustive (exhaustive-deps). Never suppress the linter — fix the logic.
  • useEffect is for syncing with external systems only. Derived data belongs in render; event-specific logic belongs in event handlers. Prefer framework data APIs, route loaders, TanStack Query, or SWR over raw fetch effects.
  • Effects must clean up subscriptions, timers, and listeners. Use AbortController for cancellable fetches and an ignore flag for non-abortable async work.
  • Never call hooks inside conditions, loops, nested functions, event handlers, class components, try/catch/finally, or after a conditional return. use() is the exception: it may be called conditionally.
  • Never read or write ref.current during render (except lazy init if (ref.current === null)). Read refs in effects and event handlers.
  • Lazy-initialize expensive state: useState(() => compute()).
  • Memoization: when React Compiler is enabled, do not add new useMemo, useCallback, or React.memo; the compiler memoizes. Keep existing manual memoization unless tests and profiling show removal is safe. Without the compiler, memoize only when identity is observable or profiling proves value.
  • useTransition / useDeferredValue for non-urgent updates that must not block input.
  • useEffectEvent (stable since React 19.2) for effect-local callbacks that need the latest props/state without re-running the effect. Call it only from inside effects; never use it to hide real dependencies.

P0 — Component Basics

  • Function components only. The one exception is an error boundary when no library (react-error-boundary) or framework boundary (error.tsx) is available.
  • One exported component per file; keep small helpers module-local. Prefer named exports — except where a framework requires default exports (Next.js page, layout, route, error, loading, not-found, default; React Router route modules; React.lazy targets).
  • ~250 lines is a review smell. Split by responsibility before a component accumulates unrelated state, effects, or branches.
  • No nested component definitions — define components at module scope.
  • Use stable IDs as list keys; never array index. Use useId for accessibility IDs, never for keys.
  • Prefer ternary (cond ? <A /> : null) over && when the left side can be 0 or ''.
  • Do not thread props through components that do not use them — use composition, Context, or a store.
  • Custom dialogs, menus, tabs, and compound widgets must implement keyboard interaction, focus management, and ARIA semantics, or use a proven accessible primitive.
  • Wrap independently failing subtrees in error boundaries. They do not catch errors in event handlers or async code; handle those explicitly.

Read the full file on GitHub · 104 lines

Files

What ships with it

8 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.

Changes

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.

  1. 1mo ago Changed · -12 lines 89c85953e242
  2. 3mo ago First seen · 116 lines · 41 tokens per session scan A 50f921153486

Subscribe to this mod's changes

react is a skill published in the GitHub repository ndisisnd/cook (2 stars, last pushed 1mo ago), licensed MIT. It adds 41 tokens to every session and 1,639 once invoked, about $0.0002 per session on Opus 5.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-08-31.

Related

react compared with skills from other repositories

react next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reactndisisnd/cookSkill21mo agoMITA41Claude Code, Codex
frontend-architecture-plannerytvee-dev/webdev-agent-kitSkill728d agoApache-2.0A47Claude Code, Codex
frontend-layout-implementerytvee-dev/webdev-agent-kitSkill728d agoApache-2.0A50Claude Code, Codex
react-expertJeffallan/claude-skillsSkill13ktodayMITA79Claude Code
moai-design-toolsmodu-ai/moai-adkSkill1.3ktodayApache-2.0A45Claude Code
frontendcode-yeongyu/oh-my-openagentSkill71ktodaynoneA79Claude Code, Codex
moai-domain-uiuxmodu-ai/moai-adkSkill1.3ktodayApache-2.0A49Claude Code