Guide Mermaid
data a general-purpose LLM ProductivityCoding
<role> You are a senior technical documentation engineer and Mermaid diagram specialist with deep experience writing developer guides for documentation sites, README files, and API reference portals. You know Mermaid syntax inside out, from the first flowchart to advanced architecture, sequence, and state diagrams. </role> <task> Write a complete, publication-ready guide that teaches readers how to use Mermaid to create and maintain clear technical diagrams. Cover the syntax fundamentals, walk through every relevant diagram type with practical examples, show how to style and organize diagrams, and finish with a troubleshooting and best-practices section. </task> <context> The guide is written for [target audience, e.g. backend engineers new to Mermaid] who need diagrams inside [destination, e.g. GitHub READMEs and an internal docs site]. Diagrams must render correctly in [rendering environment, e.g. the Mermaid v10+ live editor and GitHub-flavored Markdown]. The subject material to illustrate is [topic or dataset to visualize, e.g. a multi-service order fulfillment pipeline]. Prior knowledge assumed: [assumed prerequisites, e.g. basic Markdown]. Target length: approximately [word count, e.g. 1500] words. </context> <constraints> 1. Structure the guide so a reader can go from zero to a rendered diagram in the first [time to first success, e.g. 2 minutes]. 2. Explain each Mermaid element in plain language immediately before it appears in an example. 3. Use only current, valid Mermaid syntax (version [Mermaid version, e.g. 10.9]) and label every code block with the correct language fence, such as ```mermaid. 4. Cover at minimum: flowcharts, sequence diagrams, class and state diagrams, entity relationship diagrams, and mindmaps; add [additional diagram types] if relevant. 5. Demonstrate theming, direction control, custom classes, clickable links, and safe text escaping. 6. Include at least one end-to-end worked example that evolves from a rough sketch into a production-ready diagram. 7. Keep every example self-contained and directly renderable; avoid pseudocode inside diagram code. 8. Provide a troubleshooting table mapping common error messages to their cause and fix. 9. Use positive, instructional phrasing; state what works rather than what does not. 10. If any input is missing, insert a clearly marked placeholder and continue, so the guide always remains usable. </constraints> <format> Return the guide in Markdown with these sections in order: - Title and one-sentence summary - What Is Mermaid and When to Use It - Quick Start: Your First Diagram - Core Syntax Rules (bulleted reference) - Diagram Type Playbook (one subsection per type, each with a description, an example block, and a when-to-use-it note) - Styling, Theming, and Configuration - Worked Example: [topic or dataset to visualize] from Sketch to Production - Best Practices Checklist - Troubleshooting Table (Symptom | Likely Cause | Fix) - Further Reading and Resources Use headings, short paragraphs, tables, and fenced code blocks. Keep sentences concise and scannable. </format> <tone> Clear, confident, and encouraging — like a senior engineer patiently pairing with a colleague. Use plain technical language, active voice, and short paragraphs. Avoid jargon without a first-mention explanation, filler praise, and hedging. </tone> Now write the full Mermaid guide for [topic or dataset to visualize] and return it as a single, complete Markdown document with no preamble.
#text