graph-guided-code-reading

graph-guided-code-reading is a skill for Claude Code, Codex from markoblogo/abvx-agent-skills. It costs 62 tokens per session (628 once invoked), scanned A, original, MIT.

A method for reading a medium or large code repository by following its important symbols, entry points, dependencies, changed files, and tests. It treats the codebase as connected parts instead of reading every file.

In plain words
What is it for?
Use it for pull-request reviews, architecture questions, cross-module bugs, onboarding, and tracing a command, route, job, or error through the repository.
Why use it?
It reduces wasted reading and helps identify the smallest set of files that explains a behavior or change. This is useful when reviewing code, debugging, or learning an unfamiliar project.

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/markoblogo/abvx-agent-skills/graph-guided-code-reading
Any agent
npx skills add markoblogo/abvx-agent-skills --skill graph-guided-code-reading
Clone the repo
git clone --depth 1 https://github.com/markoblogo/abvx-agent-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/graph-guided-code-reading.svg)](https://agentmods.dev/skills/markoblogo/abvx-agent-skills/graph-guided-code-reading)
Your own site
<a href="https://agentmods.dev/skills/markoblogo/abvx-agent-skills/graph-guided-code-reading"><img src="https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/graph-guided-code-reading.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 628 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.00062 $0.00628
Opus 5 $0.00031 $0.00314
Sonnet 5 $0.00012 $0.00126
Haiku 4.5 $0.00006 $0.00063

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

Security

Grade A, and why

graph-guided-code-reading 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 5d 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.

skills/graph-guided-code-reading/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.

Graph Guided Code Reading

Save tokens by reading the codebase as a dependency graph, not as a pile of files.

Core Principle

Most repo-reading waste comes from opening too many files too early. Build a small relevance graph first, then read only the nodes that matter.

Minimal Relevance Graph

For each task, identify only:

  • the user-visible entrypoint or changed surface;
  • the owning module or service;
  • the direct dependencies and dependents that shape behavior;
  • the nearest tests, config, or contracts that constrain the change.

Stop expanding once the next action is clear.

Reading Workflow

  1. Start from the highest-signal anchor:
    • changed files;
    • failing test;
    • route, command, job, or entry function;
    • exact symbol or error text.
  2. Build a compact focus set:
    • entrypoint;
    • implementation module;
    • adjacent callers/callees or imports;
    • validating tests.
  3. Read narrow slices around the relevant symbols first.
  4. Expand one edge at a time only if the current node does not answer the question.
  5. Maintain a short checked-location ledger so files are not reopened without a reason.

Preferred Tools

  • If a repo graph, repomap, AST, or change-impact tool exists, use it first.
  • If not, emulate graph reading with:
    • rg for symbol ownership;
    • git diff --name-only or failing-test paths for anchors;
    • imports, call sites, and config references for edges;
    • nearby tests for behavior contracts.

Task Patterns

PR Review

  • Start with changed files and public interfaces.
  • Trace immediate blast radius: callers, consumers, schemas, tests.
  • Review the impact set before reading unrelated modules.

Debugging

  • Start from the failing surface and walk inward.
  • Prefer one causal path over opening every suspected file.
  • Keep hypotheses tied to specific nodes in the focus set.

Architecture Questions

  • Start from entrypoints and major seams, not internal helpers.
  • Build a compact service/module map before diving into implementation details.

Read the full file on GitHub · 87 lines

Files

What ships with it

2 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. 5d ago First seen · 87 lines · 62 tokens per session scan A 48264788680c

Subscribe to this mod's changes

graph-guided-code-reading is a skill published in the GitHub repository markoblogo/abvx-agent-skills (15 stars, last pushed 11d ago), licensed MIT. It adds 62 tokens to every session and 628 once invoked, about $0.0003 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

weave

Parallel strand orchestration — decompose a task into 3+ independently scoped strands, fan out real subagents (worktree-isolated when they write files), and coordinate through a session file and Insight Capsules. Use ONLY when the user explicitly invokes it by name or slash command.

entropyvortex/meta-llm-charter · 59 tokens

coding-agents-farm

To orchestrate parallel coding-agent farms (Claude, Codex, Copilot, Gemini, etc.) on isolated git worktrees.

griddynamics/rosetta · 32 tokens

mcp-media-inbox-triage

Find media, partnership, and high-intent requests buried in a shared Gmail inbox, summarize the useful ones, and route them to the right owner through Zapier MCP.

zapier/gtm-cheat-codes · 43 tokens

customer-deck-builder

Build tailored customer-facing sales or customer success decks from approved account context and generate the presentation with Gamma through Zapier MCP.

zapier/gtm-cheat-codes · 29 tokens

premortem

First-principles premortem on a high-stakes plan: assume failure 6–18 months out, reconstruct causal death chains, surface hidden assumptions, deliver a revised reversibility-weighted plan. Use ONLY when the user explicitly invokes it by name or slash command.

entropyvortex/meta-llm-charter · 59 tokens

bcc-plan-spar

BCC align+lock+review PLAN.md for one slice (no product code). Slash: /bcc-plan-spar · chat: bcc:plan-spar · "lock PLAN" · spar the plan. Args: rounds=N (auto-review cap), review=self|subagent|cli|auto|off. Grill until clear enough (no default Q&A quota). Hand off to bcc-clean-cut after human APPROVE.

bo-cao/breaking-coding-chaos · 91 tokens