diagram-exporter

diagram-exporter is an agent for Claude Code from navraj007in/architecture-cowork-plugin. It costs 32 tokens per session (1,486 once invoked), scanned A, original, Apache-2.0.

A tool that turns Mermaid text diagrams into PNG or SVG image files. Mermaid is a text format for drawing diagrams such as system layouts and process flows.

In plain words
What is it for?
Rendering diagrams from an architecture blueprint and optionally saving them locally or exporting them to Confluence or Notion.
Why use it?
It removes the manual work of turning architecture diagrams into images for documents and presentations.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the architect plugin — 48 skills, 63 commands, 19 agents, 7 MCP servers shipped together

Good fit Rendering diagrams from an architecture blueprint and optionally saving them locally or exporting them to Confluence or Notion.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/navraj007in/architecture-cowork-plugin/diagram-exporter
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.

Clone the repo
git clone --depth 1 https://github.com/navraj007in/architecture-cowork-plugin

Made for: Claude Code.

Or install architect, the plugin that ships this one along with the rest of its 48 skills, 63 commands, 19 agents, 7 MCP servers.

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-exporter

README.md
[![agentmods](https://agentmods.dev/badge/agents/navraj007in/architecture-cowork-plugin/diagram-exporter/github.svg)](https://agentmods.dev/agents/navraj007in/architecture-cowork-plugin/diagram-exporter)
Your own site
<a href="https://agentmods.dev/agents/navraj007in/architecture-cowork-plugin/diagram-exporter"><img src="https://agentmods.dev/badge/agents/navraj007in/architecture-cowork-plugin/diagram-exporter/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-exporter

Your own site · 80×15
<a href="https://agentmods.dev/agents/navraj007in/architecture-cowork-plugin/diagram-exporter"><img src="https://agentmods.dev/badge/agents/navraj007in/architecture-cowork-plugin/diagram-exporter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,486 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.00032 $0.01486
Opus 5.5 $0.00013 $0.00594
Sonnet 5.5 $0.00006 $0.00297
Haiku 4.5 $0.00003 $0.00149

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

Security

Grade A, and why

diagram-exporter 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 3mo 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 -s "https://mermaid.ink/img/${ENCODED}" -o diagrams/architecture-diagram.png
agents/diagram-exporter.md · 163 lines

How it starts

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

Diagram Exporter Agent

You are the Diagram Exporter Agent for the Architect AI plugin. Your job is to take the Mermaid diagrams (deliverable 4b) from a blueprint and render them to image files (PNG/SVG) for use in presentations, documentation, and wikis.

Input

You will receive:

  • Mermaid diagram source code (one or more diagrams)
  • Diagram titles/labels
  • Output format: png, svg, or both
  • Output directory path
  • Optional: export target (confluence, notion, local)

Process

1. Find Source Diagrams

Read all .mmd files from architecture-output/diagrams/. These are the canonical source files — do not re-extract from markdown. The canonical filenames are:

architecture-output/diagrams/
├── solution-architecture.mmd     (always — full system topology)
├── deployment.mmd                (always — where components run)
├── sequence-auth.mmd             (always — authentication flow)
├── er-diagram.mmd                (when relational DB exists)
├── service-communication.mmd     (when 2+ backend services)
├── agent-flow.mmd                (when AI agents exist)
├── sequence-payment.mmd          (when payments exist)
└── solution-architecture-infra.mmd  (when system is large)

Also check architecture-output/ top level for any .mmd files from older runs.

2. Verify and Stage

3. Render to Images

Using Mermaid CLI (preferred):

# Install if needed
npx @mermaid-js/mermaid-cli --version 2>/dev/null || npm install -g @mermaid-js/mermaid-cli

# Render each diagram
npx mmdc -i diagrams/architecture-diagram.mmd -o diagrams/architecture-diagram.png -t dark -b transparent -w 2048
npx mmdc -i diagrams/architecture-diagram.mmd -o diagrams/architecture-diagram.svg -t dark -b transparent

Fallback — Mermaid.ink API (if CLI fails):

# URL-encode the Mermaid source and fetch from mermaid.ink
ENCODED=$(echo -n "<mermaid-source>" | base64 | tr -d '\n')
curl -s "https://mermaid.ink/img/${ENCODED}" -o diagrams/architecture-diagram.png
curl -s "https://mermaid.ink/svg/${ENCODED}" -o diagrams/architecture-diagram.svg

Read the full file on GitHub · 163 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. 3mo ago First seen · 163 lines · 32 tokens per session scan A 3995895f9be8

Subscribe to this mod's changes

diagram-exporter is an agent published in the GitHub repository navraj007in/architecture-cowork-plugin (3 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 32 tokens to every session and 1,486 once invoked, about $0.0001 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-31.

Related

diagram-exporter compared with agents from other repositories

diagram-exporter next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagram-exporternavraj007in/architecture-cowork-pluginAgent34mo agoApache-2.0A32Claude Code
canvas-screen-buildermicrosoft/power-platform-skillsAgent1.2ktodayMITA29Claude Code
canvas-create-functionalitymicrosoft/power-platform-skillsAgent1.2ktodayMITA24Claude Code
canvas-create-screensmicrosoft/power-platform-skillsAgent1.2ktodayMITA24Claude Code
fec-design-token-mapperbovinphang/frontend-craftAgent2413d agoMITA58Claude Code
design-auditorAboudjem/ui-ux-suiteAgent812d agoMITA25Claude Code
ux-flow-analystAboudjem/ui-ux-suiteAgent812d agoMITA20Claude Code