react-code

react-code is a skill for Claude Code from gaia-react/gaia. It costs 110 tokens per session (3,765 once invoked), scanned A, original, MIT.

A set of conventions for writing and reviewing React components, pages, routes, hooks, and forms.

In plain words
What is it for?
It is for building or debugging React interfaces and hooks, including event handlers, stale closures, infinite re-renders, and component extraction.
Why use it?
It helps keep React changes consistent and avoids adding packages or custom code when existing project code or browser features already solve the problem.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It is for building or debugging React interfaces and hooks, including event handlers, stale closures, infinite re-renders, and component extraction.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gaia-react/gaia/react-code
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 gaia-react/gaia --skill react-code
Clone the repo
git clone --depth 1 https://github.com/gaia-react/gaia

Made for: Claude Code.

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-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/gaia-react/gaia/react-code/github.svg)](https://agentmods.dev/skills/gaia-react/gaia/react-code)
Your own site
<a href="https://agentmods.dev/skills/gaia-react/gaia/react-code"><img src="https://agentmods.dev/badge/skills/gaia-react/gaia/react-code/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-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/gaia-react/gaia/react-code"><img src="https://agentmods.dev/badge/skills/gaia-react/gaia/react-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,765 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 134
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
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.00110 $0.03765
Opus 5.5 $0.00044 $0.01506
Sonnet 5.5 $0.00022 $0.00753
Haiku 4.5 $0.00011 $0.00377

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

Security

Grade A, and why

react-code 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.

frontend/.claude/skills/react-code/SKILL.md · 204 lines

How it starts

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

React Code

Write and edit React components, pages, routes, hooks, and forms following project conventions.

Contents: Reach for the Platform First; Pre-Flight Gates; Memoization: compiler-first; Component Structure; Data Loading; Route-Page Architecture; References.

Reach for the Platform First

Before installing a package or hand-rolling a primitive, walk this ladder and stop at the first hit:

  1. Existing project code, a component, hook, or util already covers it (form inputs → Gate 2).
  2. Web platform, a browser API or native element does the job (Intl, URL, structuredClone(), <dialog>, modern CSS).
  3. Already-installed dependency, check package.json before adding a sibling that does the same job. For component/hook traps Claude often hand-rolls (client-only/useHydrated, sse, debounce-fetcher), see the remix-utils decision map at wiki/dependencies/remix-utils.md before reinventing.
  4. New dependency, only when 1-3 genuinely fall short; the added weight has to earn its place.
  5. Custom code, last resort, kept minimal.

Reaching for the platform replaces a needless dependency or bespoke widget; it never overrides accessibility, input validation, or an existing project component (a wrapper exists for a reason).

Pre-Flight Gates

Run each gate when its pattern appears in your changes.

Gate 1: Hook Check

Before writing useEffect: decide whether it should be an Effect at all. Lint (react-you-might-not-need-an-effect) reports the ones that should not: state derived from props or state, user-event logic, chained updates, notifying a parent, and resetting state on a prop change. An Effect is right when it synchronizes with an external system (browser API, third-party widget, network). Add cleanup (a fetch aborts its AbortController; a client that cannot cancel uses an ignore flag: references/hook-patterns.md).

Before writing useMemo, useCallback, or memo: don't; see ## Memoization: compiler-first.

Read the full file on GitHub · 204 lines

Files

What ships with it

4 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 · +1 lines 607a9203eee9
  2. 1mo ago Changed · -7 lines eb4cb3991acb
  3. 1mo ago Changed 6e993cd58b46
  4. 1mo ago Changed · +2 lines 76428718e894
  5. 1mo ago Changed · -23 lines 5aa4cdcb561b
  6. 1mo ago Changed · -77 tokens per session 8a7c9882d569
  7. 1mo ago Changed · +13 lines 4ad98f1306a8
  8. 1mo ago Changed · +16 lines · +11 tokens per session d8797b827fe4
  9. 1mo ago Changed · +2 lines 6d9c860d023d
  10. 2mo ago First seen · 200 lines · 176 tokens per session scan A d5787180fc63

Subscribe to this mod's changes

react-code is a skill published in the GitHub repository gaia-react/gaia (26 stars, last pushed 1mo ago), licensed MIT. It adds 110 tokens to every session and 3,765 once invoked, about $0.0004 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-30.

Related

react-code compared with skills from other repositories

react-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-codegaia-react/gaiaSkill261mo agoMITA110Claude Code
mcp-serverDaleStudy/skillsSkill428d agoMITA58Claude Code
migrate-oxlintoxc-project/oxcSkill24ktodayMITA52Claude Code, Codex
inspector-workbenchCopilotKit/CopilotKitSkill39ktodayMITA112Claude Code
react-doctoramplifthq/opentagSkill1.4k14d agoMITA42Claude Code, Codex
devtools-bidirectionalTanStack/devtoolsSkill519yesterdayMITA59Claude Code, Codex
react-doctorPostHog/posthog-fossSkill736todayMITA32Claude Code, Codex