Agent skill
dev.mermaid
Generate Mermaid diagrams with proper syntax. Use when creating flowcharts, sequence diagrams, class diagrams, or any other Mermaid visualizations. Ensures correct label quoting to prevent parsing errors.
Install this agent skill to your Project
npx add-skill https://github.com/kevinslin/llm/tree/main/skills/dev.mermaid
SKILL.md
Dev Mermaid
Overview
This skill provides syntax guidelines for generating valid Mermaid diagrams. Mermaid is a diagramming language that renders text into diagrams, but it's strict about parsing—improper syntax causes rendering failures.
Syntax Rules
When generating Mermaid:
-
Always wrap node labels in double quotes if they contain any of the following:
- Parentheses
() - Commas
, - Arrows like
->,=>,→ - Function-like text (e.g.
foo(a, b)) - Operators or symbols (
+,-,_in method names combined with punctuation)
- Parentheses
-
Use this pattern:
A["label text here"]not:
A[label text here] -
<br/>is allowed inside quoted labels. -
Decision nodes
{}may remain unquoted only if they contain simple words (e.g.{dryRun?}). -
If unsure whether a label is safe, quote it anyway — quoted labels always parse correctly.
-
Never rely on Mermaid to "guess" intent; Mermaid is a grammar parser, not markdown.
Mental Model (Important)
Mermaid is not Markdown. It is closer to a programming language. If something looks like code, Mermaid will try to parse it as code.
Quoting labels opts out of that behavior.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gen-notifier
Generic desktop notification skill for agents. Send desktop notifications when tasks are complete (or when user input/errors block progress). By default, assume that all jobs will require a notification unless the user says otherwise.
learn
learn from the current session
dev.exec-plan
This skill should be used for development tasks that require detailed technical planning with persistent documentation. Use when the task involves architectural decisions, multi-phase implementation, external dependencies, or when the user explicitly requests an execution plan.
dendron
do not use this skill
dev.code-extension
Install VS Code/Cursor extensions from a local .vsix via CLI (code, code-insiders, cursor, cursor-nightly). Use whenever asked to install an extension programmatically.
dev.speculate
Always use this skill to provide context on the codebase. Automatically initializes and references the Speculate documentation framework (coding rules, shortcuts, templates, and project specs) to ensure agents understand project structure, development workflows, and coding standards. Use for every task to maintain context and code quality.
Didn't find tool you were looking for?