Diagram Svg Generator logo

Diagram Svg Generator

Community
ZeroxZhang
diagram-svg-generator

Interactively generates production-ready SVG diagrams including flowcharts, sequence diagrams, mind maps, org charts, timelines, ER diagrams, and state diagrams. Use when the user wants to create, visualize, or export any kind of diagram, flowchart, process map, or visual representation of relationships and workflows. Guides users through selecting diagram size, color scheme, information density, layout direction, and connector style before generating clean, accessible SVG code.

Overview

PublisherZeroxZhang
Repositoryflowchart-generator-skill
Skill namediagram-svg-generator
Stars
38
Forks
2
Bundled files
7
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ZeroxZhang on GitHub. Read the source before you install it.

Installation

Install the Diagram Svg Generator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ZeroxZhang/flowchart-generator-skill/tree/main/Here's%20a%20Stinger/diagram-svg-generator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.

Use it in TypingMind

Enable Diagram Svg Generator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Diagram Svg Generator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Diagram Svg Generator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Diagram SVG Generator

An interactive skill that generates professional SVG diagrams through a guided conversational workflow.

When to Use This Skill

Activate this skill when the user:

  • Wants to create a flowchart, process diagram, or workflow visualization
  • Asks for a mind map, org chart, timeline, ER diagram, or state diagram
  • Mentions generating, drawing, or exporting SVG diagrams
  • Needs to visualize relationships, hierarchies, or sequential processes

Interaction Protocol

This is an interactive skill. Do NOT generate a diagram immediately. Follow these steps:

Step 1: Parse User Intent

From the user's description, identify:

  • Diagram type: flowchart / sequence / mindmap / org-chart / timeline / er-diagram / state-diagram
  • Content elements: nodes, relationships, labels
  • Complexity: count of nodes/edges to inform recommendations

If ambiguous, ask the user to clarify the diagram type.

Step 2: Ask Configuration Preferences (REQUIRED)

Present all 5 options as a numbered menu. Mark recommended defaults with ⭐.

Quick mode: If the user says "use defaults", "快速生成", or "just make it", skip to Step 4 using all ⭐ defaults.

2a. Diagram Size
📏 Step 1/5: Diagram Size / 图表规格
1. 📱 Small (600×400) — inline/embedded use
2. ⭐ 📊 Medium (1000×700) — standard presentations [RECOMMENDED]
3. 🖥️ Large (1400×1000) — complex diagrams
4. 📺 Extra Large (1920×1080) — full HD display
5. 🔧 Custom — specify your own dimensions

Auto-recommendation logic:

  • ≤5 nodes → Small
  • 6–15 nodes → Medium
  • 16–30 nodes → Large
  • 31+ nodes → Extra Large
2b. Color Scheme
🎨 Step 2/5: Color Scheme / 配色方案
1. ⭐ 💼 Corporate Blue — professional, trustworthy [RECOMMENDED]
2. 🌿 Nature Green — fresh, ecological
3. 🌅 Sunset Warm — energetic, creative
4. 🌙 Dark Mode — modern, eye-friendly
5. ⚫ Monochrome — minimalist, print-friendly
6. 🌊 Ocean Breeze — calm, refreshing
7. 🎨 Custom — define your own palette

See assets/color-schemes.md for full color values.

Auto-recommendation logic:

  • Business/process → Corporate Blue
  • Environmental/health → Nature Green
  • Creative/marketing → Sunset Warm
  • Technical/dev → Dark Mode
  • Print/academic → Monochrome
2c. Information Density
📝 Step 3/5: Information Density / 信息密度
1. 🔹 Minimal — key info only, maximum whitespace
2. ⭐ 🔸 Standard — balanced layout, moderate detail [RECOMMENDED]
3. 🔶 Detailed — full descriptions and annotations
4. 🔷 Compact — maximum info in minimum space

See assets/density-presets.md for parameter values.

2d. Layout Direction
🧭 Step 4/5: Layout Direction / 布局方向
1. ⭐ ⬇️ Top to Bottom [RECOMMENDED for flowcharts/hierarchies]
2. ➡️ Left to Right [RECOMMENDED for timelines/processes]
3. ⬆️ Bottom to Top
4. ⬅️ Right to Left
2e. Connector Style
🔗 Step 5/5: Connector Style / 连接线样式
1. ➖ Straight lines
2. 〰️ Curved lines
3. ⭐ 📐 Orthogonal / right-angle lines [RECOMMENDED]
4. ➗ Dashed lines

Step 3: Confirm Configuration

Summarize all choices in a table and ask the user to confirm:

✅ Configuration Summary / 配置摘要

| Setting        | Value                |
|---------------|----------------------|
| 📏 Size        | {selection}          |
| 🎨 Colors      | {selection}          |
| 📝 Density     | {selection}          |
| 🧭 Direction   | {selection}          |
| 🔗 Connectors  | {selection}          |
| 📊 Type        | {diagram_type}       |
| 🔢 Elements    | {n} nodes, {m} edges |

Proceed? (yes / no / modify)

Step 4: Generate SVG

Generate the SVG following these mandatory rules:

  1. Valid SVG: Well-formed XML with xmlns="http://www.w3.org/2000/svg"
  2. Accessible: Include <title>, <desc>, and role="img" with aria-labelledby
  3. Responsive: Always use viewBox attribute
  4. CSS classes: Use <style> inside <defs>, not inline styles
  5. Grouped: Use <g> elements with meaningful id and class
  6. Arrow markers: Define in <defs> with proper <marker> elements
  7. Font fallbacks: Always include fallback fonts (e.g. Arial, sans-serif)
  8. Comments: Add brief XML comments for major sections

Use the SVG structure template from assets/svg-base-template.md. Use diagram-specific templates from references/svg-templates.md.

Step 5: Offer Refinement

After delivering the SVG, present:

🔄 What next? / 接下来?
1. ✅ Done — satisfied
2. ✏️ Edit content — modify nodes/connections
3. 🎨 Change style — adjust colors/fonts
4. 📏 Resize — change dimensions
5. 🔄 Regenerate — start fresh

Loop back to the relevant step based on the user's choice.

Error Handling

  • Ambiguous input: Ask for process steps, elements, and connections
  • Too many elements: Warn and recommend larger size, compact density, or splitting into multiple diagrams
  • Invalid custom colors: Validate hex format, suggest closest preset

Language Support

All prompts support English and Chinese. Detect the user's language from their input and respond accordingly. Bilingual labels are used in the menu options above.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Diagram Svg Generator AI skill do?

Interactively generates production-ready SVG diagrams including flowcharts, sequence diagrams, mind maps, org charts, timelines, ER diagrams, and state diagrams. Use when the user wants to create, visualize, or export any kind of diagram, flowchart, process map, or visual representation of relationships and workflows. Guides users through selecting diagram size, color scheme, information density, layout direction, and connector style before generating clean, accessible SVG code.

Why use Diagram Svg Generator on TypingMind?

Because you install it once and use it with any model. Diagram Svg Generator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Diagram Svg Generator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ZeroxZhang/flowchart-generator-skill/tree/main/Here's%20a%20Stinger/diagram-svg-generator. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Diagram Svg Generator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Diagram Svg Generator?

As many as you like. As long as a model supports skills, you can use Diagram Svg Generator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Diagram Svg Generator AI skill free?

Yes. It is published on GitHub by ZeroxZhang under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇