svg-diagram

Generate custom SVG diagrams from natural language prompts via OpenRouter.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/haboshi/claude-code-skills --skill svg-diagram-haboshi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: svg-diagram
Source: https://github.com/haboshi/claude-code-skills/tree/main/svg-diagram
Command: npx skills add https://github.com/haboshi/claude-code-skills --skill svg-diagram-haboshi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dotenv, openai, @xmldom/xmldom, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to generate custom-designed SVG diagrams using LLMs, overcoming the limitations of tools like Mermaid for free-form layouts and complex infographics.

Core Features & Use Cases

  • LLM-Powered SVG Generation: Create unique SVG diagrams based on natural language prompts.
  • Customizable Layouts: Design diagrams with free-form placement, ideal for infographics and non-standard charts.
  • Theme and Style Control: Supports dark and light themes, custom dimensions, and model selection.
  • Use Case: Generate a visually appealing infographic explaining a complex business process with custom branding colors and specific element placements.

Quick Start

Use the svg-diagram skill to generate a 3-tier architecture diagram with the prompt '3層アーキテクチャ図:フロントエンド、API、DB' and save it to 'diagram.svg'.

Frequently Asked Questions about svg-diagram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate custom SVG diagrams using LLMs?

To generate custom SVG diagrams using LLMs, you provide a natural language prompt describing your desired layout. The Skill leverages OpenRouter models to produce free-form infographics and architecture charts, allowing specific dimension and theme customization.

What's the best way to create infographics that go beyond Mermaid's layout capabilities?

Creating infographics beyond Mermaid's capabilities requires an LLM-powered approach for free-form element placement. This Skill uses natural language prompts to generate custom SVG designs, supporting complex visual layouts that standard charting tools cannot render.

Do I need an OpenRouter API key to generate SVG diagrams?

Yes, you need an OpenRouter API key to generate SVG diagrams. You must configure the OPENROUTER_API_KEY environment variable to authenticate requests, select your preferred LLM model, and successfully execute the natural language to SVG generation process.

Can I customize the theme and dimensions of generated SVG diagrams?

Yes, you can customize the theme and dimensions of generated SVG diagrams. The Skill supports dark and light themes, custom image sizes, and specific LLM model selection, enabling tailored infographic outputs that match your project's branding and layout requirements.

How does LLM-powered SVG generation handle complex business process visualizations?

LLM-powered SVG generation handles complex business process visualizations by interpreting natural language prompts to place elements freely. Unlike rigid charting syntax, it produces custom infographics with specific branding colors and non-standard architectural layouts directly as SVG files.