What problem does it solve?
This Skill provides structured guidance for editing SPA routes and maintaining parity between desktop and mobile router configurations, helping teams avoid navigation drift and blank screens caused by inconsistent route trees when editing src/routes/ roots or moving UI/logic between src/features/.
Core Features & Use Cases
- Enforces desktop router parity by requiring updates to both
src/spa/router/desktopRouter.config.tsx and src/spa/router/desktopRouter.config.desktop.tsx in the same PR.
- Guides route placement and division between routes and features: keep route files thin and implement business logic in
src/features/.
- Process for adding a new SPA route: choose route group, create segment under
src/routes/, implement UI in src/features/, and mirror route registration in router config files.
- Migration path: gradually move logic into features while preserving router parity.
Quick Start
Create a new route under the appropriate group in src/routes/(group)/, implement UI in the corresponding src/features, and mirror the route tree in both desktopRouter.config.tsx and desktopRouter.config.desktop.tsx.