add-dependency

Community

Add Maven dependencies and verify the build

Authormattbobambrose
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Adds one or more Maven dependencies to a Kotlin/Gradle project while managing shared versions, maintaining the Gradle version catalog, and ensuring the project still builds, eliminating manual catalog edits and guesswork about versions and aliases.

Core Features & Use Cases

  • Automated Version Resolution: Searches Maven Central or the web for the latest stable release for each provided group:artifact coordinate and avoids pre-release versions unless necessary.
  • Version Catalog Integration: Updates gradle/libs.versions.toml by adding or reusing version aliases and adding corresponding library entries following the project's naming conventions.
  • Build Verification: Inserts catalog-based accessors into build.gradle.kts and runs a Gradle clean build (excluding tests) to validate dependency resolution and compilation.
  • Use Case: Quickly add multiple libraries to a Kotlin project while keeping centralized version control and avoiding inconsistent dependency declarations.

Quick Start

Add org.jetbrains.kotlinx:kotlinx-coroutines-core to the project by running add-dependency org.jetbrains.kotlinx:kotlinx-coroutines-core.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-dependency
Download link: https://github.com/mattbobambrose/mattbobambrose-claude-skills/archive/main.zip#add-dependency

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.