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

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/andresquirogadev/skillsense/react
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.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.svg" alt="Measured on agentmods" 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. 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.00000 $0.00464
Opus 5 $0.00000 $0.00232
Sonnet 5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00046

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

paseo-plugin

Build and manage trusted local Paseo plugins. Use when the user asks to create, edit, install, reload, enable, disable, remove, or troubleshoot a Paseo plugin; add a native surface, sidebar item, or workspace panel; add Command Center items or slash commands; add composer pills or attachment sources; transform…

getpaseo/paseo · 95 tokens

paseo

Paseo reference for managing projects, workspaces, workspace scripts, agents, schedules, and heartbeats.

getpaseo/paseo · 26 tokens

paseo-help

Answer questions about the Paseo product and app, including setup, configuration, connectivity, providers, workspaces, updates, logs, and troubleshooting. Use when a user inside Paseo asks how Paseo works, how to configure it, or why something is broken; use the paseo skill instead to operate agents and workspaces…

getpaseo/paseo · 75 tokens

paseo-advisor

Spin up a single agent as an advisor — second opinion on the current task. Use when the user says "advisor", "second opinion", "what does X think", or wants an outside take without delegating the work itself.

getpaseo/paseo · 52 tokens

paseo-handoff

Hand off the current task to another agent with full context. Use when the user says "handoff", "hand off", "hand this to", or wants to pass work to another agent.

getpaseo/paseo · 45 tokens

paseo-committee

Form a committee of two high-reasoning agents to step back, do root cause analysis, and produce a plan. Use when stuck, looping, tunnel-visioning, or facing a hard planning problem.

getpaseo/paseo · 48 tokens