Get the FREE Ultimate OpenClaw Setup Guide →

maven-tools

npx machina-cli add skill arvindand/agent-skills/maven-tools --openclaw
Files (1)
SKILL.md
6.7 KB

Maven Tools

Use this skill to ground JVM dependency decisions in live Maven Central data.

This is an execution skill. Use Maven Tools MCP first for dependency facts, then do the reasoning in-model. Assume Maven Tools MCP is already configured; only discuss setup if the tools are unavailable.

When to Use

Activate when the user asks about:

  • Java, Kotlin, Scala, or JVM dependencies
  • Maven, Gradle, pom.xml, build.gradle, or build.gradle.kts
  • latest versions, upgrades, CVEs, licenses, dependency age, or release history
  • whether a dependency is safe, current, stale, or worth upgrading

Core Boundary

Use Maven Tools MCP for version, security, license, freshness, and release-pattern facts from Maven Central.

  • Do the reasoning in-model: recommend next steps, call out risk, and separate safe-now actions from manual-review items.
  • Normalize dependency inputs to groupId:artifactId or groupId:artifactId:version as needed.
  • For recommendation questions, evaluate concrete candidates with Maven Tools first, then add documentation context before making a strong call.
  • Do not use Maven metadata alone to decide library popularity, framework fit, migration effort, or performance tradeoffs.

Tool Selection

Choose the narrowest tool that matches the request:

IntentToolDefault Parameters
latest version lookupget_latest_versionstabilityFilter: PREFER_STABLE
check exact versioncheck_version_existsnone
bulk candidate check (no current versions)check_multiple_dependenciesstabilityFilter: PREFER_STABLE
upgrade analysis (with current versions)compare_dependency_versionsincludeSecurityScan: true, stabilityFilter: STABLE_ONLY
age/freshnessanalyze_dependency_ageuse project-appropriate threshold
maintenance signalanalyze_release_patternsmonthsToAnalyze: 24
release historyget_version_timelineversionCount: 20
full project auditanalyze_project_healthincludeSecurityScan: true, includeLicenseScan: true, stabilityFilter: PREFER_STABLE

Default to analyze_project_health when the user says "check my dependencies" or pastes a project dependency set.

Use check_multiple_dependencies for candidate sets without current versions. Use compare_dependency_versions for upgrade decisions on current versions. Use analyze_project_health for broad audits, not every single dependency question.

Workflow

  1. Extract dependencies from user input or the build file
  2. Pick the narrowest tool that answers the request
  3. Report the result in decision-oriented language:
    • what is current
    • what changed
    • what is safe to do now
    • what needs manual review

For upgrade questions, prefer compare_dependency_versions with:

  • includeSecurityScan: true
  • stabilityFilter: STABLE_ONLY

Then interpret the result conservatively:

  • patch and minor updates are the default safe path
  • major updates should be treated as manual review unless the user explicitly wants a breaking upgrade

When compare_dependency_versions returns same_major_stable_fallback:

  • treat the top-level major upgrade as the long-term path
  • treat the fallback as the safest immediate upgrade target
  • surface both, but recommend the fallback first for conservative maintenance workflows

This is especially important for "safe update" or bot-like maintenance flows.

If the user asks whether a dependency is safe:

  1. use compare_dependency_versions when remediation guidance matters
  2. use analyze_release_patterns when maintenance risk matters
  3. combine the two instead of relying only on "latest version" checks

Documentation Handoff

When the answer needs migration guides, API details, or library usage patterns, add documentation context before giving a strong recommendation.

Use this order:

  1. use Maven Tools MCP first for dependency facts
  2. if raw Context7 tools are available in the current tool list, use them directly
  3. otherwise, if standalone Context7 tools are available, use them
  4. otherwise, use WebSearch and WebFetch for official docs, release notes, and migration guides
  5. if no documentation path is available, say dependency facts are available but deeper doc lookup is not

Use this especially for:

  • major upgrades
  • migration planning
  • recommendation-style comparisons between candidate libraries

Less Helpful / Out of Scope

  • private artifact repositories that are not mirrored through Maven Central
  • non-JVM ecosystems that do not use Maven coordinates
  • trivial one-off lookups where the exact dependency and decision are already obvious
  • recommendation questions driven mostly by ecosystem adoption or benchmarks unless you also add docs and broader research

Setup Assumption

Assume the user already has Maven Tools MCP configured.

  • arvindand/maven-tools-mcp:latest is the default when raw Context7 tools should be exposed through the same server
  • arvindand/maven-tools-mcp:latest-noc7 is the clean option when documentation is handled separately

Only discuss installation when the tools are unavailable.

Recovery

IssueAction
MCP tools unavailableTell the user Maven Tools MCP is not configured and point them to https://github.com/arvindand/maven-tools-mcp. Mention :latest when they want raw Context7 in the same server, or :latest-noc7 when docs are handled separately.
Dependency not foundVerify groupId:artifactId format and check whether the artifact is on Maven Central.
Raw Context7 tools unavailableUse standalone Context7 tools if available; otherwise fall back to WebSearch and WebFetch.
No documentation path is availableSay dependency facts are available but deeper migration or API docs are not available in the current environment.
Security scan is incomplete or slowUse the partial result, say CVE data may be incomplete, and continue with version/maintenance guidance.
Version type is unclearTreat it as unstable and prefer a known stable release.

License: MIT Requires: Maven Tools MCP server Pairs with: context7 skill or standalone Context7 tools for documentation-heavy follow-up

Source

git clone https://github.com/arvindand/agent-skills/blob/main/skills/maven-tools/SKILL.mdView on GitHub

Overview

Maven-tools grounds JVM dependency decisions in live Maven Central data. It surfaces version, security, license, freshness, and release-pattern facts to help you decide safe upgrades and assess project dependency health.

How This Skill Works

Extract dependencies from user input or build files, then use the narrowest Maven Tools MCP tool to answer. Results show current state, upgrade options, risk signals, and any items that require manual review.

When to Use It

  • When you work with Java, Kotlin, Scala, or other JVM dependencies
  • When reviewing pom.xml, build.gradle, or Maven coordinates
  • When you need latest versions, upgrades, CVEs, licenses, dependency age, or release history
  • When assessing if a dependency is safe, current, stale, or upgrade-worthy
  • When the user asks to check my dependencies, upgrade X, or if a version is safe

Quick Start

  1. Step 1: Identify dependencies from your pom.xml/build.gradle or Maven coordinates
  2. Step 2: Run Maven Tools MCP to fetch latest versions, CVEs, licenses, and age data
  3. Step 3: Review results and decide on safe upgrades (patch/minor) or plan manual review for majors

Best Practices

  • Normalize inputs to groupId:artifactId (or include version) before querying
  • Start with a broad project-health audit for large dependency sets
  • For upgrades, prefer compare_dependency_versions with includeSecurityScan: true and stabilityFilter: STABLE_ONLY
  • Treat patch/minor upgrades as safe defaults, and flag majors for manual review unless user opts in
  • If same_major_stable_fallback is returned, surface both paths but favor the fallback for conservatism

Example Use Cases

  • Check if org.apache.logging.log4j:log4j-core has CVEs and identify safe upgrade paths
  • Review dependencies in pom.xml to surface stale or high-risk libraries
  • Audit license risks for a Maven project and flag problematic licenses
  • Assess release history and age of dependencies to plan maintenance sprints
  • Run a full project health audit to generate a maintenance or upgrade plan

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers