Skip to content

Java Skill Market

Introduction

The Java Skill Market (https://www.skillsjars.com/) stores Agent Skills packaged in JAR format on Maven. They can be used to customize agents and frameworks like Spring AI. Managing Agent Skills as packaged dependencies enables version control, grouping as transitive dependencies, and avoids repetitive copy-pasting of files. During the build process, skills are extracted from the project's dependencies into a directory readable by the assistant. The extracted directory is typically .skillsjars.

Add JARs Dependency Information

  1. Open the JARs market (https://www.skillsjars.com/), select the appropriate JAR package information, and copy it.

Note: If it is a Gradle project, you need to switch to Gradle and copy it.

  1. This demonstration uses a Maven project. In the project's pom.xml file, add the JAR package information. Then refresh Maven to pull these JAR package dependencies. No red errors indicate a successful pull.

Install Extraction Plugin

  1. If it is a Gradle project, add the following plugin information to build.gradle.
groovy
plugins {
    id("com.skillsjars.gradle-plugin") version "0.0.2"
}
  1. If it is a Maven project, add the following information to the pom.xml file and refresh Maven. Note: You also need to fill in the Jars skill package information you pulled above here.
xml

Execute Command to Extract Skills

  1. In the terminal, select "Git Bash" to execute the command. Please select the command based on the project type.

Note: When executing this command in the terminal, your local JDK version must be 21 or higher to succeed. If not, please use the steps in method 2 below.

  • Gradle: gradle extractSkillsJars -Pdir=.skillsjars
  • Maven: mvn skillsjars:extract -Ddir=.skillsjars

Execution fails if the version is too low.

  1. Open Maven, expand "Plugins", then expand "skillsjars", select "skillsjars:extract", and right-click to select "Modify Run Configuration...".

  1. Click "Modify options" and find "Add VM options" to check.

  1. Scroll down the page, find the vm options setting, copy and paste the final content of the command here, then click "OK".

  1. Click "Run" on the project to extract the skills. A successful execution indicates the process is complete.

  1. Check that the skills have been extracted to the .skillsjars directory.

邮箱:chendw@feisuanyz.com 邮编:518000 地址:深圳市前海深港合作区前湾一路1号A栋201室