by auver
Project-scoped Maven dependency indexer — like codegraph for your JARs
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/auver/maven-code-graphGuides for using cli tools skills like maven-code-graph.
Give your AI coding assistant eyes into your Maven dependencies.
Your AI is writing code and needs to call an external library:
// AI is writing OrderService.java
public List<OrderItemDTO> getOrderItems(Long orderId) {
return paymentService.getOrderItems(orderId, ???); // ← what's the second parameter?
}
paymentService comes from an external dependency payment-api, not in the project source. The AI can't see the method signature, so it either stops or guesses a type — and the build breaks.
If you're in an IDE, Ctrl+Click solves it instantly. But AI doesn't have an IDE. Its only option is:
grep -rn "PaymentService" → find the import
grep -A2 "payment-api" pom.xml → guess the artifact coordinate
find ~/.m2/.../payment-api → locate the JAR
unzip -p ...sources.jar ...PaymentService.java → extract source
# 30+ seconds later: Result<List<OrderItemDTO>> getOrderItems(Long, String)
# Parameter names lost, no Javadoc
Even that's the best case. Worse: package names and artifact coordinates have no reliable mapping. com.example.payment.core might come from payment-api, or core-lib, or anything else. The AI has to guess from dozens of pom.xml entries or scan 2000+ JARs in ~/.m2.
The AI coding bottleneck isn't the AI — it's that the AI can't see your dependencies.
# Search for a class
$ maven-code-graph search PaymentService
com.example.payment.core.PaymentService [interface]
com.example:payment-api:2.3.1
# See full method signatures
$ maven-code-graph class com.example.payment.core.PaymentService
public interface PaymentService {
Result<List<OrderItemDTO>> getOrderItems(Long orderId, String credential);
Result<PaymentDTO> getPaymentById(Long paymentId, PaymentQueryParam param);
...
}
# Full source with Javadoc
$ maven-code-graph class com.example.payment.core.PaymentService --type source
# Find implementations
$ maven-code-graph implementations com.example.payment.core.PaymentService
The AI goes from import statement to complete method signatures in 0.2 seconds.
mvn) — required for dependency resolution; must be available on PATH-sources.jar. If you have IntelliJ IDEA installed, its bundled JDK is auto-detectednpm install -g maven-code-graph
npx skills add auver/maven-code-graph
First command installs the CLI, second registers the AI skill.
maven-code-graph init (first run)
→ reads pom.xml → mvn dependency:build-classpath → gets all JAR paths
→ Most JARs ship with -sources.jar → tree-sitter-java parses source → extracts classes/methods/inheritance
→ 5% have no source → Fernflower decompiles → tree-sitter-java parses
→ stores everything in SQLite (~/.maven-codegraph/artifacts.db)
Every AI lookup
→ checks .maven-codegraph/state.json for pom.xml changes
→ FTS5 full-text search → millisecond response
→ prefers sources.jar, then cached decompiled output, falls back to javap
The index is shared globally — the same JAR used by multiple projects is only parsed once.
Without maven-code-graph, the AI's actual path:
→ grep import → grep pom.xml guess artifact → find .m2 locate JAR → unzip -p extract
→ parameter names lost, no Javadoc
→ 30+ seconds, breaks coding flow, version may be wrong
With maven-code-graph:
→ import gives the fully qualified name → maven-code-graph class com.example.PaymentService --type source
→ 0.2 seconds, complete source: parameter names, Javadoc, return types
maven-code-graph search is for exploratory browsing. For coding, the import statement IS the exact class name — just like Ctrl+Click in an IDE.
Many Maven dependencies ship with -sources.jar, no decompilation needed. For those that don't, maven-code-graph uses Fernflower automatically.
Fernflower requires JDK 21+. maven-code-graph auto-detects in this order:
FERNFLOWER_JAVA env variablejava (if JDK 21+)Most developers already have IDEA installed — it works out of the box.
Q: Do I need IntelliJ IDEA?
A: No. Most dependencies have -sources.jar already. Those that don't need Fernflower (JDK 21+), which auto-detects IDEA's bundled JDK if you have it.
Q: How long does the first index take? A: ~2-3 minutes for a typical project. Subsequent runs skip unless pom.xml changes.
Q: What if a dependency JAR has no source?
A: The class is skipped during indexing. Lookups fall back to javap method signatures.
maven-code-graph is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by auver. Project-scoped Maven dependency indexer — like codegraph for your JARs. It has 1 GitHub star.
maven-code-graph's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/auver/maven-code-graph" and add it to your Claude Code skills directory (see the Installation section above).
maven-code-graph is primarily written in TypeScript. It is open-source under auver on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh maven-code-graph against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars