Agent Skills
› aresbit/MateBot
› mermaid-validator
mermaid-validator
GitHub自动验证和修复 Markdown 文件中的 Mermaid 图表语法错误,确保图表有效性。
Trigger Scenarios
在 Markdown 文件中创建新的 Mermaid 图表后
编辑现有的 Mermaid 图表后
用户请求验证或检查 Mermaid 图表时
Install
npx skills add aresbit/MateBot --skill mermaid-validator -g -y
SKILL.md
Frontmatter
{
"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
Version History
- 2328a17 Current 2026-08-20 10:32


