What problem does it solve? Building backend endpoints in a Ktor + PostgreSQL + Exposed stack without enforced architecture leads to business logic leaking into routes, missing Row Level Security, and full table scans in production. This Skill enforces a strict, repeatable procedure for creating or modifying REST endpoints in the ZenTrack server/ module while preserving Clean Architecture boundaries, tenant isolation, and database performance. ## Core Features & Use Cases - Layered endpoint scaffolding: Step-by-step procedure covering SQL migration, Exposed table, Repository, Use Case, Ktor route, and Koin registration with strict layer boundaries. - Security enforcement: Mandatory JWT-based tenant extraction, Row Level Security policies per table, and signature validation for public webhook endpoints. - Performance guardrails: Required foreign-key indexes, tenant-filtered queries, and SELECT FOR UPDATE for atomic task_number generation. - Use Case: When asked to add a new POST /api/projects/{id}/tasks endpoint, the Skill produces the idempotent migration with RLS, the Exposed table descriptor, a suspend Repository returning domain models, a framework-free Use Case, and a thin Ktor route wired through Koin. ## Quick Start Ask the AI to create a new REST endpoint in the server module, for example: add an endpoint to list all tasks in a sprint following the ktor-backend-endpoint procedure.