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/kriscard/skills/reactnpx skills add kriscard/Skills --skill reactgit clone --depth 1 https://github.com/kriscard/SkillsWhat 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.00114 | $0.02063 |
| Opus 5 | $0.00057 | $0.01032 |
| Sonnet 5 | $0.00023 | $0.00413 |
| Haiku 4.5 | $0.00011 | $0.00206 |
Grade A, and why
react 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 2d 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 — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Best Practices Audit
Focused audit layer for React and Next.js runtime/rendering issues. Start with the universal checks, then route to the reference that matches the user's specific question.
Universal Checks (no exceptions — run these every time)
These checks take seconds to scan for and catch common high-impact mistakes. Skip them only if you have already verified them in the same session.
-
Components defined inside other components They are re-created on every render; state resets and memoization is lost. Extract to module scope.
-
Array index as
keyin dynamic listskeyis React's identity anchor. When lists reorder, insert, or delete, an index key reassigns identity to the wrong element. Use a stable ID from the data. Exception: truly static, never-reordered lists. -
Derived state via
useState+useEffectIf state is only a calculation from props/state, compute it during render (optionallyuseMemofor expensive work) instead of syncing with an Effect. -
Data fetching in
useEffectwithout cleanup Slow responses can overwrite fresh data. Use cleanup/cancellation, TanStack Query, or Server Components so stale requests cannot win the race. -
Unmemoized Context provider value New object/function references make every consumer re-render. Memoize the provider value or split data and API contexts.
-
Server Actions for client-side data reads Server Actions serialize calls and are for mutations. Reads should use RSC, route handlers, or a client data layer that can parallelize and dedupe.
-
React.FCandforwardRefas default patterns Prefer plain function components.React.FCadds noise and misleading children behavior; React 19 makesrefa normal prop for new code. Load the React 19 reference for version-specific migration details.
Ownership Boundary with Frontend
react owns React runtime/rendering issues: Effects, re-renders, Context,
keys, Server Actions, hydration, React 19 APIs, waterfalls, and bundle/runtime
performance. frontend owns broader TypeScript, UI accessibility, browser
security, Next.js file boundaries, Tailwind/component API patterns, and frontend
file structure.
What ships with it
8 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.
- references/bundle-and-perf-investigation.md 8.8 KB
- references/portals-and-stacking-context.md 8.2 KB
- references/re-renders.md 8.5 KB
- references/react-19.md 9.2 KB
- references/rendering-models.md 8.0 KB
- references/tanstack-query.md 9.8 KB
- references/useeffect-antipatterns.md 12 KB
- references/waterfalls.md 8.9 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.
- 2d ago First seen · 180 lines · 114 tokens per session scan A e3ecf2caa16a
react is a skill published in the GitHub repository kriscard/Skills (13 stars, last pushed 21d ago), licensed MIT. It adds 114 tokens to every session and 2,063 once invoked, about $0.0006 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-30.
Other skills, from other repositories
create-custom-grader
Use when converting an existing benchmark, rubric, verifier, task YAML/JSON, or domain check into SkillEvaluator BYOG/BYOT custom evaluation.
simple
Summarize short user notes into clear action items.
aidlc-master
Runs the AWS AI-DLC (AI-Driven Development Life Cycle) methodology end to end: an adaptive three-phase workflow (Inception → Construction → Operations) with human approval gates, a full audit trail, and all artifacts in aidlc-docs/. Use when the user says "Using AI-DLC", "AI-DLC", "AIDLC", "aidlc-master", or asks for…
agent-ready-cloudflare
Audit and improve website readiness for AI agents using the Cloudflare "Is It Agent Ready?" scanner (isitagentready.com). Covers scanning via API, interpreting results, generating implementation prompts, and fixing every check. Use when the user mentions "agent ready", "isitagentready", "AI agent scan", "agent…
slop-eval
Objectively evaluate a UI/web design against the pols.dev anti-slop design law: detect catalogued slop tells with cited evidence, score 8 weighted axes (color, type, components, layout, motion, execution, signature, cohesion), and emit a Slop Report with a 0–100 Slop Index and grade. Use when the user asks to…
astro-sites-manager
Comprehensive skill for building, migrating, and maintaining Astro v7 projects. Covers best practices from the official AGENTS.md, the v6→v7 migration path, validation of breaking/deprecated patterns, AI-enhanced dev server usage (background mode, JSON logging), advanced routing with src/fetch.ts, route caching…