svg-draw
Create SVG images and convert them to PNG without external graphics libraries. Use when you need to generate custom illustrations, avatars, or artwork (e.g., "draw a dragon", "create an avatar", "make a logo") or convert SVG files to PNG format. This skill works by writing SVG text directly (no PIL/ImageMagick required) and uses system rsvg-convert for PNG conversion.
Why use this skill?
Learn to use the svg-draw skill to create custom vector graphics and convert them to PNG files automatically. Perfect for logos, avatars, and illustrations.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lijy2015/svg-drawWhat This Skill Does
The svg-draw skill enables OpenClaw to act as a vector graphics generation engine. By leveraging pure SVG code generation, the agent can create custom illustrations, logos, avatars, and icons without needing heavy dependencies like PIL or ImageMagick. It utilizes a reliable system-level rsvg-convert script to transform these vector files into high-quality PNGs, making it an ideal tool for programmatic visual generation directly within the agent's workspace.
Installation
You can install this skill by running the following command in your terminal:
clawhub install openclaw/skills/skills/lijy2015/svg-draw
Once installed, the skill files, including templates and the conversion script, will be located in /root/.openclaw/workspace/skills/svg-draw/.
Use Cases
This skill is perfect for scenarios requiring dynamic or on-the-fly image generation:
- Custom Branding: Generate consistent, branded avatars or logos using defined templates.
- Data Visualizations: Create custom charts or diagrams by programmatically updating SVG paths.
- Asset Generation: Rapidly create simple icons, character sprites, or illustrations for creative projects.
- Automated Reporting: Add visual headers or labels to generated documents by outputting SVG assets and converting them to image files for inclusion in final reports.
Example Prompts
- "Create a professional logo for a tech startup that features a blue circle with a silver gear in the center, and save it as logo.png."
- "I need a customized avatar; please use the dragon template but change the body color to emerald green and save it as green_dragon.png."
- "Generate a custom illustration of a lobster using the available template and ensure it is exported as a 512x512 PNG file."
Tips & Limitations
- Precision Matters: When editing templates, ensure your coordinate system in the
viewBoxmatches your intended design scale. - Backgrounds: Always include a background
<rect>element if you want to avoid transparent backgrounds in your exported PNG files. - Template Re-use: Start by inspecting
assets/files to understand the layering structure (Background -> Body -> Features). This helps in making surgical modifications without breaking the SVG syntax. - Limitations: This tool is best for flat vector art. It does not support complex raster-to-vector conversion or high-end bitmap manipulation. Always ensure
rsvg-convertis available in your environment before executing conversion scripts.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lijy2015-svg-draw": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution