build-program-graph

build-program-graph is a skill for Codex from OutlineDriven/outline-driven-development. It costs 49 tokens per session (2,273 once invoked), scanned A, original, Apache-2.0.

A tool that maps a codebase into functions, types, modules, imports, and calls, including relationships across programming languages. The resulting graph helps show how parts of a program connect.

In plain words
What is it for?
Use it to trace what calls a function, estimate an entry point’s reach, inspect coarse data-flow paths, and review declared links between systems.
Why use it?
It makes call paths, entry points, affected areas, and trust-boundary crossings easier to inspect in a large codebase.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to trace what calls a function, estimate an entry point’s reach, inspect coarse data-flow paths, and review declared links between systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/outline-driven-development/build-program-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 OutlineDriven/outline-driven-development --skill build-program-graph
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/outline-driven-development

Made for: 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 build-program-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/build-program-graph.svg)](https://agentmods.dev/skills/outlinedriven/outline-driven-development/build-program-graph)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/build-program-graph"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/build-program-graph.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,273 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00049 $0.02273
Opus 5 $0.00024 $0.01137
Sonnet 5 $0.00010 $0.00455
Haiku 4.5 $0.00005 $0.00227

Measured yesterday against content hash 865903fe7ae1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

build-program-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 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.

.devin/skills/build-program-graph/SKILL.md · 85 lines

How it starts

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

Build a program graph

A program graph turns a source tree into nodes (functions, methods, types, modules, contracts) and edges (calls, inheritance, imports, containment) that queries can answer: who calls this sink, what can this entrypoint reach, where do trust levels change across a call. This skill builds the graph for the whole tree, runs the preanalysis passes that security queries depend on, and reports evidence with its version and parser limits attached. Reachability answers where a call path exists; it never proves that attacker-controlled data flows anywhere.

Contract

Field Bound contract
Trigger The user needs a multi-language source graph for call paths, attack surface, entrypoints, blast radius, coarse taint reachability, boundaries, types, proxies, or declared cross-system links.
Authority Reversible local: writes only graph exports, preanalysis subgraphs and annotations, and an optional declared-links file; rollback is deleting the written files. No remote mutation. The graph tool must already be installed; this skill never installs or upgrades tooling.
Side effect Graph export files, preanalysis subgraphs and annotations (in-memory), and an optional declared-links file at the analysis root. Rollback: delete the written files; in-memory annotations vanish when the engine is disposed.
Done The correct languages are parsed, preanalysis has run, requested queries return evidence with the version and parser limits stated, and no reachability result is presented as data-flow or vulnerability proof.

Inputs

  • Required: A target directory containing source code to parse.
  • Optional: An explicit language list when the target is known polyglot or single-language; otherwise use the tool's auto-detection. An existing declared-links file for cross-boundary edges. An external binary-analysis graph export for augmentation where the tool supports it.

Refusals

  • Will not present call-graph reachability or taint-subgraph membership as data-flow or vulnerability proof.
  • Will not fall back to manual analysis when the graph tool is unavailable or fails; manual reading misses what the graph catches.
  • Will not invent a supported language list, a versioned method, or a cross-boundary edge.
  • Will not treat proxy or binary-origin nodes as source code functions.

Read the full file on GitHub · 85 lines

Files

What ships with it

1 file 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 Changed · -39 tokens per session 865903fe7ae1
  2. 4d ago First seen · 85 lines · 88 tokens per session scan A f2473d8f5506

Subscribe to this mod's changes

build-program-graph is a skill published in the GitHub repository OutlineDriven/outline-driven-development (52 stars, last pushed 2d ago), licensed Apache-2.0. It adds 49 tokens to every session and 2,273 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-09-03.