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 · 68,193 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/github.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/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 cli-anything-mermaid

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 15 Sept 2026
  • Snyk pass 15 Sept 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.5 $0.00024 $0.00426
Sonnet 5.5 $0.00012 $0.00213
Haiku 4.5 $0.00006 $0.00106

Measured 3mo ago against content hash 5118e028bbdd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 3mo 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. 3mo 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 (68,193 stars, last pushed 10d ago), licensed Apache-2.0. It adds 60 tokens to every session and 1,065 once invoked, about $0.0002 per session on Opus 5.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

cli-anything-mermaid compared with skills from other repositories

cli-anything-mermaid next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli-anything-mermaidHKUDS/CLI-AnythingSkill68k10d agoApache-2.0A60Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code