add-svg
Skill by QIANJINYDX
Adds SVG icons and symbols to editable draw.io and diagrams.net scientific figures. It asks whether to search the web or design SVGs before starting, then inserts the assets into the diagram. Built for researchers preparing publication-style figures.
Install add-svg
Built from the published package, never by AI.
git clone --depth 1 https://github.com/QIANJINYDX/research-drawio-skill /tmp/research-drawio-skill && mkdir -p ~/.claude/skills && cp -r /tmp/research-drawio-skill/skills/add-svg ~/.claude/skills/add-svgRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/QIANJINYDX/research-drawio-skill /tmp/research-drawio-skill && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/research-drawio-skill/skills/add-svg ~/.gemini/antigravity-cli/skills/add-svgAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Add SVG is an agent skill that adds vector elements such as icons, mechanisms, biological objects, model components, pathway symbols and instruments to editable draw.io or diagrams.net scientific figures. Every run starts with a required question asking the user to choose between network search and self-designed SVGs.
In network mode, the skill collects several SVG candidates per concept and records the source URL, license note and any attribution, leaving the final choice to the user. If nothing suitable is found, it falls back to a simple original SVG. In self-design mode, it builds restrained SVGs from basic vector primitives. It inserts the assets as draw.io image cells using URL-encoded data URIs, rebalances the layout, and checks an exported preview. It is aimed at researchers making publication-style figures.
Written from the project's SKILL.md and checked against it.
What it can do
- Source mode gateAsks the user to choose network search or self-designed SVG before any work starts.
- Network SVG searchFinds multiple SVG candidates per concept, with source URLs and license notes, for user selection.
- Self-designed SVGsCreates restrained, editable SVG assets from simple vector primitives for Nature-style figures.
- Draw.io SVG insertionInserts SVGs as draw.io image cells and keeps the existing diagram content and layout.
- Data URI conversionConverts a local SVG into a URL-encoded data URI through the svg_data_uri.py script.
- Layout rebalancingRe-balances the figure and removes empty placeholder zones after SVG insertion.
- Preview QAChecks that the exported preview shows the SVGs rendered, unclipped and not overlapping labels.
What you need
- A draw.io or diagrams.net .drawio file to edit
- Web access for network search mode
- draw-science export_drawio_preview.py script for preview export, when available
Try asking
- Add SVG icons for the pathway symbols in my draw.io figure
- Search for SVG instrument icons for my draw.io research figure
- Design simple original SVG glyphs for the model components in my diagram
Good to know
- Asks the source question on every invocation before any work.
- Network mode keeps candidates for user selection rather than choosing one.
- Preview export depends on the draw-science scripts being available.
- Does not add duplicate primitive glyphs unless the user asks for a hybrid.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/add-svg/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to add-svg
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
add-svg: common questions
Does Add SVG pick the SVG source automatically?
No. It asks the user to choose network search or self-designed SVG on every run. In network mode it keeps several candidates for the user to pick from.
How are SVGs stored in draw.io files?
As URL-encoded data:image/svg+xml URIs. The skill says raw base64 URIs with semicolons break draw.io style parsing.
What license information does it record?
In network mode it records the source URL, the license or usage note, and any required attribution for each candidate.
How do I install add-svg?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is add-svg free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is add-svg safe to use?
It scores 53 of 100. Grades: maintenance C, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to add-svg?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
