microsoft/github-copilot-modernization/building-java-knowledge-graph
Claude Code and agent skill by microsoft/github-copilot-modernization
- vendor
Checking that the SKILL.md file is still in the repository.
Analyzes JVM projects (Java/Kotlin/Scala/Groovy) and generates knowledge graphs with tree-sitter parsing. Requires Python 3 on the host and a JVM project with Maven/Gradle/Ant/Ivy build files. Skips gracefully if either prerequisite is missing. Triggers when asked to "build knowledge graph", "analyze project structure", "parse Java codebase", or "generate dependency graph".
Install
npx vskill@latest install microsoft/github-copilot-modernization/building-java-knowledge-graphSKILL.md
The same SKILL.md was published earlier as microsoft/github-copilot-modernization/building-java-knowledge-graph.
Prerequisites
Step 1 — Verify JVM project:
If no JVM files found: skip this skill. Setknowledge_graph_dirtonullinsetup_artifacts. Non-fatal — downstream agents fall back to direct source analysis.
Step 2 — Verify Python:
If unavailable: skip this skill with same fallback as above.
Quick Start
⚠️ DESTRUCTIVE OUTPUT: The script wipes ALL files in output-dir before writing. NEVER point it at a shared directory like {{BASE_PATH}}/ or {{BASE_PATH}}/artifacts/. Use a dedicated subdirectory:
After the script finishes, copy knowledge-graph.json to {{BASE_PATH}}/ for other agents to consume.
What It Detects
- Build systems: Maven (pom.xml), Gradle (build.gradle*), Ant (build.xml), Ivy (ivy.xml)
- Languages: Java, Kotlin, Scala, Groovy via tree-sitter AST
- Structure: Modules, packages, classes, interfaces, enums, annotations
- Relationships: Inheritance, implementations, module dependencies
- Patterns: Architecture layers (controller/service/repository/model/config/util)
- Config:
application*.properties,application*.yaml/yml - Gradle subprojects:
settings.gradleparsing
Output
All outputs are written under the provided artifact path (pass as 2nd argument to the script).
Resources
references/schema.md— node/edge types, ID patterns, fields, visualization colorsreferences/querying.md— jq and Python query examplesscripts/build_knowledge_graph.py— main analyzerscripts/install_grammars.py— grammar installer
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 7 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/github-copilot-modernization/skills/building-java-knowledge-graph/SKILL.md
Popularity
- Repository stars
- 55
- Repository forks
- 16
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/github-copilot-modernization/building-java-knowledge-graph)