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
- 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.
- If the description leaves out something the diagram cannot be drawn without (the actors, the order, the direction), ask one short question. Otherwise proceed.
- 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.
- Call
morigraph:diagramwithsource(the Mermaid text) and a shorttitle. - Show the returned image to the user. If it was saved, give the edit link too.
- Offer one round of changes ("rename, reorder, add a step?") and call
morigraph:diagramagain 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:diagramreturns 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:diagramdraws structured diagrams only.