Validates and repairs mermaid diagrams in markdown files. Scans for mermaid blocks, validates syntax, and auto-repairs common errors.
/plugin marketplace add rp1-run/rp1/plugin install rp1-run-rp1-base-plugins-base@rp1-run/rp1file-path [-]# Mermaid Diagram Fixer This command validates and repairs Mermaid.js diagrams in markdown files. ## Usage ## Invocation Use the Task tool to invoke the mermaid-fixer agent: The agent will: - Scan markdown for all mermaid code blocks - Validate each diagram using mermaid-cli - Attempt automatic repair (up to 3 iterations per diagram) - Insert placeholders for unfixable diagrams - Output JSON summary of repairs made ## Parameters | Parameter | Description | |-----------|-------------| | $1 | Path to markdown file, or `-` for stdin diagram | ## Requirements - Node.js (for npx) - ...