What problem does it solve?
This Skill prevents inconsistent frontend patterns by giving a clear, reusable set of React/TypeScript + MUI + TanStack Router/Query rules that reduce bugs, performance regressions, and UX issues like layout shift.
Core Features & Use Cases
- Suspense-first data fetching guidance: Prefer
useSuspenseQuery with Suspense boundaries instead of ad-hoc loading states.
- Performance and UX guardrails: Apply memoization, lazy loading, and the “no early returns for loading” rule to avoid CLS and excessive rerenders.
- Opinionated architecture: Use the recommended
features/ vs components/ split, plus consistent file organization and import aliases.
- Routing and UI standards: Use TanStack Router folder-based routes with lazy-loaded pages and consistent breadcrumb loader patterns.
- TypeScript best practices: Enforce strict typing conventions (no
any, explicit return types, type-only imports) to keep refactors safe.
- Notifications and error handling: Use the provided snackbar hook patterns for user feedback, plus query/mutation error callbacks.
Use it when drafting new React components, implementing pages and features, wiring data fetching with TanStack Query, adding routing, styling with MUI v7 sx, or enforcing TypeScript conventions across a codebase.
Quick Start
Ask the Skill for a React/TypeScript component plan for a new feature, including the file structure, routing approach, Suspense + useSuspenseQuery data fetching pattern, and the recommended MUI v7 styling approach for that specific UI.