kotlin-tooling-java-to-kotlin

Convert Java source code to idiomatic Kotlin across common frameworks.

2|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/MajesteitBart/ownkey-keyboard --skill kotlin-tooling-java-to-kotlin-majesteitbart
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-tooling-java-to-kotlin
Source: https://github.com/MajesteitBart/ownkey-keyboard/tree/main/.agents/skills/kotlin-tooling-java-to-kotlin
Command: npx skills add https://github.com/MajesteitBart/ownkey-keyboard --skill kotlin-tooling-java-to-kotlin-majesteitbart

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Converts Java source code to idiomatic Kotlin to accelerate Kotlin adoption across projects, preserving behavior while improving readability and safety.

Core Features & Use Cases

  • Framework-aware Java-to-Kotlin conversion that handles Spring, Lombok, Hibernate, Jackson, Micronaut, Quarkus, Dagger/Hilt, RxJava, JUnit, Guice, Retrofit, and Mockito.
  • A disciplined 4-step conversion methodology with 5 invariants to ensure semantics are preserved.
  • Preserves imports, package structure, and public API while migrating constructors and accessors to idiomatic Kotlin.

Quick Start

Provide Java sources and run the tool to generate Kotlin-ready output.

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 code to idiomatic Kotlin during a migration?

Converting Java to Kotlin involves providing Java sources to a tool that applies a 4-step methodology with 5 invariants, adapting constructor styles and annotation targets to ensure Kotlin nullability and mutability while preserving imports and package structure.

Does Java-to-Kotlin conversion work with Spring, Lombok, and Hibernate frameworks?

Yes, the conversion process handles Spring, Lombok, Hibernate, Jackson, Micronaut, Quarkus, Dagger/Hilt, RxJava, JUnit, Guice, Retrofit, and Mockito by adapting their annotation targets and constructor styles to Kotlin idioms.

What is the process for migrating Java constructors and accessors to Kotlin?

Migrating Java constructors and accessors to Kotlin uses a disciplined 4-step methodology with 5 invariants to preserve semantics, adapting constructor styles and accessors to idiomatic Kotlin properties while maintaining the public API.

How does Kotlin nullability enforcement work when converting Java code?

Kotlin nullability enforcement during conversion applies Kotlin's strict nullability and mutability rules to Java sources, ensuring behavior is preserved while improving readability and safety through a disciplined 4-step workflow.

Can I preserve package structure and imports when converting Java to Kotlin?

Yes, the conversion process preserves imports, package structure, and the public API while migrating constructors and accessors to idiomatic Kotlin, ensuring the converted code maintains its original semantic behavior.

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

The primary limitation of Java-to-Kotlin conversion is that while it uses a 4-step workflow with 5 invariants to preserve semantics, complex custom logic outside of supported frameworks like Spring, Lombok, and Hibernate may require manual verification.