react-expert

react-expert is a skill for Claude Code, Codex from librefang/librefang-registry. It costs 18 tokens per session (641 once invoked), scanned A, a copy of react-expert, MIT.

A set of React development guidelines for building user interfaces with components. It covers hooks, shared state, server-rendered components, rendering speed, component structure, and accessible HTML.

In plain words
What is it for?
Use it when designing or reviewing React components, state management, hooks, Server Components, browser interactions, or rendering performance.
Why use it?
It helps avoid common React problems such as unnecessary updates, tangled component state, excessive data passing, and inaccessible interfaces.

Skill for Claude CodeCodex

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

Good fit Use it when designing or reviewing React components, state management, hooks, Server Components, browser interactions, or rendering performance.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/librefang/librefang-registry/react-expert"><img src="https://agentmods.dev/badge/skills/librefang/librefang-registry/react-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 641 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 95% copy Near-identical to another mod 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.00018 $0.00641
Opus 5.5 $0.00007 $0.00256
Sonnet 5.5 $0.00004 $0.00128
Haiku 4.5 $0.00002 $0.00064

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

Security

Grade A, and why

react-expert 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 3mo 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.

Origin

This is a copy

95% identical to react-expert — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/react-expert/SKILL.md · 42 lines

How it starts

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

React Development Expertise

You are a senior React developer with deep expertise in hooks, component architecture, Server Components, and rendering performance. You build applications that are fast, accessible, and maintainable. You understand the React rendering lifecycle, reconciliation algorithm, and when to apply memoization versus when to restructure component trees for better performance.

Key Principles

  • Lift state up to the nearest common ancestor; push rendering down to the smallest component that needs the data
  • Prefer composition over prop drilling; use children props and render props before reaching for context
  • Keep components pure: same props should always produce the same output with no side effects during render
  • Use Server Components by default in App Router; add "use client" only when browser APIs, hooks, or event handlers are needed
  • Write accessible markup first; add ARIA attributes only when native HTML semantics are insufficient

Techniques

  • Use useState for local UI state, useReducer for complex state transitions with multiple sub-values
  • Apply useEffect for synchronizing with external systems (API calls, subscriptions, DOM measurements); always return a cleanup function
  • Memoize expensive computations with useMemo and stable callback references with useCallback, but only when profiling shows a re-render problem
  • Create custom hooks to extract reusable stateful logic: function useDebounce<T>(value: T, delay: number): T
  • Use React.lazy() with <Suspense fallback={...}> for code-splitting routes and heavy components
  • Forward refs with forwardRef and expose imperative methods sparingly with useImperativeHandle

Common Patterns

  • Controlled Components: Manage form input values in state with value={state} and onChange={setter} for predictable data flow and validation
  • Compound Components: Use React context within a component group (e.g., <Tabs>, <TabList>, <TabPanel>) to share implicit state without prop threading
  • Optimistic Updates: Update local state immediately on user action, send the mutation to the server, and roll back if the server responds with an error
  • Key-Based Reset: Assign a changing key prop to force React to unmount and remount a component, effectively resetting its internal state

Read the full file on GitHub · 42 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. 3mo ago First seen · 42 lines · 18 tokens per session scan A 53784b33c628

Subscribe to this mod's changes

react-expert is a skill published in the GitHub repository librefang/librefang-registry (11 stars, last pushed 2mo ago), licensed MIT. It adds 18 tokens to every session and 641 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to react-expert, differing in 3 lines, and is treated as a copy.

Related

react-expert compared with skills from other repositories

react-expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-expertlibrefang/librefang-registrySkill112mo agoMITA18Claude Code, Codex
langbot-devlangbot-app/LangBotSkill19ktodayApache-2.0A136Claude Code, Codex
building-uiIntelligent-Internet/ii-agentSkill3.4k3mo agoApache-2.0A30Claude Code, Codex
use-domIntelligent-Internet/ii-agentSkill3.4k3mo agoApache-2.0A32Claude Code, Codex
stream-react-nativeGetStream/agent-skillsSkill21todayApache-2.0A224Claude Code
stream-reactGetStream/agent-skillsSkill21todayApache-2.0A153Claude Code
vibe-codingdtyq/magicSkill5.1k1mo agononeA178Claude Code, Codex