cli-anything-mermaid

cli-anything-mermaid is a skill for Claude Code, Codex from HKUDS/CLI-Anything. It costs 60 tokens per session (1,065 once invoked), scanned A, original, Apache-2.0.

A command-line interface for Mermaid, a text-based tool for creating diagrams. It can manage projects and render flowcharts, sequence diagrams, and other visual diagrams into images.

In plain words
What is it for?
Creating, editing, saving, and rendering Mermaid diagrams, including flowcharts and sequence diagrams. It can return information in JSON and uses the mermaid.ink service to render diagrams.
Why use it?
It removes the need to edit diagrams manually in a browser. Diagram changes can be stored in project files and used in automated workflows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Creating, editing, saving, and rendering Mermaid diagrams, including flowcharts and sequence diagrams. It can return information in JSON and uses the mermaid.ink service to render diagrams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hkuds/cli-anything/cli-anything-mermaid
About the project

CLI-Anything turns software and services into command-line interfaces that AI agents can use to perform tasks and produce artifacts. It is intended for people building or using agent workflows with tools such as coding assistants, design software, and other applications. The catalogue entries are skills, commands, a plugin, and a rule for working with CLI-Anything.

HKUDS/CLI-Anything · 49,083 stars · on GitHub · clianything.cc

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.

Any agent
npx skills add HKUDS/CLI-Anything --skill cli-anything-mermaid
Clone the repo
git clone --depth 1 https://github.com/HKUDS/CLI-Anything

Made for: Claude Code, Codex.

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 cli-anything-mermaid

README.md
[![agentmods](https://agentmods.dev/badge/skills/hkuds/cli-anything/cli-anything-mermaid.svg)](https://agentmods.dev/skills/hkuds/cli-anything/cli-anything-mermaid)
Your own site
<a href="https://agentmods.dev/skills/hkuds/cli-anything/cli-anything-mermaid"><img src="https://agentmods.dev/badge/skills/hkuds/cli-anything/cli-anything-mermaid.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,065 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. ✓ AI security review Fable 5.1 · 6 Sept 2026 📄 Read the review Third-party audits
  • Socket pass 18 Apr 2026
  • Snyk pass 18 Apr 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00060 $0.01065
Opus 5 $0.00030 $0.00532
Sonnet 5 $0.00012 $0.00213
Haiku 4.5 $0.00006 $0.00106

Measured 8d ago against content hash 5118e028bbdd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

cli-anything-mermaid 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 8d 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.

skills/cli-anything-mermaid/SKILL.md · 183 lines

How it starts

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

cli-anything-mermaid

Create, edit, and render Mermaid diagrams via stateful project files and the mermaid.ink renderer. Designed for AI agents and power users who need to generate flowcharts, sequence diagrams, and other visualizations without a GUI.

Installation

This CLI is installed as part of the cli-anything-mermaid package:

pip install cli-anything-mermaid

Prerequisites:

  • Python 3.10+
  • No external software required (rendering uses mermaid.ink cloud service)

Usage

Basic Commands

# Show help
cli-anything-mermaid --help

# Start interactive REPL mode
cli-anything-mermaid

# Create a new project
cli-anything-mermaid project new -o diagram.json

# Run with JSON output (for agent consumption)
cli-anything-mermaid --json project info

REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

cli-anything-mermaid
# Enter commands interactively with tab-completion and history

Command Groups

Project

Project lifecycle commands.

Command Description
new Create a new Mermaid project with optional sample preset and theme
open Open an existing Mermaid project file
save Save the current project to a file
info Show current project information
samples List available sample diagram presets

Diagram

Diagram source manipulation commands.

Command Description
set Replace the Mermaid source text (inline or from file)
show Print the current Mermaid source code

Export

Render and share commands.

Command Description
render Render the diagram to SVG or PNG via mermaid.ink
share Generate a Mermaid Live Editor URL for sharing

Session

Session state commands.

Command Description
status Show current session state
undo Undo the last diagram source change
redo Redo the last undone change

Read the full file on GitHub · 183 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. 8d ago First seen · 183 lines · 60 tokens per session scan A 5118e028bbdd

Subscribe to this mod's changes

cli-anything-mermaid is a skill published in the GitHub repository HKUDS/CLI-Anything (49,083 stars, last pushed 17d ago), licensed Apache-2.0. It adds 60 tokens to every session and 1,065 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens