cli-anything-mermaid
Skill by HKUDS
Creates, edits and renders Mermaid diagrams from the command line using stateful project files and mermaid.ink. Built for AI agents and power users who need flowcharts and sequence diagrams without a GUI.
Install cli-anything-mermaid
Built from the published package, never by AI.
git clone --depth 1 https://github.com/HKUDS/CLI-Anything /tmp/CLI-Anything && mkdir -p ~/.claude/skills && cp -r /tmp/CLI-Anything/skills/cli-anything-mermaid ~/.claude/skills/cli-anything-mermaidRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HKUDS/CLI-Anything /tmp/CLI-Anything && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/CLI-Anything/skills/cli-anything-mermaid ~/.gemini/antigravity-cli/skills/cli-anything-mermaidAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install cli-anything-mermaid in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
cli-anything-mermaid is a command-line interface for the Mermaid Live Editor. It lets an assistant or user create, edit and render Mermaid diagrams, including flowcharts and sequence diagrams, through stateful project files. Commands cover project lifecycle, diagram source editing, rendering to SVG or PNG, and generating Mermaid Live Editor share links. Every command supports a --json flag for machine-readable output.
Rendering goes through the mermaid.ink renderer, so no local rendering software is required. Sessions track changes with undo and redo, and projects are saved as JSON. An interactive REPL mode offers tab-completion and history. The tool is aimed at AI agents and power users who need diagrams without a GUI. It is installed with pip and requires Python 3.10 or later.
Written from the project's SKILL.md and checked against it.
What it can do
- Project managementCreate, open, save and inspect Mermaid projects, with optional sample presets and themes.
- Diagram source editingReplace the Mermaid source text inline or from a file, and print the current source.
- Render to SVG or PNGRender the diagram to SVG or PNG through the mermaid.ink renderer.
- Share linksGenerate an editable or view-only Mermaid Live Editor URL for a diagram.
- Undo and redoRevert or replay diagram source changes within a session.
- Session statusShow the current session state and track modifications.
- JSON outputUse the --json flag to get structured output for agent consumption.
- Interactive REPLEnter commands interactively with tab-completion and history when no subcommand is given.
What you need
- Python 3.10 or later
- Access to the mermaid.ink cloud service for rendering
Try asking
- Make a flowchart of our login process and export it as an SVG file.
- Create a sequence diagram from my_diagram.mmd and render it to PNG.
- Generate a view-only Mermaid Live link for my flow.json diagram.
Good to know
- Rendering uses the mermaid.ink cloud service.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cli-anything-mermaid/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to cli-anything-mermaid
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
cli-anything-mermaid: common questions
Does cli-anything-mermaid need a graphical interface?
No. It is designed for AI agents and power users who need to generate diagrams without a GUI.
How are diagrams rendered?
Diagrams are rendered to SVG or PNG via the mermaid.ink renderer, so no external software is required beyond the cloud service.
Can I undo changes to a diagram?
Yes. The session supports undo and redo of diagram source changes, and projects can be saved as JSON.
How do I install cli-anything-mermaid?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cli-anything-mermaid free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is cli-anything-mermaid safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cli-anything-mermaid?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
