Mermaid diagrams.With your agent.

Give Claude Code, Codex, or Pi a local diagram toolkit. Start with an idea or an existing Mermaid file. Export SVG and PNG, improve supported layouts, and preview saved changes in your browser.

A command-line tool + agent instructions. Your coding agent provides the AI.

1 · Prompt

Suggested prompt

Create an architecture-beta view of an order platform: customers call an Orders API, which stores orders in a database and queues work for a worker and email notification path. Use examples/recipes/visual-quality/architecture.mmd as the reference. Preserve the platform boundary and all relationships. Do not claim the boundary is a verified security control.Read full promptClose full prompt
Create an architecture-beta view of an order platform: customers call an Orders API, which stores orders in a database and queues work for a worker and email notification path. Use examples/recipes/visual-quality/architecture.mmd as the reference. Preserve the platform boundary and all relationships. Do not claim the boundary is a verified security control.

Work in a new destination that I approve; do not overwrite the reference files.

Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.

2 · Diagram

Customers call an Orders API connected to a database and a queue, worker, and notification path within a platform boundary

Order platform. Services, dependencies, and one clear boundary. Ask your agent to create the source, then render and inspect it. See supported checks and edits.

Mermaid stays your source of truthSVG & PNG outputRead-only live previewOpen source · MIT

Same meaning.
Clearer priorities.

Make the happy path obvious without hiding the exception. Emphasis changes how the diagram reads, while preserving its relationships.

1 · Prompt

Suggested prompt

Use a disposable copy of examples/recipes/visual-quality/approval.mmd and its sidecar. Emphasize Draft → Ready → Ship as the primary path and No → Revise as the exception. Preserve all four nodes, three relationships and every label. Use a supported presentation action, not a source topology change. Make no layout-score uplift claim. Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.Read full promptClose full prompt
Use a disposable copy of examples/recipes/visual-quality/approval.mmd and its sidecar. Emphasize Draft → Ready → Ship as the primary path and No → Revise as the exception. Preserve all four nodes, three relationships and every label. Use a supported presentation action, not a source topology change. Make no layout-score uplift claim. Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.

2 · Diagram

Before: Draft reaches a Ready decision, with equally weighted Yes to Ship and No to Revise branches
Before: every path has equal weight.A valid diagram, without an explicit visual priority.
After: Draft to Ready to Ship is emphasized in blue, while the No to Revise branch is red and still explicitly labelled
After: the main path stands out.Four nodes. Three relationships. Every label preserved.

Real outputs from one presentation change. The relationships stay intact; this example makes no layout-score improvement claim. Read the Mermaid source, or see more before & after examples.

Install once.
Ask your agent.

Install the local tools, add the agent instructions, and ask for your first diagram. Beautiflow has no AI subscription or model keys of its own.

  1. Install Beautiflow

    Download the command-line tool for macOS Apple silicon or Linux x86-64.

    curl -fsSL https://beautiflow.cc/install.sh | bash
  2. Add the agent instructions

    The skill teaches your coding agent how to use Beautiflow.

    beautiflow install-skill
  3. Ask your coding agent

    Open Pi, Claude Code, or Codex and paste this request.

    Use Beautiflow to draw an order platform with an API, database, and background worker. Save order-platform.mmd and render order-platform.svg.

Your first result: an editable order-platform.mmd and a shareable order-platform.svg. Ask your agent to run beautiflow server order-platform.mmd for a read-only browser preview.

Prefer to inspect the script first? Read the installer. For agent-specific setup and other platforms, read the setup guide.

Agents supply judgment.
Beautiflow supplies control.

The CLI is built for agents. Deterministic operations stay separate from model judgment—and a successful render is only part of the check.

Keep the meaning

Mermaid holds the relationships. A separate layout file holds presentation changes. Polishing does not remove or reconnect elements to improve appearance.

How layout state works

Check, then change

A validated plan precedes each supported agent mutation. A saved operation record enforces checks, allows one targeted correction, and supports rollback.

Read the agent protocol

Know the limits

Flowcharts and state diagrams support polish. Architecture supports measured audit and bounded transformations. All 32 diagram types render; additional types check SVG references without geometry scores.

Explore diagram types