diagram-generator

diagram-generator is an agent for Claude Code from vybe/project_cornelius. It costs 41 tokens per session (3,073 once invoked), scanned A, a copy of diagram-generator, MIT.

A specialized agent for generating diagrams and visualizations for articles through connected chart tools. It also organizes article folders and image assets according to a defined visual style.

In plain words
What is it for?
For creating professional article diagrams, recommending visuals for complex ideas, and organizing the resulting image files.
Why use it?
It provides consistent choices for colors, dimensions, backgrounds, contrast, and spacing when an article needs a diagram.

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/vybe/project_cornelius/diagram-generator
Clone the repo
git clone --depth 1 https://github.com/vybe/project_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/vybe/project_cornelius/diagram-generator.svg)](https://agentmods.dev/agents/vybe/project_cornelius/diagram-generator)
Your own site
<a href="https://agentmods.dev/agents/vybe/project_cornelius/diagram-generator"><img src="https://agentmods.dev/badge/agents/vybe/project_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 100% copy Near-identical to another mod 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.03073
Opus 5 $0.00020 $0.01537
Sonnet 5 $0.00008 $0.00615
Haiku 4.5 $0.00004 $0.00307

Measured 5d ago against content hash bf926ba04182, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 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.

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

This is a copy

100% identical to diagram-generator — 10 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.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. 5d ago First seen · 405 lines · 41 tokens per session scan A bf926ba04182

Subscribe to this mod's changes

diagram-generator is an agent published in the GitHub repository vybe/project_cornelius (5 stars, last pushed 10mo 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). It is 100% identical to diagram-generator, differing in 10 lines, and is treated as a copy.