mohamedabdallah-14/prompt-to-asset/vectorize
Claude Code and agent skill by mohamedabdallah-14/prompt-to-asset
- community
Checking that the SKILL.md file is still in the repository.
Convert a raster image to SVG. Three paths — Recraft hosted vectorization, vtracer (multi-color polygon), potrace (1-bit). Optimizes with SVGO; validates path count as a quality signal.
Install
npx vskill@latest install mohamedabdallah-14/prompt-to-asset/vectorizeSKILL.md
Vectorize
Three paths
1. Recraft /vectorize (hosted, highest quality)
Input: any raster. Output: clean SVG, typically 20–100 paths for a mark, 200–500 for an illustration. Commercial tier only.
2. vtracer (local, multi-color polygon)
- Rust binary;
npm install vtracerfor the Node wrapper. - Modes:
polygon(recommended for logos),spline(smoother curves),pixel(blocky). - Color count controlled upstream via K-means quantization before vectorization.
3. potrace (local, 1-bit)
- Classical Stan Ford vectorizer; binary output only (no color).
- Best for: icon packs (single-color), typography work, line art.
- Multi-color workaround: separate each color into its own 1-bit layer, vectorize each, stack SVG
<g>s.
Choosing the path
| Use case | Path | |
|---|---|---|
| Budget available, one-shot quality | Recraft vectorize | |
| Multi-color logo, local | vtracer (polygon mode) | |
| Single-color icon pack | potrace | |
| Photorealistic illustration → vector | don't — keep as PNG/WebP. Vectorization of photoreal is lossy noise. |
Path-count quality signal
After vectorization, count <path> elements:
- ≤40 paths → clean, production-ready mark.
- 40–200 paths → likely acceptable; scan for overlapping slivers.
- >200 paths → probably bad. Either the input has noise (regenerate), too many colors (reduce K-means), or the subject is inappropriate for vectorization (keep as raster).
SVGO configuration
Conservative preset — preserve: viewBox, IDs, classes. Strip: metadata, editor comments, hidden elements.
Never enable convertPathData with default floatPrecision — it collapses small strokes.
Validation
- SVG parses with
@resvg/resvg-jswithout errors. <path>count ≤ 200 for logos, ≤ 500 for illustrations.- No
<image>tags (sneaking raster into SVG). - No
<script>tags. - viewBox present.
- Rasterized at 1024 × 1024 should be visually identical (SSIM > 0.95) to source raster.
Output
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/vectorize/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mohamedabdallah-14/prompt-to-asset/vectorize)