GuruDevvv/my-claude-skills / external/mermaid-tools
mermaid-tools
VerifiedExtracts Mermaid diagrams from markdown files and generates high-quality PNG images using bundled scripts. Activates when working with Mermaid diagrams, converting diagrams to PNG, extracting diagrams from markdown, or processing markdown files with embedded Mermaid code.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 1.4 KB |
| SKILL.md | skill md | 5.4 KB |
| references/setup_and_troubleshooting.md | markdown | 5.1 KB |
| scripts/extract-and-generate.sh | script | 5.2 KB |
| scripts/extract_diagrams.py | script | 4.9 KB |
| scripts/puppeteer-config.json | config | 356 B |
| КАК_ИСПОЛЬЗОВАТЬ.md | markdown | 512 B |
README.md
View on GitHub# mermaid-tools
Pulls Mermaid diagrams out of a Markdown file and renders them to high-resolution PNG.
## When to use
When a diagram has to live somewhere that does not render Mermaid — a Word document, a slide, a PDF,
a Telegram message. Chat and artifacts render it natively; everything else shows raw code.
## What's inside
One command per file: every diagram extracted in order, numbered 01, 02, ..., saved beside its source
along with the diagram code. Size and scale are configurable, with presets for presentation and print
(4-5x scale).
## Requirements
`npm install -g @mermaid-js/mermaid-cli` — a one-off, and it pulls its own browser (~150 MB).
## Patched — this is not upstream
Upstream `scripts/extract-and-generate.sh` hard-requires Chrome at `/usr/bin/google-chrome-stable`
(a WSL2/Ubuntu path) and exits if it is absent — so it never ran on Windows, even though the renderer
itself works there fine.
Now, if that path does not exist, `PUPPETEER_EXECUTABLE_PATH` is simply not set and mermaid-cli falls
back to its own bundled browser. Verified on Windows, including Cyrillic labels.
## Source
**Not my work.** By daymade — [daymade/claude-code-skills](https://github.com/daymade/claude-code-skills), `daymade-docs/mermaid-tools/`
MIT. Full licence text: [`../licenses/`](../licenses/). Prefer installing from upstream — that copy is maintained, this one is a snapshot.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |