Render
Render mermaid diagrams from .mmd files to ASCII and SVG for Craft.do. Use when the user asks to "render a mermaid diagram", "update diagrams in Craft", or "regenerate ASCII from .mmd files".From its SKILL.md
npx -y skills add gustin/craft-cli --skill renderAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.4 KB, as published. Nobody here has run it
Render mermaid diagrams from .mmd source files to ASCII (injected into local markdown) and SVG (uploaded to Craft.do docs).
Workflow
- Edit the
.mmdsource file with%% diagram:NAMEmarkers between diagrams - Run
craft render file.mmd --local-onlyto regenerate ASCII in the corresponding.mdfile - Run
craft render file.mmd --doc DOC_IDto also upload SVGs to a Craft document
The .md file uses <!-- mermaid:NAME --> markers as injection points. ASCII content between a marker and the next marker or heading is replaced on each render.
Commands
The craft binary is at: ${CLAUDE_PLUGIN_ROOT}/bin/craft
Always use this full path when running craft via Bash. Do not assume craft is on PATH.
render <file.mmd> --local-only-- regenerate ASCII in the .md file onlyrender <file.mmd> --doc DOC_ID-- also upload SVGs to a Craft documentrender <file.mmd> --theme NAME-- color theme (default: catppuccin-mocha). Available: zinc-dark, tokyo-night, catppuccin-mocha, nord, dracula, github-light, github-dark, solarized-light, solarized-dark, one-dark
Dependencies
Requires node 24+ and npm install in the plugin directory.