java-knowledge-graph

Analyze JVM codebases to generate knowledge graphs of modules and dependencies.

Updated Mar 20, 2026
One-click install
npx skills add https://github.com/lakshmithite127/Lakshmi-Thite --skill java-knowledge-graph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-knowledge-graph
Source: https://github.com/lakshmithite127/Lakshmi-Thite/tree/main/.ghcp-appmod/skills/java-knowledge-graph
Command: npx skills add https://github.com/lakshmithite127/Lakshmi-Thite --skill java-knowledge-graph

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tree-sitter, and includes scripts (resource) components.

What problem does it solve?

Automates the analysis of JVM-based codebases to generate a structured knowledge graph of modules, packages, classes, and dependencies.

Core Features & Use Cases

  • Supports Java, Kotlin, Scala, and Groovy projects across Maven, Gradle, Ant, and Ivy.
  • Outputs a knowledge graph in JSON and DOT/SVG visualizations for architecture insight.
  • Use case: quickly map a multi-module Java project to understand module boundaries and dependency relationships.

Quick Start

Install the necessary grammars once, optionally install Graphviz for visual outputs, and run the knowledge graph builder on your project path.

Frequently Asked Questions about java-knowledge-graph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a knowledge graph from a multi-module JVM codebase?

To generate a knowledge graph from a JVM codebase, parse build files and source trees using tree-sitter grammars. This produces structured JSON and DOT/SVG outputs mapping modules, packages, classes, and dependencies across multi-module repositories.

Does this code analysis tool support Kotlin, Scala, and Groovy projects?

Yes, the code analysis tool supports Kotlin, Scala, and Groovy projects. It applies to Maven, Gradle, Ant, and Ivy build systems, allowing you to analyze source trees and configuration files across these JVM languages.

What is the best way to visualize Java dependencies in a large project?

The best way to visualize Java dependencies is to load grammar-based ASTs via tree-sitter and output the knowledge graph data as DOT/SVG visualizations. This provides architecture insight by mapping class and module boundaries.

Do I need to install tree-sitter grammars to analyze my Gradle project?

Yes, you need to install the necessary tree-sitter grammars once to analyze your Gradle project. The knowledge graph builder relies on these grammars to parse source trees and generate the dependency outputs.

Can I export the extracted package and class relationships as JSON?

Yes, you can export the extracted package and class relationships as JSON. The knowledge graph builder outputs the analyzed dependencies and module boundaries in both JSON format and DOT/SVG visualizations.