Install
$ agentstack add skill-baizeagent-baize-svg-draw ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
SVG Draw
Generate vector graphics and raster images using pure SVG code and system conversion tools.
Quick Start
For new drawings:
- Write SVG code directly to a file (use templates in
assets/as starting points) - Convert to PNG using the conversion script
- Send via the appropriate channel (DingTalk, Telegram, etc.)
For existing SVG files:
- Use the conversion script to convert SVG → PNG
- Share the resulting image
Creating SVG Images
Basic Workflow
- Choose or create a template
- Check
assets/for existing templates (dragon, lobster, etc.) - Or write SVG from scratch
- Write the SVG file
``bash # Example: Write SVG to file write('/path/to/output.svg', svg_content) ``
- Convert to PNG
``bash /root/.openclaw/workspace/skills/svg-draw/scripts/svg_to_png.sh input.svg output.png 400 400 ``
SVG Structure Tips
Always include:
- `
tag withxmlns="http://www.w3.org/2000/svg"andviewBox` - Background `` (prevents transparent backgrounds)
- Appropriate
widthandheightattributes
Common SVG elements:
- Shapes: `
,,,,` - Text: `
withtext-anchor="middle"` for centering - Colors: Use hex codes or named colors
- Opacity: Add
opacityattribute for transparency effects
Example character structure:
Background → Body → Head → Face features → Limbs → Accessories → Name
Converting SVG to PNG
Use the bundled conversion script:
/root/.openclaw/workspace/skills/svg-draw/scripts/svg_to_png.sh [width] [height]
Parameters:
input.svg: Source SVG file pathoutput.png: Destination PNG file pathwidth: Output width in pixels (default: 400)height: Output height in pixels (default: 400)
Example:
/root/.openclaw/workspace/skills/svg-draw/scripts/svg_to_png.sh dragon.svg dragon.png 512 512
Available Templates
Dragon Template (assets/dragon_template.svg)
Blue dragon with:
- Serpentine body with wings
- Golden eyes with highlights
- Horns and pointed ears
- Curved tail
- Magical sparkles
- Name label: "大龙 🐉"
Customization ideas:
- Change
fill="#4a90d9"for different body colors - Adjust eye color by modifying
fill="#ffcc00" - Add/remove features (scales, fire, etc.)
- Change background color
Lobster Template (assets/lobster_template.svg)
Red lobster with:
- Orange-red shell with segments
- Large claws (left and right)
- Eight walking legs
- Eyes on stalks
- Long antennae
- Tail fan
- Ocean bubbles background
- Name label: "大龙虾 🦞"
Customization ideas:
- Adjust shell color:
fill="#e85d04"(darker red) orfill="#f48c06"(orange) - Change claw size or position
- Add more bubbles
- Modify background
Design Guidelines
Color Palettes
Friendly/Cute:
- Body:
#4a90d9(blue),#f48c06(orange) - Accents:
#ffcc00(yellow),#ff6b6b(coral) - Background:
#1a1a2e(dark blue)
Professional:
- Use muted tones
- Stick to 2-3 main colors
- Add subtle gradients if needed
Character Design Principles
- Keep it simple — Too many details look messy at small sizes
- Use contrast — Light features on dark backgrounds
- Add personality — Eyes, expressions, small details
- Include a label — Add name/title at the bottom for context
- Test at target size — View at 400x400 to check readability
Common Tasks
Creating an Avatar
- Start with a template that matches the vibe (dragon, lobster, etc.)
- Modify colors and features
- Add personal touches (accessories, expressions)
- Add name label at bottom
- Convert and send
Making a Logo
- Use simple geometric shapes
- Limit to 2-3 colors
- Consider scalable design
- Test at multiple sizes
- Export at higher resolution (800x800 or 1024x1024)
Customizing Templates
Change colors: Find fill="#" or stroke="#" attributes and replace the hex codes
Resize elements: Adjust rx, ry (ellipses) or width, height (rectangles)
Reposition: Modify cx, cy (circles/ellipses) or x, y (rectangles)
Add text:
Your Text
Resources
scripts/
svg_to_png.sh- Convert SVG to PNG using rsvg-convert
assets/
dragon_template.svg- Friendly blue dragonlobster_template.svg- Cute red lobster
Troubleshooting
SVG not rendering:
- Check for proper `
tag withxmlns` attribute - Ensure
viewBoxis set correctly - Verify all tags are closed
Conversion fails:
- Confirm
rsvg-convertis installed:which rsvg-convert - Check file paths are correct
- Verify SVG syntax is valid
Image looks wrong:
- Test SVG in browser first
- Check coordinate system (viewBox vs width/height)
- Verify element stacking order (later elements draw on top)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: BaiZeAgent
- Source: BaiZeAgent/Baize
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.