ktor-scaffold

Generate a Kotlin/Ktor service scaffold with Gradle, Koin, Flyway, and NAIS configuration.

1|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/navikt/watson-sak-frontend --skill ktor-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ktor-scaffold
Source: https://github.com/navikt/watson-sak-frontend/tree/main/.opencode/skills/ktor-scaffold
Command: npx skills add https://github.com/navikt/watson-sak-frontend --skill ktor-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold a ready-made Kotlin/Ktor service scaffold with KotliQuery, Flyway, Koin, and NAIS configuration to accelerate backend development and ensure consistency across services.

Core Features & Use Cases

  • Generates a production-ready Kotlin/Ktor service project structure including Gradle build files, source code, and resources
  • Integrates KotliQuery for data access, Flyway for database migrations, Koin for dependency injection, and NAIS-compatible configuration
  • Provides Dockerfile and NAIS manifest scaffolding to enable deployment in Nav's environment
  • Supports standard Nav patterns and project conventions, enabling rapid bootstrapping for new services

Quick Start

Scaffold a new Kotlin/Ktor service scaffold following Nav's standard patterns.

Frequently Asked Questions about ktor-scaffold

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a Kotlin Ktor service with database migrations and dependency injection?

Scaffolding a Kotlin Ktor service is done by generating a production-ready project structure that integrates Flyway for database migrations, Koin for dependency injection, and KotliQuery for data access. This provides a fully configured Gradle build setup instantly.

What is included in a NAIS-compatible Ktor microservice boilerplate?

A NAIS-compatible Ktor microservice boilerplate includes Gradle build files, source code, resources, a Dockerfile, and a NAIS deployment manifest. It applies standard Nav patterns to enable rapid bootstrapping and deployment in Nav's environment.

Can I use this Ktor scaffold for backend microservices and API gateways?

You can use this Ktor scaffold for backend microservices and API gateways requiring fast bootstrapping. It generates a production-ready Kotlin service with necessary dependencies and deployment artifacts configured.

Does the generated Kotlin Ktor project setup work with Flyway and KotliQuery?

The generated Kotlin Ktor project setup works with Flyway for database migrations and KotliQuery for data access. It applies these alongside Koin for dependency injection to ensure consistency across services.

What's the best way to bootstrap a new Kotlin Ktor backend following Nav conventions?

The best way to bootstrap a new Kotlin Ktor backend following Nav conventions is to generate a complete service scaffold. This provides a standardized Gradle setup with all necessary dependencies, source code, and NAIS deployment configuration.

Do I need to manually configure Koin and NAIS deployment for a new Ktor service?

You do not need to manually configure Koin and NAIS deployment. Generating the Ktor scaffold automatically integrates Koin for dependency injection and provides the necessary Dockerfile and NAIS manifest scaffolding for deployment.