/web:reactfrom web
Guides React 19 component logic, state, effects, API structure, and performance. Activates on logic/data/props/state changes; not for styling or tests.
Ships in web. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write React 19 code with only the project's installed libraries. Do not add a dependency unless the user asks for one.
Before you change code, read each guide that matches the change. A change that crosses a boundary needs more than one guide. Follow the conditions and exceptions of each guide rule, not only the summaries below. Use the same guides to review components.
Return complete, type-correct code for each behaviour you claim, including event handlers and data flow. A comment, a console.log stub or a no-op callback is not an implementation.
| Change | Guide |
|---|---|
| Component APIs, boolean modes, explicit variants, children, compound components, providers, refs or context | composition.md |
| State placement, URL state, handlers, Effects, actor integration or resource lifetimes | state-effects.md |
| Feature structure, imports, endpoint schemas, fetchers and hooks, permissions or HTTP errors | structure-api.md |
| Rendering, subscriptions, memoisation, deferred rendering, code loading or preloading | performance.md |
Apply principle-derive-from-one-owner, principle-reuse-before-building, principle-model-the-domain, principle-type-system-discipline, principle-hide-representations and principle-narrow-state-lifetime within their own triggers and exclusions.
Render purity is a React rule, not the domain-purity principle. React types (ReactNode, ref props, typed actor refs) may cross component boundaries inside UI integration code. Do not let them enter framework-independent domain or API code. Put state in the nearest common UI owner that needs it. Put a temporal lifecycle (a request answer, retry, cancellation, polling, optimistic update or drag) in an actor, and follow web:xstate.
For a permission change, open the role fetcher and the HTTP wrapper that the action uses before you finish. Repair each conflict with the rules below in the same change, not only in the reply. Do not change unrelated endpoints.
canInvite(user). When access depends on a specific resource, include resource ownership in the predicate. Return false when there is no user. The component calls that same function. Test the function directly, without rendering React (principle-keep-the-core-pure).response.ok. The fetcher parses the JSON body from unknown into the app's type. On this path, replace an existing as cast with a parser that narrows the value with typeof and in checks. Parse an unknown role or permission to an explicit unknown value that grants nothing and differs from each real role (principle-parse-at-the-boundary).AbortController when the operation accepts a signal. Cleanup marks the run stale, then aborts it. A stale run writes no state on success or on failure. Detect cancellation by error.name === "AbortError", not by error class, and treat it as no error. Send each other rejection of the current run to the failure state.When an Effect subscribes outside React and calls a callback prop, wrap the callback in useEffectEvent. Call the Effect Event only from that Effect or its subscription callbacks. Do not call it during render, from another hook or component, or from a user handler. Leave it out of the dependency array: its identity changes on each render. Keep reactive subscription values, such as teamId, as dependencies. Do not keep the latest callback in a ref. Do not ask callers to wrap it in useCallback.
Keep filters, search terms and page numbers in router search parameters, not in a store. The URL gives shareable links and Back and Forward history; a store does not. In the component that renders the controls, read the values through the installed router's hook (for example useSearchParams). Write them in the handler of each control through the router's setter (for example setSearchParams), and show that handler in the code. Keep no useState copy and no synchronising Effect. Parse each value at the boundary: an unknown value falls back to a safe default, such as all roles or page 1. Derive the visible list during render. With an installed query library, pass the parsed values to the fetcher and to the query key. To build a link from the current view, read the router's current location inside the click handler, not window.location.
isEditing, showAudience, variant) that select behaviour or structure. Create explicitly named variant components. Each composes the shared parts and its own controls. A native attribute such as a button's disabled is not a mode prop.children. Use a render prop only when its owner supplies data, such as an item and index.state, named actions (such as changeText and publish) and meta from their own root's context. Do not expose a generic update(updater) or a raw setter. Providers with different storage (local state, or a value and callback from the page) supply the same contract, so the parts do not change. The provider wraps each consumer, including a preview or action outside the visual frame. Each mounted provider has its own value. Never report child state upward through an Effect. Never read sibling state through a ref.A feature never imports from another feature, including its index.ts. Do not disable the boundary lint rule. A component that two or more features use belongs in src/components/; state that reason when you move one. When a feature needs markup that another feature already shows, such as a person's avatar and name, move that markup into a component in src/components/. The component takes data as props, imports no feature code, calls no feature hook and is rendered by both features. Rebuilding the markup from shared parts such as Card and Avatar copies it; it does not share it. Do not add a mode prop to the original component. Do not add a re-export barrel.
The endpoint fetcher and hook stay in the feature that owns the endpoint. Each feature that renders the shared component supplies the data itself: from its own response, or through a feature-local component that calls its own hook. If the moved component called a feature hook, remove that call. The owning feature's component (the original caller or a feature-local wrapper) now calls the hook and passes the result as props. Alternatively, an app-level page composes the two features.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mintuz/skills --plugin web10 skills in this plugin
/browser-testingWHEN authoring or repairing real-browser journeys or automated screenshot comparisons with the project's selected runner; NOT DOM-only tests, interactive visual judgement or verification-recipe maintenance; provides native-runner fixtures, assertions and visual-comparison guidance./chatgpt-app-sdkWHEN building ChatGPT apps using the OpenAI Apps SDK and MCP; NOT for OpenAI API chat completions, agent frameworks, or MCP servers with no ChatGPT widget; create conversational, composable experiences with proper UX, UI, state management, and server patterns./cssUSE WHEN writing, fixing or reviewing plain CSS or Sass for a web page, even a one-line change, including a rule that loses to another, a third-party stylesheet you cannot edit, units, spacing between components, shorthands, skip links, hidden and focus styles, or deleting styles that look unused; NOT WHEN the project uses Tailwind (tailwind.config.js, utility classes, CVA variants, Tailwind theme tokens); produces CSS that wins the cascade without ID selectors or reactive !important, scales with the reader's text size, keeps spacing in the parent and deletes styles only on evidence.Other plugins' skills for the same job