vectorize

vectorize is a skill for Claude Code, Codex from danielrosehill/Claude-Image-Production-Plugin. It costs 69 tokens per session (1,155 once invoked), scanned A, original, MIT.

A tool for tracing PNG or JPEG images into SVG, an editable vector format that stays sharp when resized. It works especially well for logos, line art, diagrams, and flat illustrations.

In plain words
What is it for?
Use it to convert logos, icons, diagrams, or stylized illustrations into SVG files, either individually or in batches.
Why use it?
It helps recover scalable artwork from raster images, while making clear that complex photos will lose texture and gradients during tracing.

Skill for Claude CodeCodex

Part of the image-production plugin — 29 skills, 19 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/danielrosehill/claude-image-production-plugin/vectorize
Any agent
npx skills add danielrosehill/Claude-Image-Production-Plugin --skill vectorize
Clone the repo
git clone --depth 1 https://github.com/danielrosehill/Claude-Image-Production-Plugin

Made for: Claude Code, Codex.

Or install image-production, the plugin that ships this one along with the rest of its 29 skills, 19 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vectorize

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielrosehill/claude-image-production-plugin/vectorize.svg)](https://agentmods.dev/skills/danielrosehill/claude-image-production-plugin/vectorize)
Your own site
<a href="https://agentmods.dev/skills/danielrosehill/claude-image-production-plugin/vectorize"><img src="https://agentmods.dev/badge/skills/danielrosehill/claude-image-production-plugin/vectorize.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,155 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00069 $0.01155
Opus 5 $0.00034 $0.00577
Sonnet 5 $0.00014 $0.00231
Haiku 4.5 $0.00007 $0.00115

Measured 4d ago against content hash 6621ddd3871b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vectorize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/vectorize/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vectorize

Convert raster images to SVG via vtracer. vtracer is a colour-clustering tracer — much better than potrace for full-colour images, comparable for B/W line art. Installed as a Python wheel in the plugin venv (bundled Rust binary, no cargo needed at install time).

When to use

  • Recover an editable vector logo from a raster (PNG/JPEG).
  • Convert a flat illustration / icon / diagram into SVG for crisp scaling.
  • Stylize a photo into a flat-colour vector (large --filter-speckle + low --color-precision).
  • Pre-step before svg-to-raster if you want to upscale a small raster losslessly.

Do not use this skill when:

  • Source is a complex photograph and you want photo-realism — vector tracing always loses gradients/texture; use upscale-image for raster upscaling instead.
  • You need OCR'd text inside the SVG — vtracer traces strokes, not text. Use a separate OCR step.
  • Input is already SVG — no-op.

Inputs

  1. Input — image file or directory. Required.
  2. Output dir — default: <input-dir>/svg/. Never overwrites originals.
  3. Modecolor (default, multi-colour with clustering) or binary (B/W line art, faster, smaller output).
  4. Color precision1..8, default 6. Lower = fewer colours = smaller / more abstract SVG.
  5. Layer difference0..255, default 16. Larger = fewer layers, simpler output.
  6. Filter speckle — pixels, default 4. Discards regions smaller than N pixels — raise to denoise.
  7. Path simplificationcorner threshold (default 60 deg), length threshold (default 4.0), splice threshold (default 45 deg). Most users won't tune these; expose only if asked.
  8. Recursive--recursive for directory descent.

Procedure

  1. Resolve venv: VENV_DIR="${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/image-production/venv".

  2. Verify vtracer is importable:

    "$VENV_DIR/bin/python" -c "import vtracer" 2>&1
    

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 87 lines · 69 tokens per session scan A 6621ddd3871b

Subscribe to this mod's changes

vectorize is a skill published in the GitHub repository danielrosehill/Claude-Image-Production-Plugin (16 stars, last pushed 17d ago), licensed MIT. It adds 69 tokens to every session and 1,155 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.