diagramming-code

diagramming-code is a skill for Codex from OutlineDriven/outline-driven-development. It costs 82 tokens per session (2,365 once invoked), scanned A, original, Apache-2.0.

A code-structure diagram generator that turns relationships in source code into Mermaid diagrams, a text format for diagrams.

In plain words
What is it for?
Use it to create call graphs, class hierarchies, module maps, complexity views, or data-flow diagrams from code.
Why use it?
It makes calls, dependencies, class relationships, containment, complexity, or data flow easier to inspect.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to create call graphs, class hierarchies, module maps, complexity views, or data-flow diagrams from code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/outline-driven-development/diagramming-code
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 diagramming-code
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 diagramming-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/diagramming-code/github.svg)](https://agentmods.dev/skills/outlinedriven/outline-driven-development/diagramming-code)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/diagramming-code"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/diagramming-code/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 diagramming-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/diagramming-code"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/diagramming-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,365 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.00082 $0.02365
Opus 5.5 $0.00033 $0.00946
Sonnet 5.5 $0.00016 $0.00473
Haiku 4.5 $0.00008 $0.00236

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

Security

Grade A, and why

diagramming-code 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.devin/skills/diagramming-code/SKILL.md · 80 lines

How it starts

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

Diagramming code and embedding diagrams

Contract

Field Bound contract
Trigger The user asks for a code-derived call graph, class hierarchy, module dependency map, containment view, complexity heatmap, or a data-flow view, including an attack-surface view, or asks to render a Mermaid diagram offline and embed it in a document.
Authority code-derived reads target code and writes only Mermaid graph text to the response or a named local file; it does not mutate source. document-embed writes Mermaid source, SVG, PNG, and (when supported) Excalidraw files only in the selected output directory and edits the existing target document to embed the render. Both modes are reversible local work with no remote mutation.
Side effect code-derived emits a fenced Mermaid graph. document-embed emits the .mmd, rendered SVG and PNG, an optional Excalidraw scene, and an embedded SVG or PNG in the target document.
Done code-derived produces valid, readable Mermaid with at least one node or an explanatory singleton. document-embed embeds a rendered diagram in the target document, keeps the .mmd source and rendered artifacts in the output directory, and states any Excalidraw limitation.

Inputs

  • Mode (optional): code-derived or document-embed; when omitted, infer it from the request as specified in step 1.
  • code-derived mode:
    • Target code directory or path (required).
    • Diagram type, one of: call-graph, class-hierarchy, module-deps, containment, complexity, data-flow (use this type for attack-surface views) (required).
    • Focus node (optional; required for call-graph and data-flow on non-trivial codebases).
    • Traversal depth (optional; default 2).
    • Layout direction, TB or LR (optional; default TB; prefer LR for module-deps).
    • Complexity threshold (optional; default 10; only for complexity).
    • Source language or auto (optional; default auto).
  • document-embed mode:
    • Diagram request: an English description of the structure to diagram, or Mermaid source (required).
    • Target document path (required). The document must exist and be writable.
    • Output directory (optional): ./diagrams/ when the cwd is a git repo, otherwise /tmp/odin-diagrams/.
    • Output slug (optional): derive kebab-case from the diagram subject, 40 characters or fewer.
    • Embed location (optional) and placed width in inches (optional; when omitted, let mmdc retain its intrinsic output width).

Read the full file on GitHub · 80 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. 2mo ago Changed · +21 lines · +36 tokens per session b7caac0ed058
  2. 2mo ago Changed · -23 tokens per session 719bc362a4bb
  3. 2mo ago First seen · 59 lines · 69 tokens per session scan A 6c4dd4e75f99

Subscribe to this mod's changes

diagramming-code is a skill published in the GitHub repository OutlineDriven/outline-driven-development (54 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 82 tokens to every session and 2,365 once invoked, about $0.0003 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-09-03.

Related

diagramming-code compared with skills from other repositories

diagramming-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagramming-codeOutlineDriven/outline-driven-developmentSkill542mo agoApache-2.0A82Codex
create-pull-requestOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A52Claude Code, Codex
gate-and-mergeOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A41Claude Code, Codex
doubt-drivenOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A41Claude Code, Codex
pr-review-canvas-htmlOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A58Claude Code, Codex
resolveOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A44Claude Code, Codex
property-test-authoringOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A57Claude Code, Codex