CommunityImagegithub.com

diagram-from-description

Draws a clean diagram (flowchart, sequence, architecture, mind map, timeline or org chart) as a PNG from a plain-language description, meeting notes or a whiteboard photo. Use when the user asks to draw, diagram, chart, map or visualise a process, system, flow or structure.

What is diagram-from-description?

diagram-from-description is a Claude Code agent skill that draws a clean diagram (flowchart, sequence, architecture, mind map, timeline or org chart) as a PNG from a plain-language description, meeting notes or a whiteboard photo. Use when the user asks to draw, diagram, chart, map or visualise a process, system, flow or structure.

Works with✓Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/JovenSoh/morigraph-skills/tree/HEAD/skills/diagram-from-description

Installed? Explore more Image skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Diagram from a description

Connect morigraph first

This skill runs on the morigraph MCP server at https://morigraph.com/mcp. If its tools (for example morigraph:diagram) are not available, connect it, then continue. Tools are written here as morigraph:<tool>; your host may show them under a slightly different prefix.

  • Claude Code: claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp
  • Codex: codex mcp add morigraph --url https://morigraph.com/mcp
  • Cursor: add {"mcpServers":{"morigraph":{"url":"https://morigraph.com/mcp"}}} to ~/.cursor/mcp.json
  • Any other host: add a remote (streamable HTTP) MCP server with that URL. Steps per app: https://morigraph.com/connect/?ref=skills

Only connect it when the user asks for this task or agrees. Never ask the user for a password or token: sign-in happens in their browser.

No account is needed for this skill. Without sign-in morigraph runs in guest mode (10 calls a day): the diagram is drawn and returned but not saved. Signed in, it is also saved to the user's Files with an edit link.

Steps

  1. Work out what kind of diagram fits: flowchart for a process, sequence for who-calls-whom over time, architecture for systems, mind map for ideas, timeline for dates, org chart for people.
  2. If the description leaves out something the diagram cannot be drawn without (the actors, the order, the direction), ask one short question. Otherwise proceed.
  3. Write Mermaid source for it. Keep labels short (a few words), one idea per node, and at most about 25 nodes; split bigger subjects into two diagrams.
  4. Call morigraph:diagram with source (the Mermaid text) and a short title.
  5. Show the returned image to the user. If it was saved, give the edit link too.
  6. Offer one round of changes ("rename, reorder, add a step?") and call morigraph:diagram again with the revised source.

Rules

  • Draw only what the user described. Do not invent steps, systems or people to fill gaps; ask or leave them out.
  • If morigraph:diagram returns an error, show the error and fix the Mermaid source; do not describe a diagram that was not drawn.
  • For photos or illustrations, this is the wrong skill: morigraph:diagram draws structured diagrams only.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

Related Skills