create-new-routes
Learn how to create a new route in The Lab.
When & Why to Use This Skill
This Claude skill automates the creation of production-ready React routes within 'The Lab' framework. It streamlines frontend development by generating standardized TanStack Router definitions and UI page components, ensuring strict adherence to established architectural patterns and file organization best practices.
Use Cases
- Rapidly scaffolding new application sections by generating thin route definitions and corresponding page components.
- Implementing dynamic URL structures using $param.tsx syntax for data-driven routing requirements.
- Ensuring architectural consistency across a codebase by automatically following specific directory structures and barrel export patterns.
| name | Create New Routes |
|---|---|
| description | Learn how to create a new route in The Lab. |
Create New Routes
This skill creates production-ready React routes following Lab's established architecture patterns.
Routing & Pages
- Route files in
src/routes/- thin TanStack Router definitions - Page components in
src/pages/- UI implementations - Page-scoped components in
pages/[section]/components/ - Dynamic routes use
$param.tsxsyntax - Always barrel export via
index.tsx