SkillsReviewed · wanshuiyin

Mermaid Diagram Generator

Mermaid Diagram Generator is a Claude skill for developers and technical writers who want diagrams from written requests, but its verification workflow requires local file access and shell commands. It specifies editable Mermaid source, a matching Markdown preview and a rendered PNG, followed by syntax checks and visual review. Runtime compatibility and output quality are not assessed.

Researched 17 Nov 2026

In short.

Mermaid Diagram Generator is a Claude skill for developers and technical writers who want editable technical diagrams, but successful rendering does not establish that a diagram represents the intended system correctly. Its instructions cover 23 diagram types, paired source and preview files, command-line rendering and a detailed visual checklist. The main practical uncertainties are host setup, unpinned renderer dependencies and inconsistent instructions about verification and stopping after failed refinements. No execution results or rendered outputs establish its reliability.

Researched and written by an AI model and checked by a second AI model. How it works

The complete captured selected scope is skills/mermaid-diagram/SKILL.md at revision 9f30e834d24a337dbdd06fb20a1150d4376dfa59, accompanied by the repository-level LICENSE. Other repository workflows, external dependency implementations and host configuration are outside this scope. Installation, command execution, rendering, visual quality, semantic accuracy and compatibility across diagram types are not assessed.

The overview

Identity

The resource is the mermaid-diagram skill in wanshuiyin/Auto-claude-code-research-in-sleep. The captured skill consists of skills/mermaid-diagram/SKILL.md, an instruction file for Claude rather than a standalone diagram application. Its input is a diagram description or set of requirements.

The original folder is [https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/tree/main/skills/mermaid-diagram]. Findings concern that folder and the accompanying repository-level license, rather than the repository's other research workflows.

Assessment

Its practical value is a defined path from a written request to editable diagram files, with explicit checks for arrows, labels, completeness and readability. This could suit people already using Claude with project-file and command-line access.

The checklist provides review guidance, not evidence of reliable results. A self-assigned score of nine or ten is not an independently measured quality standard. Installation success, rendering behavior and diagram accuracy are not assessed.

Users

Developers and technical writers can use the described workflow for process diagrams, API interactions, class structures, database relationships and architecture documentation. Researchers also receive guidance for paper figures, including mathematical labels, grayscale readability and labeled arrows.

Beginners get concrete file conventions and review questions, but still need to manage the assistant environment and rendering tools. Experienced developers may value the raw .mmd files for later editing or use with their own rendering commands.

Capabilities

The instructions list 23 diagram types, including flowcharts, sequence diagrams, class diagrams, entity-relationship diagrams, Gantt charts, C4 diagrams, architecture diagrams and timelines. This describes the intended scope; working support for every type is not demonstrated.

The skill specifies descriptive filenames under figures/, identical Mermaid code in .mmd and .md files, and a transparent-background PNG rendered through Mermaid CLI. Additional guidance covers architecture junctions, academic styling and KaTeX mathematical labels in flowcharts and sequence diagrams.

Using it

Requirements

The workflow needs a Claude environment that can load the skill, read and write files, run shell commands and inspect rendered images. Its declared tools are Bash(*), Read, Write, Edit, Glob and Grep. These include broad shell access; the supported host configuration and minimum host version are unspecified.

Rendering requires an available mmdc command or an environment able to run npx and fetch @mermaid-js/mermaid-cli@latest. Exact runtime versions and supported operating systems are unspecified. Context7 is presented as an optional way to obtain current syntax documentation.

Mechanism

Claude is instructed to interpret the request, choose a diagram type, consult syntax guidance and identify components and connections. It then writes raw Mermaid source and a Markdown document containing the same diagram.

The rendering command converts the .mmd file into a PNG. The assistant is then directed to inspect every arrow and node, compare the result with the requirements and assess readability. The file defines MAX_ITERATIONS as three for refinement and sets an acceptance threshold of at least nine out of ten with critical checks passing.

Setup

The captured file does not provide a host-specific installation path or activation procedure. It must first be made available to a compatible Claude skill environment using that environment's setup process.

For the documented workflow, use a writable project directory where figures/ can be created and make the renderer available. The fallback command downloads and runs the latest Mermaid CLI package through npx, so dependency availability and version selection need attention before relying on repeatable output.

Example

An illustrative request is: Create a login flow showing credential submission, validation, a dashboard after success and a return to sign-in after failure. The described workflow would choose a flowchart and could name its files figures/login-flow.mmd, figures/login-flow.md and figures/login-flow.png.

Review would check that validation has both success and failure paths, each arrow reaches the intended destination and both text files contain identical diagram code. This is an example of intended use, not an observed generation or rendering result.

Assessment & evidence

Limitations

Rendering checks whether the renderer accepts the diagram; it does not prove that relationships, labels or system behavior are correct. The captured skill provides no rendered examples, compatibility matrix or measured success rate across its listed diagram types.

The instructions contain unresolved tensions. A mandatory CLI-verification step is followed by a rule allowing manual validation. The requirement never to accept a score below nine also sits alongside a three-round refinement limit, without a defined final failure response. These ambiguities may affect how an assistant handles unsuccessful output.

Practical tradeoffs

Keeping raw Mermaid source beside a preview document makes the output editable and reusable. The separate syntax and content checks address different problems: a parser can reject invalid notation, while checking each arrow against the requirements can reveal a plausible-looking but incorrect diagram.

Those benefits depend on the assistant following the instructions and making accurate judgments. A person familiar with the intended process or architecture should review consequential diagrams, particularly because the numerical score is assigned by the same assistant that generated them.

Alternatives

A concrete alternative visible in the source is to write Mermaid text directly and render it with mmdc. That retains editable source and command-line rendering while leaving diagram construction and review to the user.

The skill adds assistant-guided generation, paired file conventions and a detailed review routine. The evidence contains no comparison with other generation skills or diagram editors, so relative accuracy, convenience and cost are unknown.

Evidence

The captured SKILL.md establishes the intended behavior, commands, output conventions and review criteria. Its immutable source is [https://raw.githubusercontent.com/wanshuiyin/Auto-claude-code-research-in-sleep/9f30e834d24a337dbdd06fb20a1150d4376dfa59/skills/mermaid-diagram/SKILL.md].

The accompanying rights notice is [https://raw.githubusercontent.com/wanshuiyin/Auto-claude-code-research-in-sleep/9f30e834d24a337dbdd06fb20a1150d4376dfa59/LICENSE]. These files establish instructions and licensing, not successful installation, rendering or output accuracy.

Access & freshness

Costs

Total operating cost is unknown. The skill provides no Claude pricing, token usage, execution-time measurements or estimate of the cost of repeated generation and visual review.

The MIT notice grants rights without a license fee for the captured software and documentation. That does not establish the price of an assistant account, model access or computing resources used to render diagrams.

Rights

The captured repository-level LICENSE is MIT, with copyright attributed to wanshuiyin in 2026. It permits use, copying, modification, distribution, sublicensing and sale, subject to retaining the copyright and permission notices in copies or substantial portions. It also disclaims warranties.

No separate folder license is present in the captured scope. The evidence does not establish separate ownership terms for generated diagrams or the terms governing Claude and external rendering dependencies.

Freshness

The captured source revision is 9f30e834d24a337dbdd06fb20a1150d4376dfa59, acquired on 17 November 2026. This identifies a specific source snapshot; it does not establish a numbered skill release or compatibility with current assistant and renderer releases.

The npx fallback specifies @latest rather than a fixed Mermaid CLI version. Consequently, later use can resolve a different dependency even when the skill file remains unchanged.

Next steps

Before adopting the skill, confirm how your Claude environment loads it and whether file writing, command execution and image inspection are available. Choose a renderer version deliberately if repeatability matters.

Try a small diagram representative of your work, compare the two source copies, inspect the rendered labels and verify every connection against the original requirements. Decide how unsuccessful rendering or a failed visual review should be reported when the refinement limit is reached. These are suggested evaluations; their outcomes are unknown.

Evidence for this report

LICENSEnotice · checked 2026-11-17
skills/mermaid-diagram/SKILL.mdselected · checked 2026-11-17