react

A review skill for React and Next.js code, which are JavaScript tools for building user interfaces and web applications. It checks runtime and rendering problems, then points to detailed guidance on effects, re-renders, React 19 APIs, and request chains.

In plain words
What is it for?
Use it when opening or reviewing JSX or TSX files, or when checking whether React code follows common runtime and rendering practices.
Why use it?
It catches common bugs and slow or confusing behaviour caused by incorrect component definitions, unstable list keys, unnecessary effects, or uncancelled requests.

Skill for Claude CodeCodex

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.

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

Made for: Claude Code, Codex.

Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,063 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00114 $0.02063
Opus 5 $0.00057 $0.01032
Sonnet 5 $0.00023 $0.00413
Haiku 4.5 $0.00011 $0.00206

Measured 2d ago against content hash e3ecf2caa16a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

skills/dev/react/SKILL.md · 180 lines

How it starts

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

React Best Practices Audit

Focused audit layer for React and Next.js runtime/rendering issues. Start with the universal checks, then route to the reference that matches the user's specific question.

Universal Checks (no exceptions — run these every time)

These checks take seconds to scan for and catch common high-impact mistakes. Skip them only if you have already verified them in the same session.

  1. Components defined inside other components They are re-created on every render; state resets and memoization is lost. Extract to module scope.

  2. Array index as key in dynamic lists key is React's identity anchor. When lists reorder, insert, or delete, an index key reassigns identity to the wrong element. Use a stable ID from the data. Exception: truly static, never-reordered lists.

  3. Derived state via useState + useEffect If state is only a calculation from props/state, compute it during render (optionally useMemo for expensive work) instead of syncing with an Effect.

  4. Data fetching in useEffect without cleanup Slow responses can overwrite fresh data. Use cleanup/cancellation, TanStack Query, or Server Components so stale requests cannot win the race.

  5. Unmemoized Context provider value New object/function references make every consumer re-render. Memoize the provider value or split data and API contexts.

  6. Server Actions for client-side data reads Server Actions serialize calls and are for mutations. Reads should use RSC, route handlers, or a client data layer that can parallelize and dedupe.

  7. React.FC and forwardRef as default patterns Prefer plain function components. React.FC adds noise and misleading children behavior; React 19 makes ref a normal prop for new code. Load the React 19 reference for version-specific migration details.

Ownership Boundary with Frontend

react owns React runtime/rendering issues: Effects, re-renders, Context, keys, Server Actions, hydration, React 19 APIs, waterfalls, and bundle/runtime performance. frontend owns broader TypeScript, UI accessibility, browser security, Next.js file boundaries, Tailwind/component API patterns, and frontend file structure.

Read the full file on GitHub · 180 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. 2d ago First seen · 180 lines · 114 tokens per session scan A e3ecf2caa16a

Subscribe to this mod's changes

react is a skill published in the GitHub repository kriscard/Skills (13 stars, last pushed 21d ago), licensed MIT. It adds 114 tokens to every session and 2,063 once invoked, about $0.0006 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-08-30.

Related

Other skills, from other repositories

create-custom-grader

Use when converting an existing benchmark, rubric, verifier, task YAML/JSON, or domain check into SkillEvaluator BYOG/BYOT custom evaluation.

NVIDIA/SkillEvaluator · 35 tokens

simple

Summarize short user notes into clear action items.

NVIDIA/SkillEvaluator · 13 tokens

aidlc-master

Runs the AWS AI-DLC (AI-Driven Development Life Cycle) methodology end to end: an adaptive three-phase workflow (Inception → Construction → Operations) with human approval gates, a full audit trail, and all artifacts in aidlc-docs/. Use when the user says "Using AI-DLC", "AI-DLC", "AIDLC", "aidlc-master", or asks for…

fabricioctelles/skills · 243 tokens

agent-ready-cloudflare

Audit and improve website readiness for AI agents using the Cloudflare "Is It Agent Ready?" scanner (isitagentready.com). Covers scanning via API, interpreting results, generating implementation prompts, and fixing every check. Use when the user mentions "agent ready", "isitagentready", "AI agent scan", "agent…

fabricioctelles/skills · 158 tokens

slop-eval

Objectively evaluate a UI/web design against the pols.dev anti-slop design law: detect catalogued slop tells with cited evidence, score 8 weighted axes (color, type, components, layout, motion, execution, signature, cohesion), and emit a Slop Report with a 0–100 Slop Index and grade. Use when the user asks to…

fabricioctelles/skills · 142 tokens

astro-sites-manager

Comprehensive skill for building, migrating, and maintaining Astro v7 projects. Covers best practices from the official AGENTS.md, the v6→v7 migration path, validation of breaking/deprecated patterns, AI-enhanced dev server usage (background mode, JSON logging), advanced routing with src/fetch.ts, route caching…

fabricioctelles/skills · 230 tokens