kotlin-patterns

Generate Kotlin/Spring backend patterns for services, repositories, and controllers.

4|1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/AndVl1/claude-plugin --skill kotlin-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-patterns
Source: https://github.com/AndVl1/claude-plugin/tree/main/skills/kotlin-spring-patterns
Command: npx skills add https://github.com/AndVl1/claude-plugin --skill kotlin-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides ready-to-use Kotlin/Spring backend patterns to standardize entity, service, repository, and controller implementations.

Core Features & Use Cases

  • Entity Pattern: Kotlin data class with id, createdAt, updatedAt.
  • Service Pattern: Service layer coordinating repository and related services with idempotent-like patterns.
  • Repository Pattern (JOOQ): Repository that uses DSL, mapping to entities.
  • Controller Pattern: REST controller exposing endpoints and delegating to services.
  • API Interface Pattern: API interface with endpoint definitions.
  • DTO Pattern: Data Transfer Objects for requests and responses.
  • Exception Pattern: Typed exceptions for common error cases.
  • Null Safety Guidelines: Guidelines to use safe calls, let, and single/first.

Quick Start

Provide a ready-to-use Kotlin/Spring backend pattern template for an EntityName domain, including a service, repository, controller, DTOs, and necessary null-safety guidance for a typical CRUD workflow.

Frequently Asked Questions about kotlin-patterns

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

FAQPage Schema
How do I structure a Spring Boot backend with Kotlin service and repository layers?

Standardize a Spring Boot backend in Kotlin by separating entities, repositories, services, and controllers. This pattern coordinates data access and business logic, ensuring consistent, reusable templates across typical CRUD workflows.

What is the best way to implement a repository pattern in Kotlin using JOOQ?

Implement a repository pattern in Kotlin using JOOQ by utilizing the DSL for database queries and mapping results directly to Kotlin data class entities for structured data access.

How do I define DTOs and API interfaces for a Kotlin Spring REST controller?

Define DTOs and API interfaces for a Kotlin Spring REST controller by creating data transfer objects for requests and responses, alongside an API interface with endpoint definitions that the controller delegates to services.

Do I need prior Spring Boot experience to use these Kotlin backend patterns?

You need prior Spring Boot experience to use these Kotlin backend patterns. The guidance assumes knowledge of Kotlin, Spring Boot conventions, and common persistence patterns like repository-based access to generate templates.

How should I handle null safety and exceptions in a Kotlin Spring service layer?

Handle null safety and exceptions in a Kotlin Spring service layer by using safe calls, let, and single or first operators, alongside typed exceptions for common error cases to ensure idempotent-like patterns and robust data handling.