
kotlin-ktor-patterns
Ktor server patterns including routing DSL, plugins, authentication, Koin DI
by affaan-mFree
Description
kotlin-ktor-patterns is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It sets out patterns for building HTTP servers in Kotlin with Ktor on top of coroutines. Its topics include the routing DSL, the common plugins for authentication, CORS, content negotiation and status pages, dependency injection with Koin, kotlinx.serialization for JSON, WebSockets, and integration tests using testApplication. It also describes a standard Ktor project layout. The skill applies when building a Ktor server, configuring its plugins, implementing REST APIs, wiring dependency injection with Koin, writing integration tests, or adding WebSocket endpoints. Because it is a SKILL.md file of instructions, the agent loads it for those tasks and applies the same structure each time. It is free and open source, and the skills.sh listing shows a Snyk warning, with Gen Agent Trust Hub and Socket passing.…
Highlights
- Routing DSL and standard project layout
- Auth, CORS, content negotiation and status pages
- Koin dependency injection
- WebSockets and testApplication tests
Ratings & Reviews
No ratings yet
Be the first to rate kotlin-ktor-patterns.
People also visit

android-clean-architecture
Clean Architecture patterns for Android and Kotlin Multiplatform projects

compose-multiplatform-patterns
Compose Multiplatform and Jetpack Compose patterns for KMP projects

kotlin-exposed-patterns
JetBrains Exposed ORM patterns including DSL queries, DAO pattern, transactions

kotlin-patterns
Idiomatic Kotlin patterns, best practices, and conventions for building robust
kotlin-ktor-patterns FAQ
What does the kotlin-ktor-patterns skill do?
It guides an agent in building Ktor HTTP servers in Kotlin, including routing, plugins, Koin injection, JSON, WebSockets and tests.
How are Ktor servers tested?
With testApplication, which the skill covers for integration tests.
Which dependency injection library does it use?
Koin.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill kotlin-ktor-patterns
Is it free?
Yes. It is free and open source.
Are there security warnings?
The skills.sh listing shows Snyk with a warning, while Gen Agent Trust Hub and Socket pass.
What are the best kotlin-ktor-patterns alternatives?
Popular alternatives to kotlin-ktor-patterns include android-clean-architecture, compose-multiplatform-patterns and kotlin-coroutines-flows. See all kotlin-ktor-patterns alternatives





