codegraph

A code-analysis tool that indexes a project's functions, calls, imports, classes, modules, and change history, then combines that information with meaning-based code search. It supports Python, JavaScript, TypeScript, C, and Java.

In plain words
What is it for?
Use it to inspect call chains and dependencies, find dead code or hotspots, trace GitHub issues to code, study architecture and history, and review pull requests.
Why use it?
It can answer structural and historical questions that simple text search may miss, such as how a bug travels through the code or which changes affect a function.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/qwenlm/qwen-code/codegraph
Any agent
npx skills add QwenLM/qwen-code --skill codegraph
Clone the repo
git clone --depth 1 https://github.com/QwenLM/qwen-code

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,917 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.07917
Opus 5 $0.00000 $0.03959
Sonnet 5 $0.00000 $0.01583
Haiku 4.5 $0.00000 $0.00792

Measured yesterday against content hash 06c2be5949ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codegraph scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.qwen/skills/codegraph/SKILL.md · 658 lines

How it starts

The opening of the file, as written. The whole thing — 658 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  • User asks about call chains, callers, callees, or dependencies
  • User wants to find dead code, hotspots, or architectural layers
  • User asks about code history, who changed what, or why something was modified
  • User wants to find semantically similar functions across a codebase
  • User wants a full architecture analysis or report
  • User asks about module coupling, circular dependencies, or bridge functions
  • User wants to index or analyze a Java project (Maven, Gradle, plain Java)
  • User wants to analyze GitHub issues or bug reports to find root causes
  • User asks "why does this project have so many bugs" or "what code is most buggy"
  • User wants to trace a bug report to the most relevant code locations
  • User asks about class relationships, ownership, composition, or wants a class diagram / UML
  • User wants to understand which classes own or depend on other classes
  • User wants to review PRs, assess PR risk, or prioritize PR reviews
  • User asks about cross-PR conflicts or which PRs can be merged independently
  • User wants to find auto-merge candidates or generate a PR review report
  • User asks about the blast radius or impact scope of a PR
  • User wants to apply labels to PRs from analysis results
  • User wants to explore PR-specific follow-up questions for a given PR
  • A .codegraph directory (or similar index) exists in the workspace

Read the full file on GitHub · 658 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 658 lines · 0 tokens per session scan A 06c2be5949ac

Subscribe to this mod's changes

codegraph is a skill published in the GitHub repository QwenLM/qwen-code (27,507 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 7,917 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

build-teaql-app

Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C#/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries. Mandatory order: first draft and save a complete KSML model, then verify the client and evaluate that saved model, repair it through repeated evaluation…

teaql/teaql-agent-kit · 112 tokens

agent-manager-reference

Query agent-manager.dev's reference API and MCP server for documentation, the coding CLIs it manages, the tools its MCP server exposes, and the current release. Use instead of scraping the website's HTML.

YoanWai/agent-manager · 45 tokens

loongsuite-pilot-insight

基于 LoongSuite Pilot / AI Coding Agent 日志生成事件洞察、组织洞察、数据质量、研发效能和 AI Native 使用类 SLS 报表时使用;包含 AI Coding 事件表语义,以及团队报表可选的部门维表、deptuser 组织关系、指标口径和公共 CTE,通常与 sls-dashboard-builder 一起使用。.

alibaba/loongsuite-pilot · 91 tokens

novel-workshop

小说创作工作台。用户说写小说、创作小说、写故事、写穿越文、写言情、写科幻、创作故事、开始创作、继续写、写下一章、多视角、POV、装订成册时使用。AI-assisted novel writing workbench for outline, characters, chapter drafting, multi-POV narrative, editing, and book assembly.

MerkyorLynn/Lynn · 90 tokens

hooksmith

Use when designing or reviewing safe Grok Build hooks for linting, tests, formatting, notifications, command guards, lifecycle automation, or project hook trust decisions.

DominikTobureto/awesome-grok-build · 35 tokens

repo-health-check

Use when auditing a repo before changes to find the smallest safe PR, quality risks, stale docs, missing tests, ignored-file gaps, or agent setup issues. Best first skill for unfamiliar codebases.

DominikTobureto/awesome-grok-build · 44 tokens