/visual-effects:vectorize-art-patternsfrom visual-effects
Simplifies openly licensed or user-owned raster artwork and organic artistic patterns into editable standalone SVGs using deterministic smoothing, palette reduction, seeded composition variation, canonical colorset1/colorset2 adaptation, ink, stain, collage, contour-tracing, and tiling pipelines. Use when Codex needs to vectorize or reinterpret raster art, derive non-geometric abstract or Cubist material patterns, build multi-pattern collections with no reused compositions or paths, generate repeatable SVG pattern tiles, create palette-matched comparison galleries or GitHub Pages examples, preserve licensed base-image assets with provenance, or validate that an SVG is truly vector rather than a raster wrapper.
Ships in visual-effects. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create a rights-traceable vector interpretation, not a pixel-perfect autotrace. Preserve the source's defining rhythm while reducing color, texture, and contour complexity.
references/rights-and-provenance.md and use scripts/fetch_open_image.py.ND, NC, fair-use, editorial-only, or otherwise restricted material.organic: biomorphic forms, wood grain, foliage, flowing abstraction.ink: charcoal, automatic drawing, calligraphic lines, engraving.stain: watercolor, marbling, clouds, soft color fields.collage: Synthetic Cubism, pasted-paper masses, torn silhouettes.references/pipeline-selection.md before tuning an unfamiliar source or adding a technique.references/vectorizer-selection.md when choosing between the bundled OpenCV tracer, VTracer, Potrace, or Inkscape.references/collection-generation.md before choosing parameters or counting outputs.--colorset to use colorset1; every authored derivative must select a canonical colorset.--colorset colorset1 for red-neutral work.--colorset colorset2 for an explicit multi-hue request or meaningful source categories that need distinct hues.references/colorset-adaptation.md before producing paired variants or a published gallery.assets/base-images/ with manifest.json; store outputs under the exact user-requested path. Treat the installed skill directory as read-only.scripts/validate_open_assets.py.Run from the task workspace root. Put global options before the provider
subcommand. The examples use PowerShell continuations; in Bash, replace each
trailing backtick with \ or place the command on one line.
uv run --script skills/vectorize-art-patterns/scripts/fetch_open_image.py `
--asset-id hilma-pleiade-14 `
--output assets/base-images/hilma-pleiade-14.jpg `
--manifest assets/base-images/manifest.json `
--max-width 900 `
commons --title "File:Hilma af Klint 1908 - Pleiade nr 14.jpg"
For the Art Institute of Chicago, replace the final line with:
artic --object-id 27992
The downloader must stop rather than save a file when metadata is missing, the work is not marked Open Access, restrictions are present, or the license does not allow derivatives.
Validate the downloaded bytes and rights records:
uv run --script skills/vectorize-art-patterns/scripts/validate_open_assets.py `
assets/base-images/manifest.json `
--output-report outputs/base-images-validation.json
Use a verified manifest entry:
uv run --script skills/vectorize-art-patterns/scripts/vectorize_art.py `
assets/base-images/hilma-pleiade-14.jpg `
outputs/hilma-organic-pattern.svg `
--mode organic `
--colorset colorset2 `
--tile mirror `
--variation-seed 140021 `
--crop-scale 0.72 `
--crop-x 0.28 `
--crop-y 0.63 `
--rotation -9 `
--flow-strength 7.5 `
--flow-frequency 2.4 `
--pattern-id hilma-organic-pattern `
--source-manifest assets/base-images/manifest.json `
--source-id hilma-pleiade-14 `
--report outputs/hilma-organic-pattern.json
For a user-provided image that the user is authorized to modify:
uv run --script skills/vectorize-art-patterns/scripts/vectorize_art.py `
inputs/my-art.png outputs/my-art.svg `
--mode collage `
--rights-basis user-owned `
--pattern-id my-art-simplified `
--report outputs/my-art.json
Preserve exact output paths. Do not write task artifacts into skills/.
For detailed color paintings or prints, use the bundled VTracer backend. It quantizes once in the source color space, traces that raster, then applies Colorset paint so paired variants retain identical path geometry:
uv run --script skills/vectorize-art-patterns/scripts/vectorize_with_vtracer.py `
assets/base-images/hokusai-great-wave.jpg `
outputs/hokusai-great-wave-cs1.svg `
--mode collage `
--colors 10 `
--colorset colorset1 `
--pattern-id hokusai-great-wave-cs1 `
--source-manifest assets/base-images/manifest.json `
--source-id hokusai-great-wave `
--report outputs/hokusai-great-wave-cs1.json
uv run --script skills/vectorize-art-patterns/scripts/validate_art_svg.py `
outputs/hilma-organic-pattern.svg `
--report outputs/hilma-organic-pattern.json `
--expected-pattern-id hilma-organic-pattern `
--expected-mode organic `
--expected-tile mirror `
--expected-colorset colorset2 `
--require-pattern `
--output-report outputs/hilma-organic-pattern-validation.json
The validator requires editable paths, provenance metadata, direct title and desc, finite geometry, internal-only references, and no raster <image>, scripts, or foreignObject.
Match tile validation to the generated contract. Add --require-pattern only
when --expected-tile is repeat or mirror. Never add it when the requested
and expected tile mode is none; a non-tiled SVG is correct without a
<pattern> element.
For paired colorset variants, run the same source and vector parameters twice
with different --colorset values and variant-suffixed pattern IDs. Geometry
must remain byte-identical after isolating viewBox and path data.
For independent collections, do the opposite: give every member distinct
composition parameters and validate that no complete geometry or individual
path data repeats. Colorset variants are comparison outputs, not additional
unique drawings. Follow references/collection-generation.md.
Use the bundled acceptance fixture when maintaining this repository's GitHub
Pages example. Do not read assets/examples/ for ordinary runtime tasks.
uv run --script skills/vectorize-art-patterns/scripts/build_example_gallery.py
uv run --script skills/vectorize-art-patterns/scripts/validate_example_gallery.py
uv run --script scripts/build-pages.py
The published set uses the stable page ID vectorize-art-patterns. It presents
30 distinct open artworks by 28 creators as 60 VTracer SVGs: one
geometry-locked -cs1 / -cs2 pair per source. The pair is a paint
comparison, not two independent drawings. Rebuild and validate the fixture
before publishing Pages.
For global art that ranges from a recognizable land silhouette to an
intentionally imprecise continental mnemonic, read
references/abstract-world-map-recipe.md. The focused Pages fixture uses the
stable ID vectorize-abstract-world-maps; validate it with
scripts/validate_abstract_world_map_examples.py.
Browser review must confirm:
viewBox, lowercase hyphen-case pattern ID, direct accessibility text, and editable paths.<metadata>.data-colorset, the colorset name, and the bundled palette-contract SHA-256. Use only exact palette tokens for every derivative. Source images and source-color provenance remain immutable inputs; they are not authored paint.<use> and do not count recolors,
transforms, tile wrappers, or renamed copies as new members.fill-rule="evenodd" for holes.<pattern> only for requested repeat or mirror output.When the shipped filters cannot preserve the source:
Do not add a new mode as an untested stylistic alias.
scripts/fetch_open_image.py: verify a supported provider, download one open image, and update its provenance manifest.scripts/validate_open_assets.py: verify base-image hashes, dimensions, MIME types, source URLs, and derivative-friendly licenses.scripts/vectorize_art.py: generate deterministic organic, ink, stain, or collage SVG paths and a sidecar report.scripts/vectorize_with_vtracer.py: trace detailed color artwork with the MIT-licensed VTracer backend while preserving geometry across Colorset variants.scripts/validate_art_svg.py: enforce the editable standalone SVG contract.scripts/build_example_gallery.py: regenerate the 30-work, 60-variant VTracer Pages collection and its provenance manifest.scripts/validate_example_gallery.py: enforce page/manifest parity, distinct source bytes, 30 unique geometries, geometry-locked Colorset pairs, no raster wrappers, report parity, and colorset anchors.scripts/test_vectorize_with_vtracer.py: exercise deterministic VTracer output, Colorset pairing, palette locks, and rights rejection.scripts/validate_abstract_world_map_examples.py: validate the two focused world-map SVGs, page/manifest parity, palette, geometry contracts, hashes, and provenance.scripts/test_vectorize_art.py: exercise all modes, both colorsets, seeded variation, determinism, invalid variation bounds, restricted-license rejection, and tampered-asset detection.references/abstract-world-map-recipe.md: create recognizable or intentionally imprecise global artwork without confusing abstract placement with cartographic accuracy.references/collection-generation.md: generate deterministic collections and enforce no-reuse semantics.references/colorset-adaptation.md: select colorsets and preserve geometry across palette variants.references/pipeline-selection.md: choose and tune filters or research an extension.references/vectorizer-selection.md: select an OSS tracing backend from source structure and output needs.references/rights-and-provenance.md: apply the license allowlist and attribution rules.assets/palettes/colorsets.json: self-contained colorset1/colorset2 token contract.assets/base-images/manifest.json: canonical metadata and hashes for bundled open source images.assets/examples/vectorize-art-patterns/: published acceptance fixture; exclude it from ordinary runtime reads.assets/examples/vectorize-abstract-world-maps/: focused Pages fixture for the biomorphic and straight-line global studies.Use opaque, single-token filled marks without decorative borders first. Read
solidSequence and textOnFill from assets/palettes/colorsets.json. Reuse a
fill for the same semantic role; when roles must be distinct, exhaust every
usable distinct token in the preferred sequence, excluding the actual canvas,
before creating outline or tint combinations. Soft tokens occur late. For text
on a fill, use exactly black or white with the larger WCAG contrast computed
from the actual background; composite opacity before evaluating translucent
backgrounds. Do not infer text color from a hue name.
Keep connectors, axes, signal traces, open line art, physical geometry and
explicit source-fidelity modes. A stroke that depicts a relationship or is the
geometry itself is meaningful. Reserve decorative outlines for a documented
palette overflow or an explicit requested style; mark SVG overflow treatments
with data-outline-tier="overflow". A transient keyboard focus ring remains an
interaction affordance. Use position, whitespace and direct labels for ordinary
selection and grouping.
agents/openai.yaml (opens in a new tab)assets/base-images/bailly-beauties-fancy.jpg (opens in a new tab)assets/base-images/breton-song-lark.jpg (opens in a new tab)assets/base-images/caillebotte-paris-street.jpg (opens in a new tab)assets/base-images/cassatt-childs-bath.jpg (opens in a new tab)assets/base-images/cezanne-basket-apples.jpg (opens in a new tab)assets/base-images/courbet-rock-hautepierre.jpg (opens in a new tab)assets/base-images/degas-ballet-opera.jpg (opens in a new tab)assets/base-images/el-greco-assumption.jpg (opens in a new tab)assets/base-images/gauguin-day-god.jpg (opens in a new tab)assets/base-images/hilma-pleiade-14.jpg (opens in a new tab)assets/base-images/hilma-primordial-chaos-16.jpg (opens in a new tab)assets/base-images/hiroshige-sudden-shower.jpg (opens in a new tab)assets/base-images/hokusai-great-wave.jpg (opens in a new tab)assets/base-images/homer-herring-net.jpg (opens in a new tab)assets/base-images/juan-gris-still-life-1919.jpg (opens in a new tab)assets/base-images/kandinsky-improvisation-27.jpg (opens in a new tab)assets/base-images/manet-jesus-mocked.jpg (opens in a new tab)assets/base-images/manifest.json (opens in a new tab)assets/base-images/monet-normandy-train.jpg (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/kornia-artistic-transformsApplies reproducible Kornia and PyTorch artistic transformations to supplied raster images, including adaptive engraving, pigment regions, halftones, stitches, ink strata and cellular mosaics. Supports ordered combinations, comparison galleries and feedback-led iteration while preserving image proportions. Use for algorithmic image reinterpretation and technique exploration; generative image creation, SVG tracing and measured depth reconstruction are separate tasks./one-bit-dither-svgTransforms local SVGs and raster images into self-contained pixel SVGs, or restyles declarative animated SVGs and animated raster images as palette-optimized GIFs, with a one-bit dithered engraving aesthetic. Includes Obra Dinn-inspired black-and-white, custom-color-and-white, and region-aware source-color modes. Use for retro 1-bit, stippled, or high-contrast treatment of illustrations, photos, screenshots, logos, diagrams, SVG/CSS/SMIL animation, and animated GIF/WebP/APNG files; not when source editability, JavaScript-driven motion, or interaction must remain intact./pixel-art-image-videoConverts local raster or SVG images and local videos or animated rasters into crisp pixel art with adaptive, custom, or exact source colors. Use for retro game-style PNG/WebP stills, MP4/GIF motion, lossless MKV video, and image-dependent pixel-density tuning; do not use when the source must remain editable vector art or JavaScript-driven SVG motion needs direct capture.npx claudepluginhub gvillarroel/plugins --plugin visual-effects