codegraph-ai

Analyze Python, JavaScript/TypeScript, C, and Java codebases for structure, history, and issues.

136|32|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/alibaba/neug --skill codegraph-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codegraph-ai
Source: https://github.com/alibaba/neug/tree/main/skills/codegraph
Command: npx skills add https://github.com/alibaba/neug --skill codegraph-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, pdf2image, python, nodejs, c, java, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides in-depth analysis of codebases, helping users understand their code's structure, history, and potential issues.

Core Features & Use Cases

  • Code Structure Analysis: Understand call graphs, dependencies, and module relationships.
  • Evolution Analysis: Track changes over time, identify dead code, and analyze hotspots.
  • Semantic Search: Find semantically similar functions and explore code relationships.
  • Bug Root Cause Analysis: Trace bugs to their source in the code.
  • PR Review and Analysis: Assess PR risk, detect conflicts, and generate prioritized review reports.
  • Use Case: A developer wants to understand the impact of a change on their codebase. They use this Skill to analyze the PR and get a detailed report on the potential risks and hotspots.

Quick Start

Analyze your codebase with the codegraph-ai skill by running 'codegraph analyze --db /path/to/.codegraph'.

Frequently Asked Questions about codegraph-ai

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

FAQPage Schema
How do I analyze a codebase for structural dependencies and call graphs?

Codebase analysis extracts call graphs, dependencies, and module relationships for Python, JavaScript/TypeScript, C, and Java. It parses the codebase structure to map semantic information and identify dead code or hotspots.

Can I trace the root cause of a bug using GitHub PR history?

Bug root cause analysis integrates with GitHub to trace bugs to their source in the code. PR analysis assesses risk, detects conflicts, and generates prioritized review reports by evaluating codebase history and semantic relationships.

Does this code analysis tool support both Python and Java codebases?

Yes, code analysis supports Python, JavaScript/TypeScript, C, and Java codebases. It evaluates code structure, tracks evolution over time, and performs semantic search across these specific programming languages.

What's the best way to review pull requests for potential risk and conflicts?

PR review assesses risk, detects conflicts, and generates prioritized review reports. It analyzes the codebase to understand the impact of changes, identifying potential risks and hotspots within the pull request.

Do I need specific Python libraries to parse and analyze code files?

Yes, code analysis requires pypdf, pdfplumber, and pdf2image libraries for parsing and analysis. These dependencies are necessary to extract semantic information and process files during the codebase evaluation.

How does semantic search find similar functions in a codebase?

Semantic search finds similar functions by extracting semantic information from the codebase. It maps code relationships and module dependencies to identify functionally similar code blocks across Python, JavaScript, C, and Java.