kotlin-tooling-java-to-kotlin

Converts Java sources to idiomatic Kotlin with framework-aware rules.

302|22|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/JetBrains/skills --skill kotlin-tooling-java-to-kotlin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-tooling-java-to-kotlin
Source: https://github.com/JetBrains/skills/tree/main/kotlin-tooling-java-to-kotlin
Command: npx skills add https://github.com/JetBrains/skills --skill kotlin-tooling-java-to-kotlin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Kotlin tooling skill automates the conversion of Java source files to idiomatic Kotlin, preserving behavior while improving readability and safety.

Core Features & Use Cases

  • Framework-aware Java-to-Kotlin conversion that preserves annotations, nullability, and history
  • Four-step transformation workflow (faithful translation, nullability audit, collection mapping, idiomatic refinements) with deterministic outcomes
  • Real-world guidance and templates for common frameworks (Spring, Hibernate, Jackson, Micronaut, Quarkus)

Quick Start

Provide Java source files to convert and the tool will generate idiomatic Kotlin code following the exact four-step methodology.

Frequently Asked Questions about kotlin-tooling-java-to-kotlin

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

FAQPage Schema
How do I convert Java to idiomatic Kotlin while preserving framework behavior?

To convert Java to idiomatic Kotlin, this tool applies a four-step workflow that faithfully translates source code, audits nullability, maps collections, and refines idioms. It ensures behavior preservation and compatibility with popular Java frameworks.

Does Java to Kotlin conversion work with Spring, Hibernate, and Jackson annotations?

Yes, Java to Kotlin conversion applies framework-aware rules for Spring, Hibernate, Jackson, Micronaut, and Quarkus. It ensures correct annotation targets, nullability, and proxy compatibility so generated Kotlin code respects existing framework constraints.

What is the best way to handle nullability when translating Java sources to Kotlin?

Handling nullability when translating Java sources to Kotlin is managed through a dedicated nullability audit step. This process evaluates existing Java types and applies correct nullability annotations to generate safer, Kotlin-ready code.

Can I convert Java files to Kotlin without losing existing imports and git history?

Yes, you can convert Java files to Kotlin without losing existing imports and git history. The conversion process explicitly respects existing imports, packaging structures, and git history to ensure seamless integration into your current codebase.

What are the limitations of automated Java to Kotlin code conversion?

Automated Java to Kotlin code conversion requires providing existing Java source files to process. While it uses a deterministic four-step methodology for idiomatic refinements, complex or non-standard framework integrations may still require manual review after translation.

How does framework detection work during Java to Kotlin migration?

Framework detection during Java to Kotlin migration works by applying framework-aware rules that identify Spring, Hibernate, Jackson, Micronaut, and Quarkus patterns. This ensures the translated Kotlin code maintains correct annotation targets and proxy compatibility.