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.
npx skills add Miaoge-Ge/coding-agent-skills --skill react-expertgit clone --depth 1 https://github.com/Miaoge-Ge/coding-agent-skillsWrote 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.
[](https://agentmods.dev/skills/miaoge-ge/coding-agent-skills/react-expert)<a href="https://agentmods.dev/skills/miaoge-ge/coding-agent-skills/react-expert"><img src="https://agentmods.dev/badge/skills/miaoge-ge/coding-agent-skills/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.
<a href="https://agentmods.dev/skills/miaoge-ge/coding-agent-skills/react-expert"><img src="https://agentmods.dev/badge/skills/miaoge-ge/coding-agent-skills/react-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00090 | $0.01184 |
| Opus 5.5 | $0.00036 | $0.00474 |
| Sonnet 5.5 | $0.00018 | $0.00237 |
| Haiku 4.5 | $0.00009 | $0.00118 |
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.
How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Expert
UI is a pure function of state. Derive during render; use effects only to sync with the outside world. Most "React performance" problems are really "I created an effect/state I didn't need."
When to Use
- Building or refactoring React components and custom hooks.
- Bugs: stale state, infinite render loops, effects firing too often, lost input focus, extra re-renders.
- Choosing state management (local vs lifted vs context vs server cache vs store).
- Effects, refs, memoization, Suspense, or Server Components.
When NOT to Use
- Pure TypeScript typing →
typescript-expert. - Next.js routing/server actions/caching specifics →
nextjs-expert. - Styling only →
tailwind-expert. Accessibility semantics →accessibility-expert.
Core Principles
1. Render is pure; derive don't sync
- Compute values from props/state during render. Don't mirror props into state, then sync with
useEffect— that adds a render and bugs. - Reset component state with a
key, not an effect. Adjust state during render (the rare "store previous value" pattern) instead of in an effect when possible.
2. useEffect is an escape hatch
- It's for synchronizing with external systems (network, subscriptions, DOM, timers) — not for transforming data or responding to events.
- Event logic belongs in event handlers, not effects. If an effect only runs because a user did something, it's probably wrong.
- Always clean up (abort fetches, clear timers, unsubscribe) in the returned function. Give complete dependency arrays; if a dep "shouldn't" re-run things, restructure (move it into a ref, a reducer, or out of the component).
3. State, placed correctly
- Local
useState→useReducerwhen transitions are related/complex → lift to the closest common parent → Context for low-frequency global values (theme, auth) → external store (Zustand/Redux) for high-frequency or cross-cutting state. - Server data is not UI state — use TanStack Query or RSC fetching for caching, dedup, and revalidation. Don't hand-roll it in
useEffect.
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.
- 3mo ago First seen · 91 lines · 90 tokens per session scan A a4360cf8bebb
react-expert is a skill published in the GitHub repository Miaoge-Ge/coding-agent-skills (7 stars, last pushed 6mo ago), licensed MIT. It adds 90 tokens to every session and 1,184 once invoked, about $0.0004 per session on Opus 5.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.
react-expert compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| react-expertMiaoge-Ge/coding-agent-skills | Skill | 7 | 6mo ago | MIT | A | 90 | Claude Code |
| vercel-react-best-practiceskok-o/contextos-agents | Skill | 10 | 22d ago | Apache-2.0 | A | 28 | Claude Code, Codex |
| reactkok-o/contextos-agents | Skill | 10 | 22d ago | Apache-2.0 | A | 22 | Claude Code, Codex |
| state-managementkok-o/contextos-agents | Skill | 10 | 22d ago | Apache-2.0 | A | 19 | Claude Code, Codex |
| react-best-practiceskok-o/contextos-agents | Skill | 10 | 22d ago | Apache-2.0 | A | 20 | Claude Code, Codex |
| frontend-patternsdeepelementlab/jupyter-studio | Skill | 15 | 6mo ago | Apache-2.0 | A | 24 | Claude Code, Codex |
| vercel-react-best-practicescalesthio/OpenMontage | Skill | 84k | 16d ago | AGPL-3.0 | A | 67 | Claude Code, Codex |