From kotlin-tools
Add a Maven dependency to the Kotlin project's Gradle version catalog and build file
How this skill is triggered — by the user, by Claude, or both
Slash command
/kotlin-tools:add-dependencyThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Add one or more Maven dependencies — **$ARGUMENTS** — to this Kotlin/Gradle project. If multiple
Add one or more Maven dependencies — $ARGUMENTS — to this Kotlin/Gradle project. If multiple
group:artifact coordinates are given (space-separated), process them all before rebuilding.
Parse the dependency list: Split $ARGUMENTS on whitespace to get one or more group:artifact coordinates.
Process every item in the list.
Find the latest version: For each dependency, search Maven Central (https://search.maven.org) or the web for the latest stable release version. Do NOT use snapshot, milestone, alpha, beta, or RC versions unless no stable version exists.
Read the current version catalog: Read gradle/libs.versions.toml once to understand the existing structure and
naming conventions before making any edits.
Add each dependency to the version catalog (gradle/libs.versions.toml):
[versions] section using a short, conventional alias derived from the artifact
name (e.g., io.ktor:ktor-client-core → version alias ktor if it doesn't already exist, or a more specific
name if it does).[libraries] section following the existing naming pattern (hyphen-separated,
e.g., ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }).build.gradle.kts.Add each dependency to build.gradle.kts: For each dependency, add an implementation(libs.<alias>) line in the
dependencies block of build.gradle.kts, using the catalog alias (hyphens and dots in the TOML key become dots
in the accessor, e.g., ktor-client-core → libs.ktor.client.core). Use implementation unless the dependency is
clearly test-only (in which case use testImplementation).
Rebuild the project: Run ./gradlew clean build -x test once after all dependencies have been added to verify
they all resolve and the project compiles. If the build fails, diagnose and fix the issue (e.g., wrong artifact
name, version incompatibility) before reporting success.
build.gradle.kts.libs.versions.toml if the existing file follows that
convention.group:artifact coordinates
before proceeding.npx claudepluginhub mattbobambrose/mattbobambrose-claude-skills --plugin kotlin-toolsScans Maven/Gradle build files for outdated dependencies, reports available stable updates in a table, and optionally updates versions after build verification.
Provides JVM dependency intelligence via Maven Tools MCP: version lookup, upgrade safety, CVEs, license risks, and release history for Maven/Gradle projects.
Master Maven and Gradle - build configuration, dependencies, plugins, CI/CD