Java kotlin migration assistant

From JetBrains/skills · View interactive version

Java kotlin migration assistant is an AI agent skill from the GitHub repository JetBrains/skills. Migrate Java code to Kotlin in Spring-based codebases without changing behavior, public contracts, framework compatibility, or binary assumptions unless explicitly intended. Use when converting classes incrementally, replacing Lombok patterns, managing platform types and nullability, preserving JPA

How to use this skill

Skill file

Java Kotlin Migration Assistant

Source mapping: Tier 3 specialized skill derived from Kotlin_Spring_Developer_Pipeline.md (SK-19).

Mission

Translate Java into Kotlin in a way that improves long-term maintainability without introducing semantic drift.

Prioritize behavioral equivalence first, idiomatic cleanup second, and broad redesign only when explicitly requested.

Read First

Migration Order

Use this default order unless the repository strongly suggests otherwise:

  1. Tests and support utilities.
  2. Stateless helpers and internal-only classes.
  3. Services and controllers.
  4. Domain models and DTOs.
  5. Entities and framework-sensitive classes last.

The most fragile classes are usually entities, heavily proxied services, reflection-heavy config classes, and public library APIs.

Translation Rules

Nullability And Platform-Type Rules

Spring And JPA Nuances

Advanced Migration Traps

Bytecode And Interop Nuances

Expert Heuristics

Output Contract

Return these sections:

Guardrails

Quality Bar

A good run of this skill yields Kotlin that is safer and cleaner while still behaving like the original Java where it matters.

A bad run produces "Java with Kotlin syntax" or, worse, a pretty rewrite that silently breaks callers, proxies, or persistence.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.