zeroxzhang/flowchart-generator-skill/diagram-svg-generator
Claude Code and agent skill by zeroxzhang/flowchart-generator-skill
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install zeroxzhang/flowchart-generator-skill/diagram-svg-generatorSKILL.md
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
Auto-recommendation logic:
- ≤5 nodes → Small
- 6–15 nodes → Medium
- 16–30 nodes → Large
- 31+ nodes → Extra Large
2b. Color Scheme
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
See assets/density-presets.md for parameter values.
2d. Layout Direction
2e. Connector Style
Step 3: Confirm Configuration
Summarize all choices in a table and ask the user to confirm:
Step 4: Generate SVG
Generate the SVG following these mandatory rules:
- Valid SVG: Well-formed XML with
xmlns="http://www.w3.org/2000/svg" - Accessible: Include
<title>,<desc>, androle="img"witharia-labelledby - Responsive: Always use
viewBoxattribute - CSS classes: Use
<style>inside<defs>, not inline styles - Grouped: Use
<g>elements with meaningfulidandclass - Arrow markers: Define in
<defs>with proper<marker>elements - Font fallbacks: Always include fallback fonts (e.g.
Arial, sans-serif) - 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:
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.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingHere's a Stinger/diagram-svg-generator/SKILL.md
Popularity
- Repository stars
- 35
- Repository forks
- 1
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zeroxzhang/flowchart-generator-skill/diagram-svg-generator)