From rp1-base
Validates and repairs Mermaid diagrams in markdown files by scanning code blocks, validating syntax, and auto-fixing common errors. Useful for documentation with broken diagrams.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rp1-base:fix-mermaidThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This command validates and repairs Mermaid.js diagrams in markdown files.
This command validates and repairs Mermaid.js diagrams in markdown files.
Extract these parameters from the user's input:
| Parameter | Required | Default | Description |
|---|---|---|---|
FILE_PATH | Yes | - | Path to markdown file, or - for stdin diagram |
/fix-mermaid path/to/file.md # Process markdown file in-place
/fix-mermaid - # Process diagram from stdin (stdout output)
{% dispatch_agent "rp1-base:mermaid-fixer", "INPUT_PATH: {FILE_PATH}, OUTPUT_MODE: in-place" %}
The agent will:
agent-tools mmd-validate command)npx claudepluginhub rp1-run/rp1Validates Mermaid syntax in Markdown files or directories. Extracts diagrams from code blocks, checks validity with Node.js, and reports pass/fail summaries per file.
Creates, validates, and troubleshoots Mermaid.js diagrams including flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, and state diagrams via CLI tool.
Enforces syntax rules for Mermaid diagrams in documentation: quote labels with special chars, avoid <br/> and hardcoded colors, use themes. Validates via check-mermaid.sh.