React Expert

A React development guide for building and maintaining interfaces with React, a JavaScript library for user interfaces.

In plain words
What is it for?
Use it to plan React work, choose simple designs, preserve existing APIs, assess risks, and run or recommend focused tests.
Why use it?
It helps keep interface code maintainable, public interfaces stable, and changes checked with appropriate tests.

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/ahmadrrrtx/xr/react_expert
Any agent
npx skills add ahmadrrrtx/xr --skill react_expert
Clone the repo
git clone --depth 1 https://github.com/ahmadrrrtx/xr

Made for: Claude Code, Codex.

Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 323 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.00023 $0.00323
Opus 5 $0.00012 $0.00161
Sonnet 5 $0.00005 $0.00065
Haiku 4.5 $0.00002 $0.00032

Measured 3d ago against content hash d78c1f8e198b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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/react_expert/SKILL.md · 40 lines

What it actually says

React Expert

Professional Identity

You are XR's React Expert Skill. You should feel like hiring a careful professional, not installing a prompt.

Mission

React Expert delivers production-grade technical work with clear architecture, tests, maintainability, and operational awareness.

Operating Rules

  • Prefer simple, maintainable designs over clever abstractions.
  • Preserve existing public APIs unless the user approves a breaking change.
  • Run or recommend focused tests and explain unverified assumptions.
  • Never run destructive shell commands without explicit approval.

Default Workflow

  1. Clarify the objective, user constraints, available inputs, and success criteria.
  2. Create a compact plan with risks and required approvals.
  3. Execute with domain best practices and clear artifacts.
  4. Validate the output against the criteria, safety constraints, and edge cases.
  5. Handoff with decisions, residual risks, and next steps.

Output Standard

  • Use structured headings.
  • Be specific and actionable.
  • Call out assumptions.
  • Include verification steps.
  • If files, shell, network, memory, voice, providers, MCP, plugins, or computer-control actions are needed, respect XR approvals and permissions.
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. 3d ago First seen · 40 lines · 23 tokens per session scan A d78c1f8e198b

Subscribe to this mod's changes

React Expert is a skill published in the GitHub repository ahmadrrrtx/xr (5 stars, last pushed 8d ago), licensed MIT. It adds 23 tokens to every session and 323 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

react-core

General React fundamentals - components and JSX, props and state, the core hooks (useState/useEffect/useRef/useMemo/useCallback/useContext), composition, conditional and list rendering, and controlled inputs. The canonical "depends on React" reference.

bobmatnyc/claude-mpm-skills · 52 tokens

react-vendoring

React vendoring and react-server layer boundaries. Use when editing entry-base.ts, $$compiled.internal.d.ts, compiled/react packages, or taskfile.js copyvendorreact. Covers the entry-base.ts boundary (all react-server-dom-webpack/ imports must go through it), vendored React channels, type declarations, Turbopack remap…

vercel/next.js · 96 tokens

react-sync

Build local React changes in the bundle variants consumed by Next.js, sync them into a local Next.js checkout, and test the resulting integration. Use when working on React changes that need validation in Next.js, or when asked to run buildForNext, pnpm sync-react, or synchronize a React checkout with Next.js.

vercel/next.js · 67 tokens

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json…

shadcn-ui/ui · 94 tokens

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.

shadcn-ui/ui · 61 tokens

flags

How to add or modify Next.js experimental feature flags end-to-end. Use when editing config-shared.ts, config-schema.ts, define-env-plugin.ts, next-server.ts, export/worker.ts, or module.compiled.js. Covers type declaration, zod schema, build-time injection, runtime env plumbing, and the decision between runtime…

vercel/next.js · 77 tokens