What it does. Convert Java source files to idiomatic Kotlin using a disciplined 4-step conversion methodology with 5 invariants checked at each step. Supports framework-aware conversion that handles annotation site targets, library idioms, and API preservation.
Before converting, scan the Java file's import statements to detect which frameworks are in use. Load ONLY the matching framework reference files to keep context focused.
Highlights
- Attempt to compile the converted file
- Check annotation site targets
- Confirm no behavioral changes
- Kotlin keyword conflicts (
when
, in
, is
, object
)
- SAM conversion ambiguity
When to use it. Use when converting Java source files to idiomatic Kotlin, when user mentions "java to kotlin", "j2k", "convert java", "migrate java to kotlin", or when working with .java files that need to become…
Install
npx skills add Kotlin/kotlin-agent-skills --skill kotlin-tooling-java-to-kotlin
Or copy the skill folder manually:
git clone https://github.com/Kotlin/kotlin-agent-skills.git
cp -r kotlin-agent-skills/skills/kotlin-tooling-java-to-kotlin/ ~/.claude/skills/kotlin-tooling-java-to-kotlin
Source: Kotlin/kotlin-agent-skills — 1,030 stars, Apache-2.0, last pushed 2026-08-24.