askill
mermaid

mermaidSafety 95Repository

Must read guide on creating/editing mermaid charts with valiation tools

0 stars
1.2k downloads
Updated 2/13/2026

Package Files

Loading files...
SKILL.md

Mermaid Skill

Use this skill to quickly validate Mermaid diagrams by parsing + rendering them with the official Mermaid CLI.

Prerequisites

  • Node.js + npm (for npx).
  • First run downloads a headless Chromium via Puppeteer. If Chromium is missing, set PUPPETEER_EXECUTABLE_PATH.

Tool

Validate a diagram

./tools/validate.sh diagram.mmd [output.svg]
  • Parses and renders the Mermaid source.
  • Non-zero exit = invalid Mermaid syntax.
  • Prints an ASCII preview using beautiful-mermaid (best-effort; not all diagram types are supported).
  • If output.svg is omitted, the SVG is rendered to a temp file and discarded.

Workflow (short)

  1. If the diagram will live in Markdown: draft it in a standalone diagram.mmd first (the tool only validates plain Mermaid files).
  2. Write/update diagram.mmd.
  3. Run ./tools/validate.sh diagram.mmd.
  4. Fix any errors shown by the CLI.
  5. Once it validates, copy the Mermaid block into your Markdown file.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

80/100Analyzed 2/20/2026

Well-structured Mermaid validation skill with clear workflow steps and actionable commands. Located in dedicated skills folder. Reasonable completeness with prerequisites and tool usage. Slightly project-specific due to tool path, and has minor issues (typo, mismatched tag). No safety concerns.

95
80
65
75
85

Metadata

Licenseunknown
Version-
Updated2/13/2026
Publisherlarsderidder

Tags

github-actions