What problem does it solve?
Implementing React components in a large codebase often leads to inconsistent ownership of state, scattered data fetching, and unclear module boundaries. This Skill routes component architecture decisions to specific reference guides so changes follow established patterns for ownership, state, data, interactions, and runtime effects.
Core Features & Use Cases
- Ownership Routing: Decide where components, hooks, types, and atoms should live based on product workflow and feature boundaries.
- State and URL Decisions: Choose between local state, Jotai atoms, TanStack Query, and Next.js route APIs for state ownership.
- Data and Query Patterns: Apply generated contracts, query options, mutations, and SSR rules for API consumption.
- Interaction and Overlay Guidance: Configure hotkeys, focus, dialogs, menus, and popovers using the overlay contract.
- Use Case: When refactoring a feature page that mixes Jotai state, TanStack Query data, and a modal dialog, this Skill directs you to the relevant references for state ownership, query handling, and overlay mechanics.
Quick Start
Use the how-to-write-component skill to plan the architecture for a new React feature page that needs Jotai state, TanStack Query data, and a modal dialog.