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 agentmods add skills/pledgeandgrow/pledge-skills/reactnpx skills add pledgeandgrow/pledge-skills --skill reactgit clone --depth 1 https://github.com/pledgeandgrow/pledge-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/pledgeandgrow/pledge-skills/react)<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/react"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/react.svg" alt="Measured on agentmods" 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 | $0.00068 | $0.01126 |
| Opus 5 | $0.00034 | $0.00563 |
| Sonnet 5 | $0.00014 | $0.00225 |
| Haiku 4.5 | $0.00007 | $0.00113 |
Grade A, and why
react-docs 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.
How it starts
The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Expert (v19.x)
Official Documentation: https://react.dev/reference
Quick Reference
| Topic | File |
|---|---|
State hooks: useState, useReducer |
state-hooks.md |
Effect hooks: useEffect, useLayoutEffect, useInsertionEffect |
effect-hooks.md |
Context: createContext, useContext, Provider pattern |
context.md |
Ref hooks: useRef, useImperativeHandle |
ref-hooks.md |
Performance: useMemo, useCallback, memo, PureComponent |
performance.md |
Concurrent features: useTransition, useDeferredValue, useActionState, useOptimistic |
concurrent-features.md |
Other hooks: useId, useSyncExternalStore, useDebugValue, use |
other-hooks.md |
Suspense, lazy, streaming |
suspense.md |
Built-in components: Fragment, StrictMode, Profiler, Suspense |
components.md |
Forms: Actions, useFormStatus, progressive enhancement |
forms.md |
| React 19 new features | react-19.md |
| Rules of React: purity, hooks rules, ESLint | rules-of-react.md |
| Advanced patterns: compound, render props, HOCs, custom hooks | advanced-patterns.md |
React DOM: createRoot, hydration, portals, flushSync |
react-dom.md |
Core Philosophy
React is a declarative UI library built on three principles:
- Components — Independent, reusable pieces of UI
- Props — Read-only data flow from parent to child
- State — Mutable data that triggers re-renders when changed
Component Types
// Function Component (recommended)
function Greeting({ name }: { name: string }) {
return <h1>Hello, {name}</h1>
}
// With state
function Counter() {
const [count, setCount] = useState(0)
return <button onClick={() => setCount(c => c + 1)}>{count}</button>
}
Component Lifecycle
Mount → Render → Commit → (State Change → Re-render → Commit) → Unmount
↑ ↑
useEffect (after paint) useEffect cleanup → new effect
useLayoutEffect (before paint)
What ships with it
14 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- advanced-patterns.md 6.3 KB
- components.md 3.6 KB
- concurrent-features.md 6.9 KB
- context.md 5.8 KB
- effect-hooks.md 6.5 KB
- forms.md 4.9 KB
- other-hooks.md 3.5 KB
- performance.md 7.6 KB
- react-19.md 3.4 KB
- react-dom.md 3.4 KB
- ref-hooks.md 5.1 KB
- rules-of-react.md 3.4 KB
- state-hooks.md 6.7 KB
- suspense.md 3.1 KB
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.
- 4d ago First seen · 152 lines · 68 tokens per session scan A 6b904396f50a
react-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 68 tokens to every session and 1,126 once invoked, about $0.0003 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.
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.
react-development
Comprehensive React development with hooks, components, state management, context, effects, and performance optimization based on official React documentation.
react-component-design
When building or refactoring React UI components to ensure reusability and maintainability.
react-patterns
Comprehensive React 19 patterns expert covering Server Components, Actions, use() hook, useOptimistic, useFormStatus, useFormState, React Compiler, concurrent features, Suspense, and modern TypeScript development. 트리거: "React", "컴포넌트", "hooks", "JSX/TSX", "상태 관리" 안티-트리거: "Vue", "Svelte", "Angular", "백엔드".
react
React UI patterns for apps/ui—Effects vs rendering, TanStack Query for all server data, useMemo, keys, event handlers. Start here when creating or editing React components.
frontend-best-practices
Use this skill when creating or modifying React frontend components. It defines UI/UX, styling, and architecture standards.