skills/create-mermaid-diagrams/SKILL.md
Create, validate, and repair Mermaid diagrams for technical documentation with a deterministic CLI feedback loop. Use when an AI needs to create Mermaid diagrams, improve Mermaid diagram quality, validate Mermaid fences in markdown, diagnose Mermaid rendering failures, or fix Mermaid syntax and formatting issues.
npx skillsauth add liatrio-labs/ai-prompts create-mermaid-diagramsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create clear Mermaid diagrams and always validate output through a repeatable loop that catches syntax and rendering errors before final delivery.
Always begin your response with all active emoji markers, in the order they were introduced.
Format: "<marker1><marker2><marker3>\n<response>"
The marker for this skill is: 🎨
When manual invocation is needed, trigger this skill using whatever mechanism your assistant/tool provides for manual skill selection or activation.
Define communication intent and choose the smallest diagram type that fits:
flowchart for process and architecture flow.sequenceDiagram for interaction timelines.stateDiagram-v2 for state transitions.Generate markdown with exactly one Mermaid fence per requested diagram:
Validate the full markdown file with mmdc:
mmdc -i <input.md> -o /tmp/<name>-rendered.md -a /tmp/<name>-mermaid-artifacts
If validation fails:
mmdc.Repeat failure analysis and correction up to 3 attempts.
If still failing after 3 attempts, return:
mmdc must be available in PATH.mmdc explicitly.mmdc stdout/stderr as the source of truth for pass/fail and diagnosis.When validating an existing markdown file that includes multiple Mermaid blocks:
mmdc.Treat any non-zero mmdc exit as a failure and use Mermaid CLI output as the source of truth for diagnosis and repair.
For dependency, access, or input failures (for example mmdc not executable in sandbox), stop immediately and do not continue retries.
When validation cannot run, the response must clearly state that validation did not occur and include:
mmdc command that failedmmdc execution access or fix file/path permissionsreferences/mermaid-best-practices.mdreferences/advanced-patterns.mdreferences/error-patterns.mdreferences/multi-diagram-validation.mdtesting
Interactive GitHub Epic planner. Plans one milestone at a time. The first epic is always Shell (scaffold + CI with a fixed set of stories). Each subsequent epic is defined through operator dialogue. Use /plan-issue to create the individual stories once an epic is defined.
development
Use when you need lightweight browser QA for a web page, local HTML file, or app: inspect console errors, broken assets, keyboard/focus behavior, viewport readability, and publish evidence-backed findings JSON through a local HTML report viewer.
data-ai
Provision DNS records for liatr.io subdomains in the liatrio/liatrio-external-dns repository. Use when adding, modifying, or removing DNS CNAME records, A records, or other Route53 records for liatr.io or k8s-ignite.com domains. Triggers on requests like 'add a domain', 'create a subdomain', 'point X.liatr.io to Y', or 'set up DNS for a new site'.
development
Provides concise guidance for using uv (Python package manager), including project workflows, pip-compatible commands, Python version management, and PEP 723 inline script dependencies. Use when users mention uv, uv run, inline dependencies, PEP 723, or Python dependency/project management.