Languages & frameworksApache-2.0

Java to Kotlin Conversion

by Kotlin (opens in a new tab) Kotlin/kotlin-agent-skills

Converts Java files to idiomatic Kotlin with framework-aware compatibility checks.

Installation

Skills CLI

Skills CLI command
npx skills@latest add Kotlin/kotlin-agent-skills --skill kotlin-tooling-java-to-kotlin

Requires Node.js and npm. Choose your agents in the installer; add -g for a global installation.

Fieldbook review

Reviewed 27 Sept 2026

Detects frameworks, writes matching .kt files, updates references, compiles, tests, and handles batches in dependency order. In Git repositories it mandates a two-commit git mv workflow to preserve blame history; otherwise it deletes the original .java file after conversion.

  • LicenceApache-2.0
  • FrontmatterValid name and description
  • Risky patternsNone found
  • Size139 lines
  • Last checked27 Sept 2026 · 5b372715adac4df37e3261040ead2d0c937a5e06a55178fa5ff0fcc95adc1944

What it can touch

  • Edits code

    Changes files in your project.

  • Runs commands

    Runs shell commands such as tests, builds or installs.

  • Uses git

    Reads history or makes commits, branches or worktrees.

Read the source

Fieldbook links to the original instead of copying it, so you always read the version you install.

skills/kotlin-tooling-java-to-kotlin/SKILL.md on GitHub (opens in a new tab)