kotlin-knowledge-patch

Provide Kotlin 2.x language and ecosystem updates for code generation.

22|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/Nevaberry/nevaberry-plugins --skill kotlin-knowledge-patch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-knowledge-patch
Source: https://github.com/Nevaberry/nevaberry-plugins/tree/main/plugins/kotlin-knowledge-patch/skills/kotlin-knowledge-patch
Command: npx skills add https://github.com/Nevaberry/nevaberry-plugins --skill kotlin-knowledge-patch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Keeps code and build configurations aligned with Kotlin 2.x and recent ecosystem changes so developers and code-generating agents avoid producing code that uses deprecated or removed APIs.

Core Features & Use Cases

  • Language changes: Documents guard conditions in when, multi-dollar interpolation, non-local break/continue, explicit backing fields, and the unused return value checker.
  • Build & tooling guidance: Shows Compose compiler plugin integration, power-assert usage, and KMP Android target migration notes to update Gradle configurations.
  • Ecosystem updates: Covers Ktor 3.0 migrations (kotlinx-io, SSE, CSRF), Coroutines 1.9–1.10 Flow operators, Serialization 1.10 stabilized APIs, and Compose Multiplatform 1.8–1.10 changes.
  • Use Case: Run this patch before generating Kotlin code or refactoring to ensure code compiles with Kotlin 2.x toolchains and follows current library conventions.

Quick Start

Load kotlin-knowledge-patch before generating or modifying Kotlin code to apply updated compiler flags, migration notes, and reference snippets.

Frequently Asked Questions about kotlin-knowledge-patch

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

FAQPage Schema
How do I migrate Kotlin Coroutines Flow operators to the 1.10 API?

To migrate Kotlin Coroutines Flow operators to the 1.10 API, apply the updated flow operator patterns and migration notes to replace deprecated functions with stabilized APIs. This ensures your coroutines code compiles correctly with the latest toolchain.

What changed in Ktor 3.0 migration for kotlinx-io and SSE?

Ktor 3.0 migration changes include updates for kotlinx-io, SSE, and CSRF configurations. Checking these migration patterns prevents outdated API usage and ensures your Ktor server or client code aligns with the latest framework conventions.

How do I use guard conditions in Kotlin 2.x when expressions?

Guard conditions in Kotlin 2.x when expressions allow complex conditional branching directly within the when block. Using this language feature requires applying updated compiler flags to ensure your project supports the latest syntax.

Does this Kotlin migration patch cover Compose Multiplatform build scripts?

Yes, this Kotlin migration patch covers Compose Multiplatform build scripts by providing Compose compiler plugin integration guidance and KMP Android target migration notes. This updates your Gradle configurations for Kotlin 2.x toolchains.

What are the best practices for updating Kotlin Serialization 1.10 APIs?

Best practices for updating Kotlin Serialization 1.10 APIs involve using the stabilized APIs and reference examples provided by the knowledge patch. This prevents generating code that relies on deprecated serialization functions.

Why does Kotlin code using outdated 1.9-era APIs fail to compile?

Kotlin code using outdated 1.9-era APIs fails to compile because Kotlin 2.x removed or deprecated certain language features and library functions. Applying migration patterns for explicit backing fields and multi-dollar interpolation resolves these issues.