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.
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.
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
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.
Suggested prompt
Use examples/recipes/visual-quality/cache.mmd as the reference to explain a cache hit versus a database fallback in a Mermaid sequence diagram. Preserve participants, message order, branches and labels. Sequence diagrams are render-only; do not request automatic polish or geometry scores.
Use examples/recipes/visual-quality/cache.mmd as the reference to explain a cache hit versus a database fallback in a Mermaid sequence diagram. Preserve participants, message order, branches and labels. Sequence diagrams are render-only; do not request automatic polish or geometry scores. 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
Cache hit or miss? Follow the request and the response. Choose a sequence diagram to explain ordering. See capabilities by diagram type.
Suggested prompt
Use a disposable copy of examples/recipes/visual-quality/job.mmd and its associated layout state. Make completion, waiting, retry and terminal failure easy to distinguish without changing transitions or labels. Inspect capabilities and apply only supported presentation changes through the agent receipt workflow. Keep original and final artifacts. A clearer presentation need not increase the geometry score; do not fabricate an uplift.
Use a disposable copy of examples/recipes/visual-quality/job.mmd and its associated layout state. Make completion, waiting, retry and terminal failure easy to distinguish without changing transitions or labels. Inspect capabilities and apply only supported presentation changes through the agent receipt workflow. Keep original and final artifacts. A clearer presentation need not increase the geometry score; do not fabricate an uplift. 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
Retries without the guesswork. A clear completion path, with waiting and failure kept visible. Open full size to read every transition.
Same meaning.
Clearer priorities.
Make the happy path obvious without hiding the exception. Emphasis changes how the diagram reads, while preserving its relationships.
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.
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
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.
Install Beautiflow
Download the command-line tool for macOS Apple silicon or Linux x86-64.
curl -fsSL https://beautiflow.cc/install.sh | bashAdd the agent instructions
The skill teaches your coding agent how to use Beautiflow.
beautiflow install-skillAsk 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 worksCheck, 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 protocolKnow 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