What problem does it solve?
This Skill prevents broken navigation and blank screens by enforcing a consistent, “roots vs features” structure and requiring mirrored updates across the desktop router pair when changing SPA route trees.
Core Features & Use Cases
- Correct file placement (roots vs features): Ensures
src/routes/ stays thin (segment entry/layout wrappers) while real UI/business logic lives in src/features/ by domain.
- Desktop router parity guardrail: Forces route-tree changes to be applied to both
desktopRouter.config.tsx and desktopRouter.config.desktop.tsx together to avoid registration drift.
- Safer route refactors & migrations: Guides how to add new routes, move route logic into features, and progressively migrate existing segments without reintroducing logic into
src/routes/.
Quick Start
Use the spa-routes skill when you add or refactor any files under src/routes/, and update both desktop router config files in the same change whenever the route tree structure changes.