agentsclimarketplace

Openjar indexer

Skill tainn03/openjar-cli/skills/openjar-indexer

Query the local Maven/Gradle artifact index from the terminal. Use when you see an import but cannot find the class definition in the workspace (it likely comes from a compiled internal library), when you need to read the actual implementation of an internal or non-well-known library, or when you need to find which artifact contains a class, discover implementations of an interface, or inspect proto/resource files inside JARs. Do not use for well-known standard libraries (java.util, Spring core, etc.) that the AI already knows.From its SKILL.md

Install
npx -y skills add tainn03/openjar-cli --skill openjar-indexer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.5 KB, 686 tokens by cl100k_base, as published. Nobody here has run it

Maven Indexer

Use openjar-cli to search and inspect Java classes, artifacts, and resources from your local Maven/Gradle cache.

When to activate

Use this skill when:

  • You see an import (e.g. com.company.util.Helper) but cannot find the definition in the workspace — it likely comes from a compiled internal library
  • You need to read the actual implementation of an internal or non-well-known library ("Don't guess what the internal library does — read the code")
  • You need to find which artifact contains a given class
  • You need method signatures, Javadocs, or full source code of a dependency class
  • You need to find implementations of an interface or subclasses of a base class (e.g. SPI implementations)
  • You need to locate proto files or other resources embedded in JARs

Skip when:

  • The class is from the standard Java library (java.util, java.io, etc.) or a well-known public library the AI already knows well
  • The source is already present in the current workspace

Check index first

If the index might be empty or stale, build it first:

# Quick scan — one best version per artifact (fast, recommended)
openjar-cli refresh

# Full scan — all versions of all artifacts
openjar-cli refresh --full

Commands

class — Find which artifact contains a class

Essential when you see an import but cannot find the definition. Do not assume the source is local just because the code compiles.

openjar-cli class <className>
# Examples:
openjar-cli class StringUtils
openjar-cli class com.company.util.Helper
openjar-cli class JsonToXml          # keyword search also works

detail — Read the actual implementation

Use instead of guessing. Prefers source JARs, falls back to decompilation.

# Method signatures (default)
openjar-cli detail <className>

# Javadocs + method signatures
openjar-cli detail <className> --type docs

# Full source code
openjar-cli detail <className> --type source

# From a specific artifact version
openjar-cli detail <className> --coordinate groupId:artifactId:version

artifact — Find artifacts by coordinate or keyword

openjar-cli artifact <query>
# Examples:
openjar-cli artifact guava
openjar-cli artifact com.google.guava

impl — Find SPI implementations and subclasses

Particularly useful for finding implementations of SPIs or base classes within internal company libraries.

openjar-cli impl <className>
# Examples:
openjar-cli impl java.util.List
openjar-cli impl com.example.spi.Handler

resource — Find proto files and other JAR resources

openjar-cli resource <pattern>
# Examples:
openjar-cli resource .proto
openjar-cli resource log4j.xml

Output

All commands support --json for structured output:

openjar-cli class ImmutableList --json
openjar-cli detail com.google.common.collect.ImmutableList --json

If openjar-cli is not found, install it: npm install -g openjar-cli

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,367. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.