Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

android-java-to-kotlin

Skill by nextcloud

Guides the second pass of a Java-to-Kotlin conversion in Android projects, turning IDE-converted Kotlin into idiomatic, modern code. Built for Android developers who have already run the Android Studio converter.

  • Score 88
  • 5.7k stars
  • GPL-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install android-java-to-kotlin

Built from the published package, never by AI.

git clone --depth 1 https://github.com/nextcloud/android /tmp/android && mkdir -p ~/.claude/skills && cp -r /tmp/android/.claude/skills/android-java-to-kotlin ~/.claude/skills/android-java-to-kotlin

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install android-java-to-kotlin in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill takes over after the Android Studio Java-to-Kotlin converter has run. It first records the public surface of the file, such as lifecycle callbacks, Bundle keys and factory methods, and notes which work runs off the main thread. It then applies a fixed set of idiomatic changes: removing platform types, using guard clauses, splitting large methods, replacing threads and AsyncTask with coroutines, and retiring deprecated Android APIs.

The source states that every change must keep behaviour unchanged. The skill ends by requiring a behaviour-locking test, either a JVM unit test or an instrumented test, and a verification run using the project's Gradle tasks. It is written for Android developers finishing a Java-to-Kotlin migration in a project that follows the Nextcloud Android conventions.

Written from the project's SKILL.md and checked against it.

What it can do

  • Baseline reviewReads the converted file and the original Java to list the observable surface to keep intact.
  • Idiomatic cleanupRemoves platform types and replaces nested if/else with guard clauses and require calls.
  • Function decompositionSplits oversized lifecycle callbacks and setup methods into small private functions.
  • Coroutine migrationReplaces new Thread, AsyncTask and runOnUiThread with lifecycleScope, suspend and withContext.
  • Deprecated API retirementReplaces onActivityResult, options-menu overrides and java.util.Observable with current APIs.
  • Behaviour-locking testsWrites JVM unit tests or instrumented tests that lock current behaviour after the conversion.
  • Verification runRuns formatting, static analysis, lint and unit test Gradle tasks and reports the real output.

What you need

  • An Android project using Gradle
  • Android Studio to run the initial Java-to-Kotlin conversion
  • JUnit4 and mockito-kotlin for unit tests, as the source describes

Try asking

  • Finish the Java to Kotlin conversion for FileDetailSharingFragment
  • Make this freshly converted .kt file idiomatic and keep behaviour the same
  • Replace AsyncTask and new Thread in this Kotlin file with coroutines

Good to know

  • Behaviour must not change, so real bugs are reported to the developer rather than fixed
  • Does not expand scope, and unrelated files stay untouched
  • Large change sets should be split into focused PRs and the developer is warned first

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/android-java-to-kotlin/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • assets/worked-example.md6 KB
  • references/ANDROID-IDIOMS.md6 KB
  • references/CONCURRENCY.md8 KB
  • references/DEPRECATED-APIS.md3 KB
Show all 8 files
  • references/FAIL-FAST.md4 KB
  • references/PROJECT-CONVENTIONS.md4 KB
  • references/TESTING.md4 KB

Alternatives to android-java-to-kotlin

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

android-java-to-kotlin: common questions

Does this skill perform the initial Java-to-Kotlin conversion?

No. The source says the developer first runs the Android Studio converter, and the skill drives the second pass. A .java file can be handled by first applying a faithful 1:1 translation.

Does the skill require a test?

Yes. The source says a conversion is not complete until a behaviour-locking test proves behaviour is unchanged.

How are commits attributed when using this skill?

The source says each commit needs an Assisted-by line naming the agent and model, and only the human adds Signed-off-by.

How do I install android-java-to-kotlin?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is android-java-to-kotlin free?

The code is published under the GPL-2.0 licence. The service it connects to may have its own pricing.

Is android-java-to-kotlin safe to use?

It scores 88 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to android-java-to-kotlin?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

android-java-to-kotlin Install

Add to stack

Loading.