dev-context-code-graph

dev-context-code-graph is a skill for Claude Code, Codex from vasilyu1983/AI-Agents-public. It costs 41 tokens per session (3,148 once invoked), scanned A, original, MIT.

A machine-readable map of one code repository, including files, symbols such as functions and classes, imports, calls, inheritance, and links to tests. It also produces Markdown-ready supporting documents.

In plain words
What is it for?
Use it to assess change impact, trace imports and calls, connect code to tests, find dependency cycles and bottlenecks, retrieve focused context, and describe modules from repository evidence.
Why use it?
It is hard to know what a code change might affect by reading files one at a time. The graph shows relationships and helps identify review scope, dependencies, cycles, and important connection points.

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/vasilyu1983/ai-agents-public/dev-context-code-graph
Any agent
npx skills add vasilyu1983/AI-Agents-public --skill dev-context-code-graph
Clone the repo
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dev-context-code-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/dev-context-code-graph.svg)](https://agentmods.dev/skills/vasilyu1983/ai-agents-public/dev-context-code-graph)
Your own site
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/dev-context-code-graph"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/dev-context-code-graph.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,148 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.00041 $0.03148
Opus 5 $0.00020 $0.01574
Sonnet 5 $0.00008 $0.00630
Haiku 4.5 $0.00004 $0.00315

Measured 3d ago against content hash 0d4be57ae088, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dev-context-code-graph 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 3d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/build_code_graph.py, scripts/export_code_graph_report.py, scripts/query_code_graph.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

frameworks/shared-skills/skills/dev-context-code-graph/SKILL.md · 314 lines

How it starts

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

Code Graph

Build a deterministic, machine-readable code graph for a single repository. Treat the graph as a machine-readable substrate for an LLM-maintained repo wiki or context hub, not just a terminal-only report. This skill mirrors the dev-context-multi-repo artifact workflow, but works at file and symbol level instead of portfolio level.

Use this skill when you need:

  • a committable graphs/code-graph.json artifact
  • file and symbol maps for one repo
  • import, call, inheritance, and test-link analysis
  • graph-theory review signals such as articulation points, bridges, cycles, topological order, and alternate paths
  • blast radius and minimal review context for changed files or symbols
  • budget-bounded context retrieval around 1–3 hot symbols via Personalized PageRank
  • a grounded repo description or module description generated from graph data instead of ad hoc codebase prose

Do not use this skill for:

  • portfolio-wide repo discovery or cross-repo system maps
  • architecture or migration planning across many repos
  • prose documentation cleanup without graph generation

Use related skills instead:

Quick Reference

Need Start here
Generate the base artifact set ## Workflow
Validate schema and graph integrity ### Phase 3: Validate
Query blast radius or symbol neighborhoods ### Phase 4: Query
Surface structural graph risk query_code_graph.py --articulation-points, --bridges, --cycles, --topo-sort, --from ... --to ... --k N
Run hot-symbol PPR retrieval query_code_graph.py --ppr --seed <id> [--seed <id> ...] --top N
Detect modules via communities query_code_graph.py --communities [--resolution γ] [--community-seed N]
Pick the right query for a review references/query-recipes.md
Load scripts, schemas, and reports ## Navigation

Read the full file on GitHub · 314 lines

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. 3d ago First seen · 314 lines · 41 tokens per session scan A 0d4be57ae088

Subscribe to this mod's changes

dev-context-code-graph is a skill published in the GitHub repository vasilyu1983/AI-Agents-public (82 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 3,148 once invoked, about $0.0002 per session on Opus 5. 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

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

agent-memory

../../../engineering/agent-memory/skills/agent-memory/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

regex-mastery

Use this skill when writing regular expressions, debugging pattern matching,optimizing regex performance, or implementing text validation. Triggers on regex, regular expressions, pattern matching, lookahead, lookbehind, named groups, capture groups, backreferences, and any task requiring text pattern matching.

alibaba/anolisa · 60 tokens

ws-ckpt

工作区快照管理。用户说"保存一下"、"存个快照"时创建 checkpoint,仅限 Linux; 说"回滚"、"撤销"、"恢复到之前"时 rollback;说"删掉快照"时 delete; 说"对比快照"、"快照改了什么"时 diff; 说"看看快照"、"有哪些快照"时 list;说"查看快照状态"、"查看快照剩余空间"时 status。.

alibaba/anolisa · 115 tokens

compute-methods

Environment-verified friction sheets for field-standard computational tools (Rydberg pair interactions, QEC circuits, qLDPC decoding, code distance, atom dynamics, optics, quantum chemistry). Each sheet lists the tools the field actually uses, the first-use frictions that make agents wrongly abandon them, and one-line…

Muuuun/luxas · 113 tokens