backend-route-creation
Installation
SKILL.md
Backend Route Creation
This skill creates new API routes using koa-zod-router with Zod validation schemas following established patterns.
Overview
Routes use schemas defined in @{project}/types for validation. This ensures type safety between backend and frontend.
Route File Structure
Routes are organized by resource in apps/backend/src/routes/:
apps/backend/src/routes/
├── workflows.ts # /api/workflows endpoints
├── workflow-runs.ts # /api/workflow-runs endpoints
└── {resource}.ts # New resource routes