mermaid diagram

Other Community

Skill notes

Constants

OUTPUT_DIR = figures/ — Output directory for generated files MAX_ITERATIONS = 3 — Maximum refinement rounds for syntax or layout issues

Step 0: Pre-flight Check

Create output directory

Step 1: Understand Requirements & Select Diagram Type

Parse the input: $ARGUMENTS Analyze the request and choose the most suitable diagram type Read the corresponding Mermaid syntax reference below If the diagram involves mathematical notation, apply the math syntax rules from the Math Formulas in Diagrams section Identify all components, connections, and data flow

Step 2: Read Documentation

Select the appropriate diagram type. Use built-in Mermaid knowledge first; if external documentation is needed and your environment provides it, fetch the up-to-date syntax reference.

Configuration & Themes

Choose theme, colors, and layout before writing code. For academic diagrams, prefer clean white backgrounds, restrained colors, and readable labels over decorative styling. Type · Use Cases Flowchart · Processes, decisions, steps Sequence Diagram · Interactions, messaging, API calls Class Diagram · Class structure, inheritance, associations

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Other
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
88 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@wanshuiyin · no license declared
Token usage
Moderate
Setup complexity
Guided setup
External API key
Not required
Operating systems
macOS · Linux · Windows
Runtime requirements
Node.js
Detected file/system behavior
  • Read-only
  • Write / modify
  • Shell exec
Network behavior
External requests
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

Output preview mermaid-diagram.preview
# Step 6: Final Output Summary

Mermaid diagram generated successfully.

Files:
  figures/<diagram-name>.mmd
  figures/<diagram-name>.md
  figures/<diagram-name>.png

To re-render manually:
  mmdc -i figures/<diagram-name>.mmd -o figures/<diagram-name>.png

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.