What problem does it solve?
This Skill automates the boilerplate creation of Next.js App Router routes, including pages, layouts, loading, error, and not-found files. It’s ideal for building simple, static pages or REST API endpoints with consistent structure, reducing repetitive setup and preserving architectural consistency.
Core Features & Use Cases
- Static Page Scaffolding: Create page.tsx, layout.tsx, loading.tsx, and not-found.tsx for new routes
- API Route Scaffolding: Generate route.ts for REST endpoints under src/app/api
- Structure-First Approach: Automatically establish route groups, layouts, and default loading/error UI
- Marketing Pages: Quick setup for landing, about, pricing, and other marketing pages
- Template Reuse: Leverage templates from assets/templates to customize components
Quick Start
Run the route scaffolder to generate a new route, e.g.:
python .claude/skills/worldcrafter-route-creator/scripts/scaffold_route.py dashboard
To add an API endpoint:
python .claude/skills/worldcrafter-route-creator/scripts/scaffold_route.py api/users --api