Skip to content
affaan-m avatar

Kotlin Ktor Patterns

Ktor server patterns covering routing DSL, plugins, Koin DI, kotlinx.serialization, WebSockets, and testApplication tests.

CCM score
71 of 100
skills.sh installs
11.7K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers standard Ktor project layout, application entry point, and module configuration wiring plugins together
  • Includes routing DSL examples for CRUD endpoints, authenticated route groups, and kotlinx.serialization models with custom serializers
  • Provides JWT authentication setup with claim extraction, plus Koin-injected route handlers for services
  • Designed for Kotlin teams building HTTP servers with Ktor and coroutines

Install

$ npx -y skills add affaan-m/ecc --skill kotlin-ktor-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Ktor Server Patterns

Comprehensive Ktor patterns for building robust, maintainable HTTP servers with Kotlin coroutines.

When to Activate

  • Building Ktor HTTP servers
  • Configuring Ktor plugins (Auth, CORS, ContentNegotiation, StatusPages)
  • Implementing REST APIs with Ktor
  • Setting up dependency injection with Koin
  • Writing Ktor integration tests with testApplication
  • Working with WebSockets in Ktor

Application Structure

Standard Ktor Project Layout

Details

Repository
github.com/affaan-m/ecc
Categories
Java & JVM, Backend & APIs
First seen
Jul 14, 2026

Questions

What does the kotlin-ktor-patterns skill cover?

It covers Ktor server patterns: the routing DSL, plugins, authentication, Koin dependency injection, kotlinx.serialization, WebSockets, and testApplication testing. The skill gives guidance for building HTTP servers with Kotlin coroutines, including a standard project layout and an application entry point.

How do I install the kotlin-ktor-patterns skill?

Run npx -y skills add affaan-m/ecc --skill kotlin-ktor-patterns -y inside your project. Once installed, the agent can help you build Ktor HTTP servers with routing, JWT authentication, serialization and integration tests.

Where does kotlin-ktor-patterns rank in the Java and JVM category?

It ranks in the top 10 on the Java and JVM category page on Claude Marketplaces. Other skills that lead the category include java-springboot, springboot-patterns, java-coding-standards, jpa-patterns and kotlin-patterns, and this one stands apart by focusing on Ktor server development.

Who is the kotlin-ktor-patterns skill for?

It is for developers building Ktor HTTP servers in Kotlin who want patterns for routing, plugins, auth, DI, serialization, WebSockets and tests. It is useful when you write REST APIs or real-time endpoints with Ktor.

Does kotlin-ktor-patterns use Koin for dependency injection?

Yes, the skill shows how to set up dependency injection with Koin, with modules kept in a di folder and services injected into routes. It also covers kotlinx.serialization and the testApplication testing approach.

More from affaan-m/ecc

All 257

Similar to Kotlin Ktor Patterns

More Java & JVM