About
The Mermaid-Fix skill provides a robust framework for managing Mermaid diagrams within your codebase. It utilizes the mermaid-cli (mmdc) to perform real-time syntax validation, identify parsing errors, and apply automated fixes for common issues like case sensitivity, illegal HTML tags, and naming convention violations. By maintaining a local ruleset in .claude/rules/mermaid.md, the skill dynamically learns from new error patterns, ensuring that AI-generated or manually edited diagrams always meet rendering standards. It is particularly useful for technical writers and developers who rely on diagrams for system architecture, sequence flows, and state machines.