Skip to content
Back to skills

Kotlin Patterns

ASecurity

Kotlin patterns for coroutines, cancellation, flows, null safety, Java interop, and 2.0 to 2.5 changes. Load before any edit to a .kt or .kts file, however small, and for Kotlin questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsjavakotlinspringapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill kotlin-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kotlin Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kotlin Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-kotlin-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-kotlin-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: kotlin-patterns
description: Kotlin patterns for coroutines, cancellation, flows, null safety, Java interop, and 2.0 to 2.5 changes. Load before any edit to a .kt or .kts file, however small, and for Kotlin questions.
---

# Kotlin patterns

Default assumption: Kotlin 2.5, per the Kotlin releases page. 2.5.0 shipped 2026-12-02; 2.4.21 is the last 2.4 patch.

A row applies when the project's Kotlin Gradle plugin version is at least the row's version, or for a coroutines row, its `kotlinx-coroutines-core` version.

Spring is spring-boot-patterns.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                              | Read                                                     |
| ----------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing Kotlin code, or raising the Kotlin, Gradle plugin, or coroutines version    | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing Kotlin code                                         | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing Kotlin code, a coroutine scope, a library's public API, or a coroutine test | [reference/practices.md](reference/practices.md)         |
| Configuring detekt, ktlint, or the compiler's options                               | [reference/tooling.md](reference/tooling.md)             |

Files in this skill

  • SKILL.md1.6 KB
  • reference/anti-patterns.md6 KB
  • reference/practices.md2.2 KB
  • reference/tooling.md2.1 KB
  • reference/upgrades.md8.6 KB
  • sources.md6.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.