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

legado-kmp-migration

Skill by HapeLee

Plans, implements and reviews Legado's move toward a Kotlin Multiplatform-first structure, with renderers chosen independently per host. Aimed at maintainers of the Legado repository who work on Gradle boundaries, shared code and native host bridges.

  • Score 91
  • 7.5k stars
  • GPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install legado-kmp-migration

Built from the published package, never by AI.

git clone --depth 1 https://github.com/HapeLee/legado-with-MD3 /tmp/legado-with-MD3 && mkdir -p ~/.claude/skills && cp -r /tmp/legado-with-MD3/.agents/skills/legado-kmp-migration ~/.claude/skills/legado-kmp-migration

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

Step-by-step: install legado-kmp-migration in Claude Code

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

About

The Legado KMP-first migration skill guides planning, implementation and review of moving one verified responsibility toward a reusable Kotlin Multiplatform boundary. It covers Gradle boundaries, commonMain extraction, platform capabilities, native or process bridges, selective Compose Multiplatform use and removal of legacy owners. It asks the assistant to read repository AGENTS.md and dev docs before acting.

Renderers can be Android Compose or View, Compose Desktop, WinUI 3 or optional SwiftUI/UIKit, chosen independently per host. The skill requires explicit platform contracts, contract tests before moving behavior, and verification gates for each claimed target. It is aimed at developers working on the Legado codebase who plan or review KMP modularization. It is not meant for Android-only View-to-Compose rewrites unless they change a multiplatform or Gradle boundary.

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

What it can do

  • Architecture planningInventories dependencies and consumers, then chooses the sharing boundary, renderer strategy, targets, gates and rollback point.
  • Pure KMP extractionMoves stable models, rules, ports, use cases, reducers or stores into Compose-free commonMain.
  • Data and runtime extractionSeparates domain contracts from storage, network, files and rule engines under contract tests.
  • Renderer boundary splitSeparates renderer-neutral presentation from Material, Fluent, WinUI 3, SwiftUI/UIKit or reader UI.
  • Selective CMPShares a Compose Screen or resource set only when real hosts choose the same renderer and interaction model.
  • Native host bridgeExposes a small, versioned API through an Apple framework, Windows DLL or C ABI, or a process/IPC boundary.
  • Build logic changesProves a target, convention or gate change with one representative module before wider rollout.
  • Code reviewReports findings by impact with file and line evidence, plus unverified targets, before any edits.

What you need

  • A Legado repository with AGENTS.md
  • docs/dev/kmp-cmp-modernization.md in the repository
  • docs/dev/feature-first-structure.md in the repository

Try asking

  • Plan a KMP extraction of the book source rule logic in Legado.
  • Review this commonMain change for Compose or Android leakage into presentation.
  • Outline the Gradle boundaries and rollback point for moving the storage layer to shared code.

Good to know

  • Not for Android-only View-to-Compose rewrites unless they change a multiplatform or Gradle boundary.
  • In review mode, edits are made only when fixes or plans are requested.
  • Target, task or host support must be confirmed in the repository before it is documented as current.

Security check

A

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

Checked automatically: .agents/skills/legado-kmp-migration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • agents/openai.yaml296 B
  • references/renderer-host-strategy.md3 KB
  • references/slice-checklist.md4 KB

Alternatives to legado-kmp-migration

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

legado-kmp-migration: common questions

Does this skill work for Android-only Compose rewrites?

Not by default. The source says it should not be used for an Android-only View-to-Compose rewrite unless the change also touches a multiplatform or Gradle boundary.

Which renderers does it consider?

The source lists Android Compose or View islands, Compose Desktop with Material or Fluent, Windows-native WinUI 3, and optional SwiftUI or UIKit.

Does the skill edit code during a review?

No. The source says review mode reports findings and unverified targets first, and edits only when fixes or plans were requested.

How do I install legado-kmp-migration?

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

Is legado-kmp-migration free?

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

Is legado-kmp-migration safe to use?

It scores 91 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 legado-kmp-migration?

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

legado-kmp-migration Install

Add to stack

Loading.