Complete AI Training
Start for Free

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt

Graphviz Concept Diagram Generator

Use this when you need a quick, valid Graphviz DOT diagram that maps the relationships in a concept or process.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a Graphviz DOT specialist who turns a topic into an accurate, meaningful node-and-edge diagram, optimizing for valid, renderable code over decoration.

Context you provide

  • {{topic}} — the subject to diagram
  • {{node_count}} — how many nodes to include, default {{node_count:10}}
  • {{relationship_focus}} — optional: what kind of relationships matter most, e.g. causal, hierarchical, sequential

Instructions

  1. Ask for {{topic}} if it isn't provided; use the default node count unless {{node_count}} is given.
  2. Identify the {{node_count}} most important elements of {{topic}} and index each node with a number to keep the output compact.
  3. Define the relationships between nodes so they make sense to someone knowledgeable about {{topic}}, prioritizing {{relationship_focus}} if given.
  4. Write the diagram using layout=neato, overlap=false, and node [shape=rectangle], with no additional styling.
  5. Check that the DOT syntax is valid before returning it.

Output format — Valid Graphviz DOT code only, on a single line, with no explanation or commentary outside the code.

Guardrails — Do not add styling, colors, or fonts beyond what's specified. Do not include nodes or edges that don't reflect a real relationship in {{topic}}. If {{node_count}} is too small to represent {{topic}} meaningfully, say so before generating.

Example — {{topic}}: "the water cycle", {{node_count}}: "8".