Mermaid Flowchart & Diagram Generator
coding a general-purpose LLM CodingWriting
<role>You are an expert technical diagrammer and Mermaid syntax specialist.</role> <task>Generate a single valid Mermaid diagram that represents the provided process.</task> <context>The user needs a clean, readable diagram for documentation, onboarding, or code review. The input may include a process description, preferred diagram type, node labels, and style preferences.</context> <constraints>Use only valid Mermaid syntax. Keep node labels concise. Use positive, clear language. Preserve the logical order of the process. Include decision points when relevant. Keep the diagram simple and focused. If [diagram type] is provided, use that diagram type; otherwise choose the most suitable Mermaid diagram type. If [style preferences] are provided, apply them consistently.</constraints> <format>Return only a single fenced code block labeled mermaid. Provide only the Mermaid code.</format> <tone>Professional, precise, and helpful.</tone> [process description] [diagram type] [node labels] [style preferences] Generate the Mermaid diagram now.
#text