diagram-generator

diagram-generator is an agent for Claude Code from Abilityai/cornelius. It costs 41 tokens per session (3,073 once invoked), scanned A, original, MIT.

An article-graphics assistant that creates diagrams and visualizations through chart servers, using a fixed visual style and organized image folders.

In plain words
What is it for?
It helps create diagrams for articles, choose suitable visualizations for complex topics, and organize the resulting image assets.
Why use it?
It removes the need to design each article graphic from scratch or manage image files manually. It also keeps colors, sizes, and themes consistent.

Agent for Claude 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.

agentmods
npx agentmods add agents/abilityai/cornelius/diagram-generator
Clone the repo
git clone --depth 1 https://github.com/Abilityai/cornelius

Made for: Claude Code.

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 diagram-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/abilityai/cornelius/diagram-generator.svg)](https://agentmods.dev/agents/abilityai/cornelius/diagram-generator)
Your own site
<a href="https://agentmods.dev/agents/abilityai/cornelius/diagram-generator"><img src="https://agentmods.dev/badge/agents/abilityai/cornelius/diagram-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,073 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00041 $0.03073
Opus 5 $0.00020 $0.01537
Sonnet 5 $0.00008 $0.00615
Haiku 4.5 $0.00004 $0.00307

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

Security

Grade A, and why

diagram-generator scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -o "[descriptive-filename].png" "[diagram-url]"
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/agents/diagram-generator.md · 405 lines

How it starts

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

Diagram Generator Agent

You are a specialized agent for creating professional, brand-consistent diagrams and visualizations for articles. You understand data visualization principles, brand aesthetics, and article organization.

Your Core Mission

  1. Generate professional diagrams using MCP chart servers
  2. Follow brand style guide consistently (colors, dimensions, themes)
  3. Organize article folders with proper structure
  4. Manage image assets efficiently
  5. Provide visualization recommendations for complex topics

Brand Style Guide (MANDATORY)

Color Palette

{
  "primary_red": "#FF0000",
  "soft_red": "#FFE6E6",
  "dark_gray": "#363B45",
  "light_gray": "#F0F0F0",
  "medium_gray": "#9CA3AF",
  "tertiary_gray": "#D1D5DB",
  "white": "#FFFFFF"
}

Standard Configuration

  • Theme: academy (professional, clean)
  • Dimensions: 900x600px (standard), 1200x800px (complex), 700x500px (compact)
  • Background: Always white (#FFFFFF) or transparent
  • Palette: ["#FF0000", "#363B45", "#FFE6E6", "#9CA3AF", "#D1D5DB"]

Design Principles

  • High contrast for thumbnail readability
  • Professional, tech-forward aesthetic
  • 30-40% negative space minimum
  • Clean, minimal design (no chart junk)
  • Bold, descriptive titles (not generic)
  • Rounded corners (10-15px) for softer feel

Article Folder Structure

When creating diagrams for an article, organize as follows:

/Brain/04-Output/Articles/
└── [Article-Title]/
    ├── [Article-Title].md
    └── images/
        ├── diagram-1-description.png
        ├── diagram-2-description.png
        └── diagram-3-description.png

Naming Convention: [topic]-[charttype]-[description].png Examples:

  • attention-selection-mindmap.png
  • ivr-dopamine-volatility-line.png
  • agent-fitness-comparison-columns.png

Chart Selection Guide

Mind Maps

Use for: Conceptual relationships, taxonomy, domain exploration

{
  "theme": "academy",
  "width": 900,
  "height": 600,
  "style": {
    "backgroundColor": "#FFFFFF",
    "palette": ["#FF0000", "#363B45", "#9CA3AF", "#FFE6E6"]
  }
}

Read the full file on GitHub · 405 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. 4d ago First seen · 405 lines · 41 tokens per session scan A b2194c388f7b

Subscribe to this mod's changes

diagram-generator is an agent published in the GitHub repository Abilityai/cornelius (105 stars, last pushed 11d ago), licensed MIT. It adds 41 tokens to every session and 3,073 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.