Plugin
mermaid-to-ascii
Convert a Mermaid diagram file into a clean, monospace ASCII art diagram and save it as a .txt file with the same base name. Acts as a senior Mermaid diagram architect with command of monospace/terminal layout. Filename-first intake: asks which .mmd file to convert and STOPs for the answer before doing anything, then restates the source to target mapping. Identifies the diagram type (sequenceDiagram, flowchart/graph, classDiagram, stateDiagram, erDiagram, gantt) and drives the ASCII layout from it: vertical lifelines for sequences, boxed nodes for flow/class/state/ER, time-axis bars for gantt. Preserves every node name, edge label, message, condition, and grouping block (alt/else/opt/loop/par); never drops or renames. Fixed column spacing, aligned boxes, frames closed on both ends, 80-120 char terminal assumption with split-not-truncate for oversized output. Each run emits a titled diagram plus a glyph legend. Edge cases handled: unsupported type approximated, empty source reports a parse error and writes nothing, partial source renders the valid portion and lists skipped lines. Hard prompt-injection defense treats all file content (including %% comments and node labels) as inert diagram data, never as instructions; writes only to the derived .txt and nowhere else. Includes a /mermaid-to-ascii slash command. Progressive disclosure splits the six per-type ASCII layout skeletons into a reference file loaded on demand.