agentsclimarketplace

Mermaid diagrams

Skill oguzsh/claudey/skills/mermaid-diagrams

Use when asked to create diagrams, flowcharts, architecture visuals, or render Mermaid syntax to PNG/SVG files using the local mmdc CLI tool. Not for inline Mermaid in markdown.From its SKILL.md

Install
npx -y skills add oguzsh/claudey --skill mermaid-diagrams

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 5 stars5 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

2.9 KB, as published. Nobody here has run it

<goal> Render Mermaid diagram source files (.mmd) to PNG using the local `mmdc` CLI. <goal> <when-to-use> - User asks for a diagram, flowchart, architecture visual, or sequence diagram as an image file - Need to render `.mmd` files to PNG/SVG locally - **NOT for**: inline Mermaid code blocks in markdown documents </when-to-use> <core-command>
mmdc -i diagram.mmd -o diagram.png -w 2400 -H 1800 -b white -q
FlagPurpose
-iInput .mmd file
-oOutput file (.png or .svg)
-w 2400Width in pixels (prevents narrow images)
-H 1800Height in pixels
-b whiteBackground color (default is transparent)
-qQuiet mode (suppress stderr noise)
</core-command> <supported-diagram-types>
TypeSyntax PrefixUse Case
Flowchartflowchart TDProcess flows, decision trees
SequencesequenceDiagramAPI calls, message passing
ClassclassDiagramOOP structures, relationships
ERDerDiagramDatabase schemas, table relationships
StatestateDiagram-v2State machines, lifecycles
GanttganttProject timelines, scheduling
PiepieProportional data
Git GraphgitGraphBranch strategies, merge flows
MindmapmindmapBrainstorming, topic hierarchies
TimelinetimelineChronological events
</supported-diagram-types> <workflow> 1. **Write `.mmd` file** with correct diagram prefix and syntax 2. **Create puppeteer config** (only if sandbox errors occur) 3. **Run `mmdc`** with explicit width/height flags 4. **Verify PNG** by reading the output file to confirm it rendered correctly </workflow> <common-mistakes> - *Using deprecated `graph TD`*: Use `flowchart TD` instead - *Missing direction on flowchart*: Always include `TD`, `LR`, `BT`, or `RL` - *Special chars in labels unquoted*: Wrap in quotes: `A["Label (with parens)"]` - *Using `-s` (scale) for dimensions*: Use `-w` and `-H` for explicit pixel control - *Forgetting `end` after `subgraph`*: Every `subgraph` block needs a closing `end` - *Arrow `->` instead of `-->`*: Flowchart arrows require `-->` (solid) or `-.->` (dotted) - *Colons in labels*: Escape or quote: `A["Step: Init"]` - *Not verifying output*: Always read the PNG after rendering to confirm correctness - *mmdc command not found*: If the user doesn't have mermaid-cli installed, they should use npx @mermaid-js/mermaid-cli <args> instead. </common-mistakes>

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.