Add Svg logo

Add Svg

Community
QIANJINYDX
add-svg

Add, collect, design, audit, and integrate SVG elements into editable diagrams.net/draw.io scientific figures. Use when the user asks to supplement a draw.io diagram with SVG icons, mechanisms, biological objects, model components, pathway symbols, instruments, graphical abstract elements, or publication-style vector assets. Every execution must first ask the user to choose the SVG source mode: network search or self-designed SVG. For network mode, search for multiple relevant SVG candidates for later user selection, record sources and license notes, and fall back to self-designed SVG for concepts with no suitable result. For self-design mode, create restrained, editable, Nature-style SVGs from simple vector primitives. Use with .drawio, SVG, diagrams.net, 科研流程图, 论文示意图, SVG补图, 图标补充, and draw.io配图.

Overview

PublisherQIANJINYDX
Repositoryresearch-drawio-skill
Skill nameadd-svg
Stars
45
Forks
2
Bundled files
10
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.

  • 10 bundled files

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

  • Open source

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

Installation

Install the Add Svg 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/QIANJINYDX/research-drawio-skill/tree/main/skills/add-svg
  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.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/QIANJINYDX/research-drawio-skill.git /tmp/research-drawio-skill
mkdir -p .claude/skills
cp -r /tmp/research-drawio-skill/skills/add-svg .claude/skills/add-svg
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Add Svg 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 Add Svg 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 Add Svg 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.

Add SVG Skill

Add SVG assets to draw.io research figures as evidence-aware visual elements, not decorative stickers. This skill follows the nature-figure and draw-science philosophy: establish the scientific message and visual role first, decide the SVG source explicitly, then integrate only assets that serve the diagram's logic and pass layout/export QA.

Mandatory Source Gate

Before doing any SVG search, drawing, download, file edit, or draw.io insertion, ask exactly one blocking question and stop:

text
SVG 来源选择:网络搜索,还是自行绘制?

Do this on every invocation. Continue only after the user answers. The answer sets source_mode:

  • network / 网络搜索: search the web for multiple SVG candidates.
  • self_design / 自行绘制: design new SVGs from vector primitives.

If the user already describes a preference in the same message, still confirm briefly before execution unless the conversation already contains an explicit answer to this exact source gate for the current invocation.

Routing Protocol

  1. Read manifest.yaml.
  2. Read every file listed under always_load:
    • static/core/contract.md
    • static/core/stance.md
  3. Ask the mandatory source gate and wait for the user's answer.
  4. Load the reference file for the chosen mode:
    • network search: references/network-svg-search.md
    • self design: references/self-design-svg.md
  5. Load references/drawio-svg-integration.md before editing .drawio.
  6. Load references/svg-qa-contract.md before final delivery.

Core Workflow

After the source gate is answered, create a compact SVG contract:

text
Scientific message:
Target draw.io file:
SVG role:
Source mode:
Needed concepts:
Candidate plan:
Integration targets:
Style constraints:
License/provenance notes:
Fallback plan:
QA checks:

Network Mode

Search for multiple SVG candidates for each requested concept. Keep candidates for later user selection rather than silently choosing one. For each candidate, record:

  • concept
  • preview/name
  • source URL
  • direct SVG URL if available
  • license or usage note
  • style fit for Nature-style draw.io figures
  • any required attribution

If no suitable SVG is found for a concept, mark it as self-designed fallback and create a simple original SVG following references/self-design-svg.md.

Self-Design Mode

Create original SVGs from simple vector primitives. Keep them restrained, editable, and compatible with draw.io. Use one neutral family, one signal family, and one accent family. Avoid complex illustration, gradients, shadows, bitmap effects, and decorative detail.

Draw.io Integration Rules

  • Preserve the user's existing .drawio content and layout.
  • Insert SVGs as editable/vector-friendly draw.io image cells when possible.
  • Encode SVG image values as draw.io-safe URL-encoded data:image/svg+xml, URIs. Do not use raw data:image/svg+xml;base64,... inside style=, because the semicolon in svg+xml;base64 breaks mxGraph style parsing.
  • Treat an inserted SVG as the visual glyph for that concept. Do not also draw duplicate draw.io primitive glyphs for the same object unless the user asks for a hybrid editable reconstruction.
  • After SVG insertion, re-balance the layout and remove empty placeholder zones so the figure remains compact rather than leaving the old self-drawn glyph space unused.
  • Keep SVG labels separate from the icon body unless text is a scientific mark.
  • Match the diagram's grid, spacing, color semantics, and connector rules.
  • Run available QA checks and export a draw.io PNG/SVG preview when draw-science/scripts/export_drawio_preview.py is available. Do not treat XML validity as sufficient for SVG insertion; the exported preview must show the SVG assets rendered, nonblank, unclipped, and not overlapping labels.

Related Files

FileOpen when
references/network-svg-search.mdUser chooses network search
references/self-design-svg.mdUser chooses self-designed SVGs or network search fails
references/drawio-svg-integration.mdNeed to insert, encode, or edit SVGs in .drawio
references/svg-qa-contract.mdBefore final delivery or candidate handoff
scripts/svg_data_uri.pyNeed to convert a local SVG into a draw.io data URI

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 Add Svg AI skill do?

Add, collect, design, audit, and integrate SVG elements into editable diagrams.net/draw.io scientific figures. Use when the user asks to supplement a draw.io diagram with SVG icons, mechanisms, biological objects, model components, pathway symbols, instruments, graphical abstract elements, or publication-style vector assets. Every execution must first ask the user to choose the SVG source mode: network search or self-designed SVG. For network mode, search for multiple relevant SVG candidates for later user selection, record sources and license notes, and fall back to self-designed SVG for c...

Why use Add Svg on TypingMind?

Because you install it once and use it with any model. Add Svg 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 Add Svg in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/QIANJINYDX/research-drawio-skill/tree/main/skills/add-svg. 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 Add Svg?

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 Add Svg?

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

Is the Add Svg AI skill free?

It is published on GitHub by QIANJINYDX. Check the repository for licensing terms. 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 👇