java-kotlin-migration-assistant

Translate Java code to Kotlin in Spring applications while preserving behavior and binary compatibility.

14|1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/yalishevant/kotlin-backend-agent-skills --skill java-kotlin-migration-assistant-yalishevant
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-kotlin-migration-assistant
Source: https://github.com/yalishevant/kotlin-backend-agent-skills/tree/main/.agents/skills/java-kotlin-migration-assistant
Command: npx skills add https://github.com/yalishevant/kotlin-backend-agent-skills --skill java-kotlin-migration-assistant-yalishevant

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Translate Java into Kotlin in Spring-based codebases without altering behavior, public contracts, or binary compatibility.

Core Features & Use Cases

  • Behavior-preserving translation of Java code to Kotlin across services, entities, and configuration.
  • Guidelines for handling Lombok, builders, logging, and proxy-sensitive patterns to maintain compatibility with Spring and JPA.
  • Incremental migration workflow with safe ordering to minimize risk during refactors and modernization.

Quick Start

Provide a Java-to-Kotlin migration plan for an existing Spring project and begin translating selected modules according to the recommended order.

Frequently Asked Questions about java-kotlin-migration-assistant

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

FAQPage Schema
How do I migrate Java to Kotlin in a Spring project without breaking behavior?

Migrating Java to Kotlin without breaking behavior requires preserving public APIs, JPA proxy semantics, and framework integrations. Apply an incremental migration workflow with safe ordering and test verification to maintain binary compatibility across services.

How does Kotlin nullability inference handle Java platform types during migration?

Kotlin nullability inference resolves Java platform type concerns by explicitly defining nullability constraints during translation. This prevents unexpected NullPointerExceptions and ensures behavior preservation when converting Java code to Kotlin.

Can I translate Lombok annotations and builders when converting Java to Kotlin?

Yes, you can translate Lombok annotations, builders, and logging patterns when converting Java to Kotlin. The translation maintains compatibility with Spring and JPA by handling proxy-sensitive patterns correctly during the migration process.

What is the best way to maintain JPA proxy and serialization semantics when converting Java entities to Kotlin?

The best way to maintain JPA proxy and serialization semantics is to follow behavior-preserving translation guidelines that address proxy-sensitive patterns. This ensures Spring and JPA integrations remain stable across services and entities during incremental migration.

Does incremental Java to Kotlin migration work for mixed Spring codebases?

Incremental Java to Kotlin migration works for mixed Spring codebases by applying a safe migration order. Translate selected modules gradually while verifying tests to minimize risk and ensure binary compatibility throughout the modernization process.

When should I not use automated Java to Kotlin translation for Spring applications?

You should not use automated Java to Kotlin translation without test verification when dealing with proxy-sensitive JPA patterns or critical public APIs. Manual review is required to enforce safe migration ordering and ensure behavior preservation.