mermaid-fix
CommunityFix and validate Mermaid diagrams with mmdc
Authorjinbangyi
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Mermaid diagrams in Claude workflows can be error-prone or malformed; this skill fixes and validates Mermaid code blocks to ensure diagrams render correctly.
Core Features & Use Cases
- Read existing rules from .claude/rules/mermaid.md and apply discovered fixes to diagrams.
- Extract Mermaid diagrams from Markdown files, validate syntax with mermaid-cli (mmdc), and apply fixes based on error messages.
- Update mermaid.md with newly discovered error patterns to improve future validations.
- Use case: when a diagram fails to render due to common Mermaid syntax issues such as incorrect Graph TD capitalization or HTML tags in labels.
Quick Start
Read existing rules from .claude/rules/mermaid.md, extract diagrams from your Markdown files, validate them with mmdc, apply fixes, and update rules with new patterns.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mermaid-fix Download link: https://github.com/jinbangyi/k8s-agent/archive/main.zip#mermaid-fix Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.