skills/built-in/mermaid/SKILL.md
Create diagrams as text using Mermaid syntax: flowcharts, sequence diagrams, gantt charts, ER diagrams, class diagrams, mindmaps, and state diagrams. Use when users want to visualize a process, architecture, timeline, data model, or flow, or ask for a diagram/chart/flowchart they can paste into Markdown/Notion/GitHub. Triggers on mentions of diagram, flowchart, sequence diagram, gantt, mindmap, ER diagram, visualize, 流程图, 时序图, 甘特图, 思维导图, 图表, 架构图.
npx skillsauth add microclaw/microclaw mermaidInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Produce a Mermaid code block the user can paste into GitHub, GitLab, Notion, Obsidian, or any Markdown that renders Mermaid. Pick the diagram type that fits the question.
```mermaid
flowchart TD
A[Start] --> B{Valid input?}
B -- yes --> C[Process]
B -- no --> D[Return error]
C --> E[Done]
```
```mermaid
sequenceDiagram
User->>API: POST /order
API->>DB: insert
DB-->>API: ok
API-->>User: 201 Created
```
```mermaid
gantt
title Launch plan
dateFormat YYYY-MM-DD
section Build
Design :a1, 2026-06-01, 7d
Develop :after a1, 14d
```
erDiagram (data models), classDiagram (OOP structure), stateDiagram-v2 (state machines),
mindmap (idea trees), pie (proportions).A["Label: text"].```mermaid fenced block so it renders.documentation
Improve or write prose: tighten, clarify, fix grammar, and adjust tone/length while preserving the author's voice and meaning. Use when users ask to edit, proofread, rewrite, polish, shorten, or change the tone of text, or to draft something from notes. Triggers on mentions of edit, proofread, rewrite, polish, tighten, make it shorter/clearer/more formal, fix grammar, 润色, 改写, 校对, 修改, 精简, 改语气, 帮我写.
development
Look up a quick factual summary of a topic, person, place, or thing from Wikipedia via its public REST API (no API key). Use when users want a concise overview, 'who/what is X', background, or a definition-level explanation of a named entity. Triggers on mentions of who is, what is, tell me about, overview of, background on, wikipedia, 是谁, 是什么, 介绍一下, 简介, 维基.
testing
Convert between units of measurement precisely: length, mass/weight, temperature, area, volume, speed, data sizes, and time. Use when users ask to convert X to Y, 'how many cm in an inch', 'what's 70F in C', 'GB to MB', or mix metric and imperial. Triggers on mentions of convert, conversion, in inches/cm/km/miles, kg/lb, Celsius/Fahrenheit, 换算, 转换, 多少厘米, 多少公斤, 摄氏, 华氏.
development
Translate text between languages naturally, preserving meaning, tone, and formatting, with notes on nuance or ambiguity when it matters. Use when users ask to translate text, say something in another language, or localize a message. Triggers on mentions of translate, in English/Chinese/Spanish/Japanese/etc, how do you say, localize, 翻译, 译成, 用英文怎么说, 中译英, 英译中, 本地化.