This skill provides a comprehensive framework for building self-contained domain modules within a systems/ directory. It guides developers through the implementation of API adapters, TanStack Query hooks, XState stores, and React components, ensuring a clean, unidirectional dependency flow. By enforcing architectural best practices like hierarchical query keys, typed error handling, and co-located query options, it helps maintain large-scale frontend codebases while streamlining the addition of new features and complex state machines.
主要功能
01Domain-driven directory organization for scalable frontend architecture
02TanStack Query integration for robust data fetching and mutations
03Hierarchical query key factories for granular cache invalidation
040 GitHub stars
05API service layer patterns with typed errors and AbortSignal support
06XState and React Context conventions for complex state management
使用场景
01Refactoring disorganized code into a modular, domain-driven structure
02Implementing complex data fetching layers with optimistic UI updates
03Bootstrapping a new domain-specific feature system from scratch