export-diagrams

export-diagrams is a command for Claude Code from navraj007in/architecture-cowork-plugin. It costs 15 tokens per session (1,681 once invoked), scanned A, original, Apache-2.0.

A command for turning Mermaid text diagrams into PNG or SVG image files for documentation. Mermaid is a format for describing diagrams in text.

In plain words
What is it for?
Use it to export all diagrams in the configured folder, one named diagram, or a selected group. It supports PNG, SVG, or both.
Why use it?
It avoids manually rendering architecture diagrams and makes them easier to place in documents or wikis.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit Use it to export all diagrams in the configured folder, one named diagram, or a selected group. It supports PNG, SVG, or both.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/navraj007in/architecture-cowork-plugin/export-diagrams
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 export-diagrams

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/navraj007in/architecture-cowork-plugin/export-diagrams"><img src="https://agentmods.dev/badge/commands/navraj007in/architecture-cowork-plugin/export-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 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,681 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.
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.00015 $0.01681
Opus 5 $0.00008 $0.00840
Sonnet 5 $0.00003 $0.00336
Haiku 4.5 $0.00002 $0.00168

Measured 12d ago against content hash 7231ceb9d438, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

export-diagrams 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 12d 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.

commands/export-diagrams.md · 178 lines

How it starts

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

/architect:export-diagrams

Trigger

/architect:export-diagrams — render all diagrams found in architecture-output/diagrams/ (default).

/architect:export-diagrams [diagram:X] — render one diagram only.

/architect:export-diagrams [diagrams:X,Y] — render a named subset.

/architect:export-diagrams [format:png|svg|both] — override output format (default: both).

Diagram names (matching canonical filenames without extension)

Name File
solution-architecture solution-architecture.mmd
deployment deployment.mmd
sequence-auth sequence-auth.mmd
er-diagram er-diagram.mmd
service-communication service-communication.mmd
agent-flow agent-flow.mmd
sequence-payment sequence-payment.mmd

Examples:

/architect:export-diagrams [diagram:er-diagram]
/architect:export-diagrams [diagrams:solution-architecture,deployment] [format:png]
/architect:export-diagrams [format:svg]

When a [diagram:...] or [diagrams:...] tag is present, render only the named diagrams. When absent, render all .mmd files found.

Purpose

After generating a blueprint with /architect:blueprint, this command renders all Mermaid diagrams (deliverable 4b) to PNG and SVG image files. Produces both light and dark theme variants, suitable for presentations, documentation, and wiki pages.

Workflow

Step 1: Find Diagrams

First, check architecture-output/_state.json for project.name.

Then, scan architecture-output/diagrams/ for all .mmd files — this is the canonical diagram folder. The expected canonical filenames are:

File Always present
solution-architecture.mmd Yes
deployment.mmd Yes
sequence-auth.mmd Yes
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

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

Read the full file on GitHub · 178 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. 12d ago First seen · 178 lines · 15 tokens per session scan A 7231ceb9d438

Subscribe to this mod's changes

export-diagrams is a command published in the GitHub repository navraj007in/architecture-cowork-plugin (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 1,681 once invoked, about $0.0001 per session on Opus 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-08-31.