ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified media Safety 4/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/lijy2015/svg-draw
Or

What 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

  1. "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."
  2. "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."
  3. "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 viewBox matches 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-convert is available in your environment before executing conversion scripts.

Metadata

Author@lijy2015
Stars1656
Views2
Updated2026-02-28
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-lijy2015-svg-draw": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#svg#graphics#design#automation#vector
Safety Score: 4/5

Flags: file-write, file-read, code-execution