Agent Skill
2/7/2026mermaid-validator
Automatically validate mermaid diagrams after creating or editing them in markdown files
A
aresbit
5GitHub Stars
1Views
npx skills add aresbit/OpenMateCode
SKILL.md
| Name | mermaid-validator |
| Description | Automatically validate mermaid diagrams after creating or editing them in markdown files |
name: mermaid-validator description: Automatically validate mermaid diagrams after creating or editing them in markdown files
When to Use This Skill
Proactively use this skill after:
- Creating new mermaid diagrams in markdown files
- Editing existing mermaid diagrams
- User asks to validate/check mermaid diagrams
Always validate before completing the task.
Instructions
- Read the markdown file (use the file from context or ask user which file to validate)
- Run validation using:
mmdc -i <file-path> -o /tmp/mermaid-validation.svg 2>&1 - Report validation results:
- If valid: Confirm the diagram is valid and exit
- If invalid: Show the errors found and explain what's wrong
- Fix the issues automatically (invalid diagrams have no value)
- Re-validate to confirm the fix worked
- Repeat steps 4-5 until there are no validation issues
Skills Info
Original Name:mermaid-validatorAuthor:aresbit
Download