react-frontend

react-frontend is a skill for Claude Code, Codex from williamzujkowski/standards. It costs 67 tokens per session (2,547 once invoked), scanned A, original, MIT.

A guide to building React web interfaces with hooks, state management, performance techniques, testing, and accessibility. React is a JavaScript library for creating interfaces from reusable components.

In plain words
What is it for?
Use it to build React components, manage local and shared state, handle API data, optimize rendering, write tests, and add ARIA accessibility support.
Why use it?
It helps developers decide where state belongs, avoid unnecessary work, test components, and make interfaces usable with assistive technology.

Skill for Claude CodeCodex

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

Good fit Use it to build React components, manage local and shared state, handle API data, optimize rendering, write tests, and add ARIA accessibility support.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/williamzujkowski/standards/react"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/react.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,547 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00067 $0.02547
Opus 5.5 $0.00027 $0.01019
Sonnet 5.5 $0.00013 $0.00509
Haiku 4.5 $0.00007 $0.00255

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

Security

Grade A, and why

react-frontend scanned grade A with 1 finding 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (config/jest.config.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

fetch(url)
skills/frontend/react/SKILL.md · 446 lines

How it starts

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

React Frontend Development Standards

Quick Reference

Essential Hooks

// State Hook
const [count, setCount] = useState(0);
const [user, setUser] = useState<User | null>(null);

// Effect Hook
useEffect(() => {
  // Side effect
  return () => {/* cleanup */};
}, [dependencies]);

// Context Hook
const theme = useContext(ThemeContext);

// Ref Hook
const inputRef = useRef<HTMLInputElement>(null);

// Memo Hooks
const value = useMemo(() => expensiveCalc(a, b), [a, b]);
const callback = useCallback(() => doSomething(a), [a]);

State Management Decision Tree

Is state needed in >2 components?
  NO  -> Use local state (useState)
  YES -> Is it global UI state (theme, auth)?
    YES -> Use Context API
    NO  -> Is it server data (API responses)?
      YES -> Use React Query/TanStack Query
      NO  -> Complex state with many actions?
        YES -> Use Redux Toolkit or Zustand
        NO  -> Use Context API + useReducer

Component Checklist

  • Use functional components with hooks
  • Destructure props with TypeScript types
  • Use semantic HTML elements
  • Add proper ARIA labels where needed
  • Memoize expensive computations with useMemo
  • Memoize callbacks passed to children with useCallback
  • Add loading and error states
  • Clean up effects with return function
  • Keep components under 300 lines

Performance Checklist

  • Use React.lazy() for code splitting
  • Wrap expensive components in React.memo()
  • Implement virtual scrolling for long lists
  • Lazy load images with loading="lazy"
  • Avoid inline object/array creation in JSX

Quick Start

# Create React app with TypeScript
npx create-react-app my-app --template typescript

# Install testing library
npm install --save-dev @testing-library/react @testing-library/jest-dom

# Install React Query for server state
npm install @tanstack/react-query

# State management (choose one)
npm install zustand          # Lightweight
npm install @reduxjs/toolkit # Enterprise

Read the full file on GitHub · 446 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. 2mo ago First seen · 446 lines · 67 tokens per session scan A 8d39dbd6409f

Subscribe to this mod's changes

react-frontend is a skill published in the GitHub repository williamzujkowski/standards (22 stars, last pushed 3mo ago), licensed MIT. It adds 67 tokens to every session and 2,547 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.

Related

react-frontend compared with skills from other repositories

react-frontend next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-frontendwilliamzujkowski/standardsSkill223mo agoMITA67Claude Code, Codex
build-ghost-appTryGhost/GhostSkill56ktodayMITA44Claude Code, Codex
material-ui-tailwindmui/material-uiSkill99ktodayMITA67Claude Code, Codex
fuzzy-rankingTanStack/tableSkill29k6d agoMITA62Claude Code, Codex
r3f-best-practiceszebbern/claude-code-guideSkill4.7k4d agoMITA74Claude Code, Codex
git-safetytamagui/tamaguiSkill14k3d agoMITA42Claude Code
onchainkitalsk1992/CloddsBotSkill3.1k16d agoMITA24Claude Code, Codex