diagram-generator

diagram-generator is an agent for Claude Code from Abilityai/cornelius. It costs 41 tokens per session (3,077 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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ![Description](./images/diagram-filename.png).

Good fit It helps create diagrams for articles, choose suitable visualizations for complex topics, and organize the resulting image assets.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

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/github.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/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 diagram-generator

Your own site · 80×15
<a href="https://agentmods.dev/agents/abilityai/cornelius/diagram-generator"><img src="https://agentmods.dev/badge/agents/abilityai/cornelius/diagram-generator.svg" alt="Reviewed on agentmods" width="80" 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,077 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00041 $0.03077
Opus 5.5 $0.00016 $0.01231
Sonnet 5.5 $0.00008 $0.00615
Haiku 4.5 $0.00004 $0.00308

Measured 2d ago against content hash 5ffff019300e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2d 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 · 407 lines

How it starts

The opening of the file, as written. The whole thing — 407 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 · 407 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. 2d ago Changed · +2 lines 5ffff019300e
  2. 3mo 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 (123 stars, last pushed 2d ago), licensed MIT. It adds 41 tokens to every session and 3,077 once invoked, about $0.0002 per session on Opus 5.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.

Related

diagram-generator compared with agents from other repositories

diagram-generator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagram-generatorAbilityai/corneliusAgent1232d agoMITA41Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code
azure-iac-exportergithub/awesome-copilotAgent42ktodayMITA70Claude Code