/kotlin-lib:migratefrom Kotlin & Java Library Sources
Diffs a Kotlin library's public API between two versions and identifies breaking changes in the codebase. Invoke with /kotlin-lib:migrate group:artifact from-version to-version.
Ships in Kotlin & Java Library Sources. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Arguments: $ARGUMENTS — group:artifact plus the two versions to compare. If the target
version is missing, use get_latest_version. If the source version is missing, read the one the
project currently depends on from gradle/libs.versions.toml, the build script, or pom.xml.
Steps:
fetch_library both coordinates: group:artifact:<from> and group:artifact:<to>.
diff_api compares the two cached indexes and downloads nothing, so it fails on a version
that was not fetched.diff_api with fromVersion and toVersion. Fields that are zero, false or empty are
left out of the result, so a missing removed means none and a missing truncated means the
page is complete. Read the summary before the page:
added / removed / changed / deprecated count the whole comparison, so they are
the shape of the release in four numbers.packagesAdded / packagesRemoved are the loudest signal — report them first.
packagesTruncated: true means those lists were capped.changes with maxResults: 500 and offset while truncated is true. On a
large release, pass change (removed, then changed, then deprecated) rather than paging
through added entries you will not report; the summary counts are unaffected by it. Do not
truncate silently — if you stopped early, say where.removed — breaking. Its deprecation is the one it carried before it went, which is
where the author named the replacement.changed — same FQ name, fromSignature → toSignature. Breaking if the parameter
list, receiver, nullability or generics moved. A new trailing parameter with a default still
compiles for Kotlin callers; say so rather than flag it.deprecated — newly deprecated, or at a stricter level. error and hidden break the
build like a removal; warning compiles and is a follow-up, not a blocker.added — worth mentioning only where it replaces something removed.removed and an added with the same fqName and kind are usually one overload whose
signature changed: overloads are matched by signature, so changing several at once reads as
removals plus additions. Report the pair as one change.approximate: true — one side was read from unresolved declaration text, so the
difference may be formatting alone. Compare get_api_signature on both versions before
calling it breaking.@InternalAPI, or any annotation the library
declares with @RequiresOptIn) was never supported API. diff_api does not filter these, so
report a change to one only where this codebase opted in to it.deprecation.replaceWith first — the library author's own migration. It may name the
old declaration's parameters (newGreet(name)); substitute the call site's arguments, and
add deprecation.replaceWithImports.get_kdoc on the old symbol in the from version (deprecation notes,
@see), then search_source in the to version for the renamed symbol. Mark a replacement
found this way as inferred.get_dependencies on both, so a transitive bump that comes along for the ride is not a
surprise.If the summary has no counts at all for a release you know changed the API, the declarations were most
likely Java — diff_api sees Kotlin declarations only. Fall back to diff_versions for the source
diff and say that the report is built from text, not from the API.
Report as:
warning-level deprecations to schedule,
dependency-tree changes, packages added/removed.approximate entries left
unconfirmed, and what diff_api does not model: @PublishedApi internal declarations (which
inline functions compile into callers), binary-only changes, and anything reachable only through
reflection or a service loader.Do not edit any code as part of this report. Land the analysis first; the user decides what to change.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/apiPublic API summarySummarize the public API of a Maven-published Kotlin or Java library from its real sources. Usage:/kotlin-lib:api group:artifact[:version] [package]/library-ground-truthLibrary ground truthLook up the real API of a Maven-published Kotlin or Java library — type-resolved signatures, KDoc, dependency tree and source — instead of recalling it. Use before writing or reviewing code against a third-party JVM dependency, when a symbol's existence, signature, nullability, generics or overloads are uncertain, when an import or call doesn't compile, or when the user asks what a library class or function does./setupSet up kotlin-libSet up or repair the kotlin-lib MCP server bundled with this plugin. Use right after installing the plugin, when its tools are missing from the toolset, when the server shows as failed in /plugin or /mcp, or when the machine has no JDK 25.npx claudepluginhub aoreshkov/kotlin-lib-mcp --plugin kotlin-libOther plugins' skills for the same job