What problem does it solve?
This Skill streamlines the creation of new API endpoints by providing a standardized scaffold that enforces authentication, workspace scoping, and a deterministic middleware chain for the Mako Hono backend.
Core Features & Use Cases
- Route scaffolding: Generates api/src/routes/<feature>.ts with a consistent routing and auth setup.
- API mounting: Updates api/src/index.ts to mount the new feature under /api/<feature>.
- Service delegation: Encourages creating a minimal service layer (api/src/services/<feature>.service.ts) to host business logic while keeping routes thin.
- Middleware order: Enforces the required sequence unifiedAuthMiddleware → workspace verification → route handler, with defense-in-depth checks.
Quick Start
Create the route file at api/src/routes/<feature>.ts, mount it in api/src/index.ts, and implement a minimal service to handle business logic.