react

react is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (464 once invoked), scanned A, original, MIT.

A set of conventions for building React interfaces, where components are reusable pieces of a web page. It covers components, hooks, state, server data, and React 19 features.

In plain words
What is it for?
Use it when creating React components, custom hooks, local or shared state, data-fetching logic, and browser or server-rendered interface code.
Why use it?
It reduces inconsistent component code and common mistakes with hooks, shared state, and data loading. It also keeps components focused and easier to reuse.

Skill for Claude CodeCodex

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

Good fit Use it when creating React components, custom hooks, local or shared state, data-fetching logic, and browser or server-rendered interface code.

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

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/andresquirogadev/skillsense/react/github.svg)](https://agentmods.dev/skills/andresquirogadev/skillsense/react)
Your own site
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/react"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/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/andresquirogadev/skillsense/react"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/react.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 464 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.00000 $0.00464
Opus 5.5 $0.00000 $0.00186
Sonnet 5.5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00046

Measured 1mo ago against content hash 2513f94f4f61, 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.

packages/catalog/skills/react/SKILL.md · 46 lines

How it starts

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

React Skill

You are working in a React codebase. Apply these patterns and conventions.

Component Design

  • Write functional components with named exports. Avoid class components.
  • Keep components small and focused: one concern per component.
  • Extract reusable logic into custom hooks (use prefix, return an object for multiple values).
  • Co-locate component state as close as possible to where it is used.

Hooks

  • Follow the Rules of Hooks: only call hooks at the top level, never inside conditions or loops.
  • Use useState for simple local state; useReducer for complex state with multiple sub-values.
  • Use useCallback to stabilize callbacks passed as props to memoized children.
  • Use useMemo only when profiling shows an actual performance problem.
  • Prefer useId() over manual IDs to avoid hydration mismatches.

State Management

  • For global state, prefer React Context + useReducer for small apps; use Zustand or Jotai for larger ones.
  • Avoid prop drilling more than 2–3 levels deep — reach for Context or a state library.
  • Keep server state in a dedicated library (TanStack Query, SWR) rather than manually managing loading/error/data.

React 19 Features

  • Use useActionState for form actions and loading states — replaces useFormState.
  • Use use(promise) to read async data from Server Components passed as props.
  • Use useOptimistic for instant UI feedback on mutations.
  • ref is now a regular prop; no need for forwardRef in React 19.

Performance

  • Wrap expensive pure components with React.memo.
  • Use key on list items; never use array index as key for dynamic lists.
  • Use <Suspense> for lazy-loaded components and async operations.
  • Use startTransition to mark non-urgent state updates and keep the UI responsive.

Patterns to Avoid

  • Never mutate state directly — always return a new value.
  • Never use index as key in a list that can be reordered or filtered.
  • Never fetch data inside useEffect without cleanup; prefer TanStack Query.
  • Never create components inside render — they will remount on every render.

Read the full file on GitHub · 46 lines

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 First seen · 46 lines · 0 tokens per session scan A 2513f94f4f61

Subscribe to this mod's changes

react is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 464 tokens. 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

Other skills, from other repositories

ask-sonner

Sonner, the React toast library: mounting Toaster once, toast() calls, promise and loading toasts, updating, dismissing, styling, theming, dark mode, positioning. Use when toasts do not appear, appear twice, sit behind a modal, ignore Tailwind classes, or do nothing from a server action.

ericrisco/rsc-harness · 71 tokens

plan-review

Criteria for reviewing implementation plans against quality standards.

kdcokenny/ocx · 11 tokens

agent-dependencies

Perform one conservative dependency or toolchain upgrade in the Elements monorepo and open a validated pull request. Use for nightly or unattended dependency maintenance, outdated package checks, first-party actions/ GitHub Actions updates, and pinned mise tool updates. Use the github-dependabot skill instead when the…

NVIDIA/elements · 73 tokens

agent-debug-ci

Investigate failed scheduled or nightly GitHub Actions runs on the default branch, determine whether the failure is reproducible and repository-owned, implement the smallest evidence-backed fix, validate it, and open a pull request. Use when a failed nightly CI event starts an agent, or when the standard CI or…

NVIDIA/elements · 80 tokens

authoring-patterns

Convert validated playground templates or HTML compositions into reusable pattern files (.examples.ts) in the pattern library. Use this skill whenever the user wants to save, persist, store, or catalog a template, prototype, composition, or playground result as a reusable pattern. Trigger on phrases like "save as…

NVIDIA/elements · 106 tokens

igniteui-blazor-generate-from-image-design

Implement Blazor application views from design images using Ignite UI Blazor components. Uses MCP servers (igniteui-cli, igniteui-theming) to discover components, generate themes, and follow best practices. Triggers when the user provides a design image (screenshot, mockup, wireframe) and wants it built as a working…

IgniteUI/igniteui-cli · 127 tokens