Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Extracts Mermaid code blocks from markdown files and generates numbered PNG diagram images using bundled scripts.
18% 82%+64 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 4 of 22 without it.
Executing `extract-and-generate.sh` produces `permission denied`. What bash command grants execution permissions to this script?
Specifies chmod +x ~/.claude/skills/mermaid-tools/scripts/extract-and-generate.sh.
3 of 3 safety checks passed
This skill enables extraction of Mermaid diagrams from markdown files and generation of high-quality PNG images. The skill bundles all necessary scripts (extract-and-generate.sh, extract_diagrams.py, and puppeteer-config.json) in the scripts/ directory for portability and reliability.
Extract Mermaid diagrams from a markdown file and generate PNG images using the bundled extract-and-generate.sh script:
cd ~/.claude/skills/mermaid-tools/scripts
./extract-and-generate.sh "<markdown_file>" "<output_directory>"
Parameters:
<markdown_file>: Path to the markdown file containing Mermaid diagrams<output_directory>: (Optional) Directory for output files. Defaults to <markdown_file_directory>/diagramsExample:
cd ~/.claude/skills/mermaid-tools/scripts
./extract-and-generate.sh "/path/to/document.md" "/path/to/output"
.mmd files for each diagramFor each diagram, the script generates:
01-diagram-name.mmd - Extracted Mermaid code01-diagram-name.png - High-resolution PNG imageSkills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.