code-graph

code-graph is a skill for Claude Code, Codex from AtomicBot-ai/atomic-agent. It costs 28 tokens per session (929 once invoked), scanned A, original, MIT.

A read-only code-mapping tool that traces definitions and callers with file paths and line numbers. It answers questions such as where payment or login code lives and what calls a function.

In plain words
What is it for?
It is for finding callers, uses, imports, definitions, and the relevant code around them without editing files.
Why use it?
It reduces the need to read files one by one and helps avoid missing important links between parts of a codebase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for finding callers, uses, imports, definitions, and the relevant code around them without editing files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atomicbot-ai/atomic-agent/code-graph
About the project

Atomic Agent is a local-first AI agent that runs its control loop and state on a user's machine while using local or cloud models. It drives browsers, edits files, runs approved commands, remembers context, schedules follow-ups, and connects to external tools, with the catalogue providing skills for its use.

AtomicBot-ai/atomic-agent · 3,603 stars · on GitHub · atomicagent.io

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 AtomicBot-ai/atomic-agent --skill code-graph
Clone the repo
git clone --depth 1 https://github.com/AtomicBot-ai/atomic-agent

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/atomicbot-ai/atomic-agent/code-graph/github.svg)](https://agentmods.dev/skills/atomicbot-ai/atomic-agent/code-graph)
Your own site
<a href="https://agentmods.dev/skills/atomicbot-ai/atomic-agent/code-graph"><img src="https://agentmods.dev/badge/skills/atomicbot-ai/atomic-agent/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/atomicbot-ai/atomic-agent/code-graph"><img src="https://agentmods.dev/badge/skills/atomicbot-ai/atomic-agent/code-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 929 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.00028 $0.00929
Opus 5.5 $0.00011 $0.00372
Sonnet 5.5 $0.00006 $0.00186
Haiku 4.5 $0.00003 $0.00093

Measured 17d ago against content hash 855d654f7cee, 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 17d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (evals/checks/callers-check.mjs, evals/fixtures/src/admin/refund-tool.js, evals/fixtures/src/billing/charge.js, …), 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.

starter-skills/code-graph/SKILL.md · 87 lines

How it starts

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

code-graph

People ask about code in terms of meaning ("where are payments?") and links ("who calls this?"). Reading files one by one to answer that is slow and misses things. This skill builds the part of the call graph the question needs, from the project map and targeted searches, and shows every edge with a path:line the user can open.

Read-only: never edit files while answering.

Start from the map

Call os.fs.code_map on the project (or the folder the user named) once per question. It lists the most-referenced files first with their main symbols and lines. Pass focus with the names or paths from the question to centre it. Use path set to one file to get that file's full skeleton before reading it with os.fs.read and an offset.

Question types

Who calls X?

  1. Find the definition: os.fs.grep for the name with a definition pattern (function X, X( after def, class X, X =, fn X).
  2. Search for uses: os.fs.grep for X(, .X(, new X, and imports of the file that defines it.
  3. Drop the definition itself, comments, strings and, unless asked, tests.
  4. For each real caller, read a few lines around it and note the enclosing function. That function is the caller, not the file.
  5. Go one more level up only if the user asked for the chain or the direct callers are thin wrappers.

What does X call / depend on? Read X's body (skeleton first, then the lines). List the functions, modules and external services it uses, in the order they run.

Where is feature Y? (payments, login, uploads…)

  1. Expand Y into the words code uses: payments gives payment, charge, invoice, billing, checkout, stripe, subscription, refund.
  2. Search file paths first (os.fs.code_map with focus, or os.fs.grep on paths), then identifiers, then route strings and config keys.
  3. Rank by how central the hits are: entry points (routes, handlers, CLI commands) first, then the core logic, then helpers and tests.
  4. Answer with the 3 to 7 places that matter, each with one line on its role, not every hit.

Read the full file on GitHub · 87 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. 17d ago First seen · 87 lines · 28 tokens per session scan A 855d654f7cee

Subscribe to this mod's changes

code-graph is a skill published in the GitHub repository AtomicBot-ai/atomic-agent (3,603 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 929 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-11-13.

Related

code-graph compared with skills from other repositories

code-graph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-graphAtomicBot-ai/atomic-agentSkill3.6ktodayMITA28Claude Code, Codex
opencli-autofixjackwener/OpenCLISkill31k22d agoApache-2.0A61Claude Code
surfnicobailon/surf-cliSkill707todayMITA53Claude Code, Codex
amq-cliavivsinai/agent-message-queueSkill94todayMITA59Claude Code
shadow-verifygriffinwork40/agent-afkSkill66todayApache-2.0A78Claude Code
systematic-debuggingdamianvtran/local-operatorSkill232todayMITA45Claude Code, Codex
consumer-mapgriffinwork40/agent-afkSkill66todayApache-2.0A110Claude Code