react
/react
Operate React applications as a named tool: inspect and diagnose React/Vite projects, design component boundaries and state flow, implement accessible responsive UI, and verify behavior with the project's tests. Use when a task explicitly involves React, JSX/TSX, React hooks, React Router, Vite React configuration, or React build failures. Do not use for framework-agnostic frontend strategy (route to frontend-engineering), browser automation (route to playwright), accessibility policy or audits (route to web-accessibility), or non-React mobile apps (route to mobile-development).
- Author
- magnus919 ↗
- Repository
- agent-skills ↗
- Licence
- MIT
- Last repository change
- 25.10.2026
Assessment and security
- Files in this package
- 7
- Scripts
- 2
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 2 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/react-doctor.py, scripts/test_react_doctor.py
What it does and when to use it
Operate React applications as a named tool: inspect and diagnose React/Vite projects, design component boundaries and state flow, implement accessible responsive UI, and verify behavior with the project's tests. Use when a task explicitly involves React, JSX/TSX, React hooks, React Router, Vite React configuration, or React build failures. Do not use for framework-agnostic frontend strategy (route to frontend-engineering), browser automation (route to playwright), accessibility policy or audits (route to web-accessibility), or non-React mobile apps (route to mobile-development).
Original author description
Operate React applications as a named tool: inspect and diagnose React/Vite projects, design component boundaries and state flow, implement accessible responsive UI, and verify behavior with the project's tests. Use when a task explicitly involves React, JSX/TSX, React hooks, React Router, Vite React configuration, or React build failures. Do not use for framework-agnostic frontend strategy (route to frontend-engineering), browser automation (route to playwright), accessibility policy or audits (route to web-accessibility), or non-React mobile apps (route to mobile-development).
How it works
- Operating loop
- React-specific rules
- Routing and handoffs
- Reference routing
- Included script
- Completion boundary
SKILL.md preview
--- name: react description: >- Operate React applications as a named tool: inspect and diagnose React/Vite projects, design component boundaries and state flow, implement accessible responsive UI, and verify behavior with the project's tests. Use when a task explicitly involves React, JSX/TSX, React hooks, React Router, Vite React configuration, or React build failures. Do not use for framework-agnostic frontend strategy (route to frontend-engineering), browser automation (route to playwright), accessibility policy or audits (route to web-accessibility), or non-React mobile apps (route to mobile-development). license: MIT compatibility: >- The bundled diagnostic script uses Python 3.8+ standard library only. Running or building an application requires its repository package manager and Node.js. metadata: tags: react, jsx, tsx, vite, hooks, components, router, frontend source: https://react.dev/ --- # React Application Engineering Use this skill for the React-specific implementation layer. Preserve the project's existing React version, package manager, build scripts, styling conventions, and routing model unless the user asks for a migration. ## Operating loop 1. **Diagnose before editing.** Run `scripts/react-doctor.py --json [PROJECT]` and inspect `package.json`, source entry points, Vite config, TypeScript config, routes, and test scripts. The diagnostic is bounded and read-only. 2. **Define the component contract.** Identify the page/feature boundary, inputs and outputs, owned state, server state, loading/empty/error/success states, and side effects. Keep reusable components independent of route globals and avoid passing state through unrelated layers. 3. **Implement with explicit data flow.** Prefer local state for local behavior, context only for genuinely cross-cutting concerns, and the existing server state/cache solution for remote data. Keep effects for synchronization with external systems; derive values during render rather than storing duplicates. 4. **Keep UI resilient.** Render a useful loading, empty, error, and success experience. Cancel or ignore stale async work, handle aborts, and avoid setting state after an obsolete request. Preserve stable keys and avoid mutating props or state. 5. **Build for the browser.** Use semantic HTML, keyboard-operable controls, visible focus, responsive layout, and stable accessible names. For detailed accessibility requirements, load [web-accessibility](../web-accessibility/SKILL.md). 6. **Verify in layers.** Run the narrowest existing unit/component test, then lint/typecheck, then the production build. For browser-level flows use [playwright](../playwright/SKILL.md), not ad hoc browser automation. Report the exact commands and any environment-dependent checks that were skipped. ## React-specific rules - Hooks run unconditionally and in the same order on every render; never call them in branches, loops, event handlers, or nested functions. - Effects synchronize with external systems. Do not use an effect to calculate a value that can be derived from props/state, or to mirror props into state without a clear user-editing requirement. - Use functional updates when the next state depends on the previous state. Give list items stable keys from domain identity, not array indexes when the list can reorder, insert, or delete. - Treat event handlers as user intent and keep them separate from render-time computation. Disable or guard duplicate submissions and expose pending state. - Keep API response validation and transformation at the integration boundary; components should consume a typed, predictable view model. - Do not add a state library or router solely because it is popular. First map ownership and use the project's existing choices. - In Vite, expose only intentionally public variables using the project's documented prefix (normally `VITE_`); never put secrets in client bundles. Read [references/vite-diagnostics.md](references/vite-diagnostics.md) for environment, build, and deployment checks. ## Routing and handoffs - Component architecture, responsive implementation, performance budgets, and general frontend testing: [frontend-engineering](../frontend-engineering/SKILL.md). - Browser E2E authoring, locator choice, network interception, and Playwright runs: [playwright](../playwright/SKILL.md). - Semantic structure, keyboard/focus behavior, WCAG acceptance evidence, and accessibility audits: [web-accessibility](../web-accessibility/SKILL.md). - React Native, Expo, Android, or iOS implementation: [mobile-development](../mobile-development/SKILL.md). ## Reference routing | Load when | Reference | |---|---| | Choosing component boundaries, state ownership, effects, or async UI behavior | `references/component-and-state.md` | | Diagnosing Vite env exposure, dependency versions, build output, or deployment paths | `references/vite-diagnostics.md` | ## Included script `scripts/react-doctor.py` is a read-only, dependency-free diagnostic. Run `scripts/react-doctor.py --help` for options. It accepts a project directory, checks common React/Vite signals, and emits human-readable or bounded JSON output. It does not install packages, execute project scripts, access the network, or print environment values. ## Completion boundary Stop when the requested React change is implemented, the project's relevant checks have run, and remaining failures are reported with their command and root-cause evidence. Do not broaden a component task into a framework migration or an accessibility audit without explicit scope.
Files in this package (7)
- README.md 2 KB
- SKILL.md 6 KB
- evals/evals.json 3 KB
- references/component-and-state.md 3 KB
- references/vite-diagnostics.md 3 KB
- scripts/react-doctor.py 4 KB
- scripts/test_react_doctor.py 2 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · magnus919/agent-skills | 90 | MIT |
| ericrisco/rsc-harness | 100 | MIT |
| mintuz/claude-plugins | 100 | MIT |
| frankxai/claude-skills-library | 100 | MIT |
| kriscard/Skills | 100 | MIT |
| xobotyi/cc-foundry | 100 | MIT |
| openops-cloud/openops | 100 | Apache-2.0 |
| bennypowers/cem | 100 | GPL-3.0 |
| nimadorostkar/Claude-Skills-collection | 100 | MIT |
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 6f9e8eae960d (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90vite
Operate Vite projects: inspect versions and configuration, run bounded development and production builds, diagnose dependency and asset failures, and configure environment-aware frontend delivery. Use when a task names Vite, vite.config, Vite plugins, import.meta.env, dev-server… - 90fe-react
Writes and reviews React 19 components (also inside Next.js, Vite or React Router apps) - keys, state, effects, events, refs, forms with actions, memoization and React Compiler - so they stay correct, accessible and fast. Use when creating or editing a .jsx or .tsx component or… - 100frontend-mobile-development-component-scaffold
Scaffold React and React Native components with TypeScript, accessibility, styles, and tests. Use when building reusable UI components or establishing component structure. - 100react-ts-vite
React + TypeScript + Vite frontend development. Use whenever building, scaffolding, extending or refactoring a React app in TypeScript: "create a React component", "build a page with React", "add a feature to my React app", "scaffold a new Vite project", "write a custom hook",… - 95vite-react-helper
Vite + React for fast modern web development - build config, HMR, hooks, state management, and performance patterns When user works with Vite, React, creates components, manages state, uses hooks, or configures Vite builds - 100developing-with-react
React 18+ development with hooks, state management, component patterns, and Next.js integration. Use when building React applications or working with JSX/TSX components.