github-mermaid-diagrams
Installation
SKILL.md
GitHub Mermaid Diagrams
Create Mermaid diagrams that render beautifully in GitHub markdown — in both light and dark mode.
Why This Skill Exists
GitHub renders Mermaid diagrams with its own renderer that behaves differently from mermaid.live or local tools:
- Dark mode overrides text color to light gray, making text on light-filled nodes invisible
- Edge labels get opaque background boxes that clash with the diagram
- Thin edges become nearly invisible in dark mode
classDefwithclasskeyword can create phantom nodes in some renderers- HTML tags like
<br/>work for line breaks, but<i>,<b>render as raw text in some renderers - The
color:property instyledirectives is sometimes respected, sometimes ignored depending on the theme
This skill encodes proven patterns for making diagrams work in both modes.
Quick Start
Related skills
More from ekroon/agent-skills
agentic-progressive-disclosure-architecture
Build codebases for agentic coding with progressive disclosure using module trees, API-first top layers, and implementation split by depth (best fit for Rust and Go).
6codespaces-secret-sync
Sync user Codespaces secret repository access so multiple secrets match a base secret (defaults to first listed secret).
1migrate-agents-to-copilot-instructions
|
1