svg-icon-maker

Generate production-quality SVG icons with COLOR support using VTracer vectorization. Converts raster images to clean, colorful SVG paths.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "svg-icon-maker" with this command: npx skills add heroygt/skills/heroygt-skills-svg-icon-maker

SVG Icon Maker

Convert raster images to colorful SVG using @neplex/vectorizer.

Output Directory

All files saved to workspace with timestamped folders (format: YYYY-MM-DDTHH-mm-ss-SSSZ):

<workspace>/svg-output/
└── <timestamp>/              # e.g., 2026-01-27T02-13-38-811Z
    ├── reference.png         # Generated reference image
    ├── icon.svg              # Color SVG output
    └── icon_preview.png      # Preview for comparison

Prerequisites

cd <workspace>
npm init -y
npm install @neplex/vectorizer sharp

Workflow

Step 1: Generate Reference Image

Use generate_image tool, save to svg-output root first (or directly to output folder if managed manually):

# Generate image, then move to proper folder later or keep in root for processing

Prompt template:

"[subject] avatar, high fidelity vector illustration, clear line style, 
black closed outlines, flat uniform colors, no gradients, 
white background, distinct separation between colors"

Step 2: Convert to Color SVG

Run the conversion script directly from skill resources (no copying needed):

node .agent/skills/svg-icon-maker/script/convert-template.js <input-file> [output-dir]

Example:

# Using default output directory (./svg-output)
node .agent/skills/svg-icon-maker/script/convert-template.js ./my-image.png

# Specifying custom output directory
node .agent/skills/svg-icon-maker/script/convert-template.js ./my-image.png ./custom-output

Key Features:

  • 4-Corner Flood Fill: Removes background starting from all corners to handle split backgrounds.
  • Inner Detail Protection: Preserves white/light details inside the subject (e.g., eyes).
  • Auto-Threshold: Adapts to the specific background color found at the corners.
  • Timestamped Output: Automatically creates folders with format YYYY-MM-DDTHH-mm-ss-SSSZ.

Step 3: Verify & Compare

ls -la <workspace>/svg-output/

Use view_file to compare reference.png with icon_preview.png.

Parameters

Default settings optimized for HIGH color fidelity - preserves original colors, only removes background.

ParameterDefaultDescription
colorModeColorColorMode.Color or Binary
colorPrecision81-8, higher = more colors (8 = max fidelity)
layerDifference8Color layer threshold (lower = less merging)
filterSpeckle4Remove noise pixels (lower = more detail)
modeSplinePathSimplifyMode.Spline or Polygon
cornerThreshold60Corner detection angle
spliceThreshold45Spline angle threshold

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

OpenClaw Skill Growth

Make OpenClaw Skills observable, diagnosable, and safely improvable over time. Use this when the user wants to maintain many SKILL.md files, inspect repeated...

Registry SourceRecently Updated
171Profile unavailable
General

Find Skills for ClawHub

Search for and discover OpenClaw skills from ClawHub (the official skill registry). Activate when user asks about finding skills, installing skills, or wants...

Registry SourceRecently Updated
2871Profile unavailable
General

Skill Listing Polisher

Improve a skill's public listing before publish. Use when tightening title, description, tags, changelog, and scan-friendly packaging so the listing looks cl...

Registry SourceRecently Updated
1130Profile unavailable
General

Skill Priority Setup

Scans installed skills, suggests L0-L3 priority tiers, and auto-configures skill injection policy. Use when: setting up skill priorities, optimizing token bu...

Registry SourceRecently Updated
2510Profile unavailable