Route Scaffold
Create a new route page with data loading, error handling, and tests.
When to Use
- •Use this skill when adding a new route or page.
Inputs
- •Route path and name
- •Data requirements
- •Access control rules
Instructions
- •Create the route component with a clear layout.
- •Add a loader or data-fetching function.
- •Add an error boundary or error UI.
- •Add tests for loading, success, and error states.
Output
- •Route file(s) with loader, error UI, and tests.