# Codegraph

Analyze indexed codebases via graph database (neug) and vector index (zvec).

- Repository: https://github.com/QwenLM/qwen-code (28858 stars)
- Category: Data and ML
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add QwenLM/qwen-code --skill codegraph -g -a claude-code -y`
Codex: `npx skills add QwenLM/qwen-code --skill codegraph -g -a codex -y`
Cursor: `npx skills add QwenLM/qwen-code --skill codegraph -g -a cursor -y`
Gemini CLI: `npx skills add QwenLM/qwen-code --skill codegraph -g -a gemini-cli -y`

## Description

Analyze indexed codebases via graph database (neug) and vector index (zvec). Covers call graphs, dependencies, dead code, hotspots, module coupling, architecture reports, semantic search, impact analysis, bug root cause from GitHub issues, class diagrams (UML), and PR review (risk scoring, conflict detection, auto-merge candidates, labeling). Also covers creating, inspecting, and repairing a CodeScope index. Use for: code structure, who calls what, why something changed, similar functions, module boundaries, bug tracing, class relationships, PR risk/conflicts, or any question benefiting from a code knowledge graph. Applies when a `.codegraph` index exists in the workspace, or when the user wants to create one.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# CodeScope Q&A

CodeScope indexes source code into a two-layer knowledge graph, **structure** (functions, calls, imports, classes, modules) and **evolution** (commits, file changes, function modifications), plus **semantic embeddings** for every function. Supports **Python, JavaScript/TypeScript, C, and Java** (including Hadoop-scale repositories with 8K+ files). This combination enables analyses that grep, LSP, or pure vector search cannot do alone. It can also **fetch GitHub issues and trace bugs to code**, and **review open PRs**, scoring per-PR risk, detecting cross-PR conflicts, identifying auto-merge candidates, and applying GitHub labels.

## When to Use This Skill

The rest: https://github.com/QwenLM/qwen-code/blob/HEAD/.qwen/skills/codegraph/SKILL.md
