kotlin-tooling-java-to-kotlin

Convert Java source files into idiomatic Kotlin code using a four-step methodology.

Updated Jul 6, 2026
One-click install
npx skills add https://github.com/shirulot/codex-skill --skill kotlin-tooling-java-to-kotlin-shirulot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-tooling-java-to-kotlin
Source: https://github.com/shirulot/codex-skill/tree/main/kotlin-tooling-java-to-kotlin
Command: npx skills add https://github.com/shirulot/codex-skill --skill kotlin-tooling-java-to-kotlin-shirulot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the complexity of migrating legacy Java codebases to Kotlin by providing a structured, framework-aware methodology that ensures behavioral parity and idiomatic code quality.

Core Features & Use Cases

  • Framework-Aware Conversion: Handles specific idioms for Spring, Hibernate, Jackson, Dagger/Hilt, and more.
  • Disciplined Methodology: Uses a 4-step process (Faithful translation, Nullability audit, Collection conversion, Idiomatic transformation) to minimize errors.
  • Use Case: When migrating a Spring Boot service, this Skill automatically maps Java annotations to their correct Kotlin site targets and converts mutable collections to their immutable Kotlin counterparts.

Quick Start

Use the kotlin-tooling-java-to-kotlin skill to convert the file UserService.java into idiomatic Kotlin code.

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 source files to idiomatic Kotlin code?

To convert Java to idiomatic Kotlin, this Skill applies a four-step methodology: faithful translation, nullability audit, collection conversion, and idiomatic transformation, ensuring behavioral parity throughout the migration process.

Does the Java to Kotlin migration process handle Spring Boot framework annotations?

Yes, the Java to Kotlin migration handles Spring framework annotations by automatically mapping them to correct Kotlin site targets, alongside providing specific transformations for Hibernate, Jackson, and Dagger/Hilt ecosystems.

What is the best way to preserve null-safety when migrating Java to Kotlin?

The best way to preserve null-safety during Java to Kotlin migration is through a dedicated nullability audit step, which verifies that nullable types and annotation site targets are correctly maintained throughout the codebase transformation.

Can I convert mutable Java collections to immutable Kotlin counterparts automatically?

Yes, you can convert mutable Java collections to immutable Kotlin counterparts automatically. The migration methodology includes a specific collection conversion step that correctly maps Java collection mutability to immutable Kotlin equivalents.

How do I ensure behavioral parity when refactoring legacy Java codebases to Kotlin?

To ensure behavioral parity when refactoring legacy Java codebases to Kotlin, the process begins with a faithful translation step before applying nullability audits, collection conversions, and final idiomatic transformations to minimize migration errors.