react

Applies React best practices for architecture, state management, accessibility, and performance.

1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/Fidasek009/agents --skill react-fidasek009
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/Fidasek009/agents/tree/main/.kilo/skills/react
Command: npx skills add https://github.com/Fidasek009/agents --skill react-fidasek009

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? React codebases often grow inconsistent, with ad hoc state management, missing accessibility, and unverified UI changes. This Skill provides a structured set of React standards so generated or reviewed code follows scalable, maintainable, and accessible patterns. ## Core Features & Use Cases - Architecture & State Guidance: Enforces layered UI structure, dedicated server-state layers, URL-based shareable state, and disciplined effect cleanup with AbortController. - Forms, Errors & Styling Standards: Promotes schema-backed form validation, shared error notification patterns, and design-system theme tokens instead of one-off styles. - Accessibility & Performance Rules: Covers ARIA usage, keyboard navigation, stable keys, memoization, and code splitting for heavy routes and widgets. - Use Case: When building a new dashboard page with filters and data fetching, apply this Skill so the implementation uses URL search params for filter state, a server-state layer for fetching, and proper loading, empty, and error states. ## Quick Start Review my React component and refactor it to follow the React standards for state management, accessibility, and performance.

Frequently Asked Questions about react

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage server state in React applications?▼

Use a dedicated server-state layer for fetching, caching, deduplication, invalidation, retries, and loading/error states rather than raw effects. For raw fetch effects, use AbortController or equivalent cleanup to cancel requests on unmount.

How should I structure a scalable React project?▼

Use a layered UI structure with primitives, shared composed components, route screens and layouts, plus a src/lib directory for shared non-React utilities. Keep reusable UI outside route files and coordinate across components with composition, context providers, or URL state.

When should React state go in URL search params?▼

Put shareable UI state in URL search params, including filters, search terms, pagination, sorting, selected tabs, and view modes. Keep local component state only for ephemeral UI like open menus, draft text, and transient animation state.

How do I make React forms accessible and validated?▼

Validate input at the form boundary using schema-backed validation for non-trivial forms. Pair every input with accessible labels, descriptions, field-level errors, and submit state, keeping schemas close to the form or shared with the API contract.

Why do React effects cause memory leaks?▼

Leaks happen when subscriptions, timers, network requests, and observers are not cleaned up. Always return cleanup functions, include complete effect dependencies, and use AbortController for fetch effects to cancel in-flight requests.