code-graph

code-graph is a skill for Claude Code, Codex from sjarmak/coding-agent-workflows. It costs 32 tokens per session (513 once invoked), scanned A, original, MIT.

A guide to navigating an indexed codebase and finding relationships between files, functions, and services. It uses code graphs to trace callers, callees, and the likely impact of a change, while showing the source and revision used.

In plain words
What is it for?
Use it to investigate call chains, cross-service paths, architecture, or change impact. It can fall back to text search and targeted file reads when no graph index is available.
Why use it?
It reduces the need to search large repositories manually when investigating how code is connected. It also helps avoid treating stale indexes or unsupported graph tools as reliable evidence.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to investigate call chains, cross-service paths, architecture, or change impact. It can fall back to text search and targeted file reads when no graph index is available.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sjarmak/coding-agent-workflows/code-graph
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.

Any agent
npx skills add sjarmak/coding-agent-workflows --skill code-graph
Clone the repo
git clone --depth 1 https://github.com/sjarmak/coding-agent-workflows

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 code-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/code-graph/github.svg)](https://agentmods.dev/skills/sjarmak/coding-agent-workflows/code-graph)
Your own site
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/code-graph"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/code-graph/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-graph

Your own site · 80×15
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/code-graph"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/code-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 513 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00032 $0.00513
Opus 5.5 $0.00013 $0.00205
Sonnet 5.5 $0.00006 $0.00103
Haiku 4.5 $0.00003 $0.00051

Measured 2mo ago against content hash 57bdffb6dbb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 2mo ago.

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.

source/skills/code-graph/SKILL.md · 28 lines

How it starts

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

Code graph navigation

Use for investigations that span files, call chains, or change impact. Read-only by default. Prefer the repository's code-search specialist for substantial investigations; pass the absolute repository path, revision, question, and acceptance criteria. Simple symbol lookups can stay local.

Choose the graph by capability

  • Codegraph: source navigation, callers, callees, and impact. Discover the actual exposed tools; prefer codegraph_explore with an explicit projectPath. Ask a focused question or name symbols. Older per-operation MCP names are not guaranteed.
  • codebase-memory: arbitrary graph queries, cross-service edges, schema exploration, degree analysis, ADR or trace integration. Use the codebase-memory skill only if the needed capability is exposed.
  • Graphify: persistent relationships across code, documents, papers, and other media. Use graphify for those questions when graphify-out/ exists.
  • No index or unavailable tool: use rg, file listings, and targeted source reads. Do not initialize an index just to answer a question.

Evidence contract

  1. Establish repository and revision. Respect pending-sync, disabled auto-sync, omitted source, and changed-on-disk warnings.
  2. Use returned source as already read. Read disk only to fill a specific gap or resolve stale source. Edges can remain stale even when returned source is current.
  3. Distinguish structural edges, inferred relationships, and runtime traces. Same-name symbols do not establish dispatch; missing edges do not prove dead code.
  4. Follow the relevant caller and downstream paths, including error and lifecycle paths. Stop when evidence answers the question, not when every neighbor has been expanded.
  5. Return source-cited findings, affected contracts, recommended change locations, and coverage limits. Do not repeat a graph query with a full-tree search unless the graph left a specific gap.

CLI and setup

For a CLI-only environment inspect codegraph --help and codegraph status --help before choosing installed-version options. Setup is separate from navigation. codegraph install --print-config codex previews configuration; install, init, index, and sync can change configuration or state. Configure the chosen project and runtime only when setup is requested. Never copy another workstation's credentials or blanket permission list.

Read the full file on GitHub · 28 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. 2mo ago First seen · 28 lines · 32 tokens per session scan A 57bdffb6dbb1

Subscribe to this mod's changes

code-graph is a skill published in the GitHub repository sjarmak/coding-agent-workflows (7 stars, last pushed 6d ago), licensed MIT. It adds 32 tokens to every session and 513 once invoked, about $0.0001 per session on Opus 5.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-10-02.

Related

code-graph compared with skills from other repositories

code-graph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-graphsjarmak/coding-agent-workflowsSkill76d agoMITA32Claude Code, Codex
doubt-driven-developmentaddyosmani/agent-skillsSkill122k9d agoMITA96Claude Code
ego-lite-simplifycitrolabs/ego-liteSkill26kyesterdayMITA68Codex
checktw93/WazaSkill7.7k15d agoMITA41Claude Code
browser-tracemxyhi/ok-skillsSkill51913d agoApache-2.0A88Claude Code
orca-replaymxyhi/ok-skillsSkill51913d agoApache-2.0A67Claude Code
code-assessmentadobe/skillsSkill343todayApache-2.0A207Claude Code