What problem does it solve? Building Ktor HTTP servers involves many cross-cutting concerns—routing structure, JWT authentication, error handling, CORS, serialization, and dependency injection—that are easy to wire up inconsistently. This Skill provides proven, copy-ready patterns so you configure each plugin correctly the first time. ## Core Features & Use Cases - Routing & Plugin Setup: Standard project layout with route grouping, authenticated route blocks, ContentNegotiation with kotlinx.serialization, StatusPages error handling, and CORS configuration. - JWT Authentication & Koin DI: Complete JWT install/validate/challenge setup, principal extraction helpers, and Koin module definitions for repositories and services. - WebSockets & Testing: WebSocket chat pattern with connection management, plus testApplication integration tests including authenticated route testing. - Use Case: You are scaffolding a new Kotlin REST API with user accounts. Use this Skill to generate the Application module, JWT auth plugin, user routes with validation, and integration tests in one pass. ## Quick Start Use the kotlin-ktor-patterns skill to scaffold a Ktor server with JWT authentication, Koin dependency injection, and testApplication tests for a users REST API.