[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F14SE381GPHD7PXCPMNZ81":3,"skill-same:01M7F14SE381GPHD7PXCPMNZ81":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7F14SE381GPHD7PXCPMNZ81","vectorize",null,"Use when the user wants to trace a raster image (PNG\u002FJPEG) into an SVG vector — useful for logos, line art, diagrams, and stylized illustrations. Wraps `vtracer` (Rust-backed, via Python wheel in the plugin venv). Companion to `svg-to-raster` (other direction). Triggers - \"vectorize this logo\", \"convert this PNG to SVG\", \"trace this line art\".","shotcowboystyle\u002Fag-skills","shotcowboystyle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62471?v=4","01M7EZTCFCZJ6K3MYW8BPM4X6R","Curtis Blanton","01M7EZTCG1S5M04J90A931X9BX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fimage-ops\u002Fskills\u002Fvectorize\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: vectorize\ndescription: Use when the user wants to trace a raster image (PNG\u002FJPEG) into an SVG vector — useful for logos, line art, diagrams, and stylized illustrations. Wraps `vtracer` (Rust-backed, via Python wheel in the plugin venv). Companion to `svg-to-raster` (other direction). Triggers - \"vectorize this logo\", \"convert this PNG to SVG\", \"trace this line art\".\nallowed-tools: Bash(command *), Bash(test *), Bash(find *), Bash(grep *), Bash(mkdir *), Bash(rm *), Bash(wc *), Read, Write\n---\n\n# Vectorize\n\nConvert raster images to SVG via [vtracer](https:\u002F\u002Fgithub.com\u002Fvisioncortex\u002Fvtracer). vtracer is a color-clustering tracer — much better than `potrace` for full-color images, comparable for B\u002FW line art. Installed as a Python wheel in the plugin venv (bundled Rust binary, no `cargo` needed at install time).\n\n## When to use\n\n- Recover an editable vector logo from a raster (PNG\u002FJPEG).\n- Convert a flat illustration \u002F icon \u002F diagram into SVG for crisp scaling.\n- Stylize a photo into a flat-color vector (large `--filter-speckle` + low `--color-precision`).\n- Pre-step before `svg-to-raster` if you want to upscale a small raster losslessly.\n\nDo **not** use this skill when:\n- Source is a complex photograph and you want photo-realism — vector tracing always loses gradients\u002Ftexture; use `upscale-image` for raster upscaling instead.\n- You need OCR'd text inside the SVG — vtracer traces strokes, not text. Use a separate OCR step.\n- Input is already SVG — no-op.\n\n## Inputs\n\n1. **Input** — image file or directory. Required.\n2. **Output dir** — default: `\u003Cinput-dir>\u002Fsvg\u002F`. Never overwrites originals.\n3. **Mode** — `color` (default, multi-color with clustering) or `binary` (B\u002FW line art, faster, smaller output).\n4. **Color precision** — `1..8`, default `6`. Lower = fewer colors = smaller \u002F more abstract SVG.\n5. **Layer difference** — `0..255`, default `16`. Larger = fewer layers, simpler output.\n6. **Filter speckle** — pixels, default `4`. Discards regions smaller than N pixels — raise to de-noise.\n7. **Path simplification** — `corner threshold` (default `60` deg), `length threshold` (default `4.0`), `splice threshold` (default `45` deg). Most users won't tune these; expose only if asked.\n8. **Recursive** — `--recursive` for directory descent.\n\n## Procedure\n\n1. Resolve venv: `VENV_DIR=\"${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME\u002F.local\u002Fshare}\u002Fclaude-plugins}\u002Fimage-ops\u002Fvenv\"`.\n\n2. Verify `vtracer` is importable:\n\n   ```bash\n   \"$VENV_DIR\u002Fbin\u002Fpython\" -c \"import vtracer\" 2>&1\n   ```\n\n   If missing → point at `image-ops-install-deps`.\n\n3. Enumerate inputs (`*.png`, `*.jpg`, `*.jpeg`, `*.bmp`, `*.tiff`). Skip already-SVG with note.\n\n4. For each file, call vtracer via the venv Python. Pass the tuning values as arguments — the placeholders below are *shell* variables, and substituting `\u003Cint>`-style placeholders into the Python source literally would be a `SyntaxError`:\n\n   ```bash\n   \"$VENV_DIR\u002Fbin\u002Fpython\" - \"$input\" \"$output\" \"$colormode\" \\\n       \"$color_precision\" \"$layer_difference\" \"$filter_speckle\" \\\n       \"$corner_threshold\" \"$length_threshold\" \"$splice_threshold\" \u003C\u003C'PYEOF'\n   import sys, vtracer\n\n   (src, dst, colormode, color_precision, layer_difference,\n    filter_speckle, corner_threshold, length_threshold,\n    splice_threshold) = sys.argv[1:10]\n\n   vtracer.convert_image_to_svg_py(\n       src,\n       dst,\n       colormode=colormode,                        # 'color' or 'binary'\n       color_precision=int(color_precision),\n       layer_difference=int(layer_difference),\n       filter_speckle=int(filter_speckle),\n       corner_threshold=int(corner_threshold),\n       length_threshold=float(length_threshold),\n       splice_threshold=int(splice_threshold),\n       path_precision=8,\n   )\n   PYEOF\n   ```\n\n   A fully-resolved invocation for the default logo\u002Ficon preset:\n   `colormode=color`, `color_precision=6`, `layer_difference=16`, `filter_speckle=4`, `corner_threshold=60`, `length_threshold=4.0`, `splice_threshold=45`.\n\n5. Track size deltas and a quick \"vector quality\" sniff: file size ratio (SVG \u002F PNG), and visually-noticeable degradation flags (very large filter_speckle on a detailed source = likely loss).\n\n6. Handle per-file failure. vtracer raises on corrupt or unsupported inputs; catch it at the shell level so one bad file does not end the batch:\n\n   ```bash\n   if ! \"$VENV_DIR\u002Fbin\u002Fpython\" - ... \u003C\u003C'PYEOF'\n   ...\n   PYEOF\n   then\n     echo \"FAILED: $input\" >> \"$failed_log\"\n     rm -f \"$output\"\n     continue\n   fi\n   ```\n\n## Output\n\n- SVG files at `\u003Coutput-dir>\u002F`.\n- Summary:\n  - Files processed \u002F failed, with the failed paths from `$failed_log`.\n  - Per-file: input pixels × → SVG path count (heuristic: `grep -c '\u003Cpath' \u003Cfile>`), file size delta.\n  - Tuning suggestions if path count is suspiciously high (likely too noisy — raise `filter_speckle`) or low (likely over-simplified — drop `layer_difference`).\n\n## Notes\n\n- vtracer is MIT — free to bundle and use.\n- For B\u002FW technical drawings \u002F scanned line art, `binary` mode is dramatically faster and produces cleaner output than `color`.\n- Common preset suggestions:\n  - **Logo \u002F icon (clean source):** `color, color_precision=6, filter_speckle=4, layer_difference=16`. Defaults are tuned for this.\n  - **Photo → flat illustration:** `color, color_precision=3, filter_speckle=20, layer_difference=32`. Aggressive simplification, painterly look.\n  - **Line drawing \u002F scan:** `binary, filter_speckle=10`. Smallest output.\n- If vtracer's quality isn't enough for a specific case, fall back to Inkscape's bitmap trace or `potrace` (B\u002FW only). vtracer is the right default for everything else.\n- vtracer ships a CLI binary too (`vtracer-cli`) — the Python wheel is preferred here so the venv is self-contained.\n","# Vectorize\n\nConvert raster images to SVG via [vtracer](https:\u002F\u002Fgithub.com\u002Fvisioncortex\u002Fvtracer). vtracer is a color-clustering tracer — much better than `potrace` for full-color images, comparable for B\u002FW line art. Installed as a Python wheel in the plugin venv (bundled Rust binary, no `cargo` needed at install time).\n\n## When to use\n\n- Recover an editable vector logo from a raster (PNG\u002FJPEG).\n- Convert a flat illustration \u002F icon \u002F diagram into SVG for crisp scaling.\n- Stylize a photo into a flat-color vector (large `--filter-speckle` + low `--color-precision`).\n- Pre-step before `svg-to-raster` if you want to upscale a small raster losslessly.\n\nDo **not** use this skill when:\n- Source is a complex photograph and you want photo-realism — vector tracing always loses gradients\u002Ftexture; use `upscale-image` for raster upscaling instead.\n- You need OCR'd text inside the SVG — vtracer traces strokes, not text. Use a separate OCR step.\n- Input is already SVG — no-op.\n\n## Inputs\n\n1. **Input** — image file or directory. Required.\n2. **Output dir** — default: `\u003Cinput-dir>\u002Fsvg\u002F`. Never overwrites originals.\n3. **Mode** — `color` (default, multi-color with clustering) or `binary` (B\u002FW line art, faster, smaller output).\n4. **Color precision** — `1..8`, default `6`. Lower = fewer colors = smaller \u002F more abstract SVG.\n5. **Layer difference** — `0..255`, default `16`. Larger = fewer layers, simpler output.\n6. **Filter speckle** — pixels, default `4`. Discards regions smaller than N pixels — raise to de-noise.\n7. **Path simplification** — `corner threshold` (default `60` deg), `length threshold` (default `4.0`), `splice threshold` (default `45` deg). Most users won't tune these; expose only if asked.\n8. **Recursive** — `--recursive` for directory descent.\n\n## Procedure\n\n1. Resolve venv: `VENV_DIR=\"${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME\u002F.local\u002Fshare}\u002Fclaude-plugins}\u002Fimage-ops\u002Fvenv\"`.\n\n2. Verify `vtracer` is importable:\n\n   ```bash\n   \"$VENV_DIR\u002Fbin\u002Fpython\" -c \"import vtracer\" 2>&1\n   ```\n\n   If missing → point at `image-ops-install-deps`.\n\n3. Enumerate inputs (`*.png`, `*.jpg`, `*.jpeg`, `*.bmp`, `*.tiff`). Skip already-SVG with note.\n\n4. For each file, call vtracer via the venv Python. Pass the tuning values as arguments — the placeholders below are *shell* variables, and substituting `\u003Cint>`-style placeholders into the Python source literally would be a `SyntaxError`:\n\n   ```bash\n   \"$VENV_DIR\u002Fbin\u002Fpython\" - \"$input\" \"$output\" \"$colormode\" \\\n       \"$color_precision\" \"$layer_difference\" \"$filter_speckle\" \\\n       \"$corner_threshold\" \"$length_threshold\" \"$splice_threshold\" \u003C\u003C'PYEOF'\n   import sys, vtracer\n\n   (src, dst, colormode, color_precision, layer_difference,\n    filter_speckle, corner_threshold, length_threshold,\n    splice_threshold) = sys.argv[1:10]\n\n   vtracer.convert_image_to_svg_py(\n       src,\n       dst,\n       colormode=colormode,                        # 'color' or 'binary'\n       color_precision=int(color_precision),\n       layer_difference=int(layer_difference),\n       filter_speckle=int(filter_speckle),\n       corner_threshold=int(corner_threshold),\n       length_threshold=float(length_threshold),\n       splice_threshold=int(splice_threshold),\n       path_precision=8,\n   )\n   PYEOF\n   ```\n\n   A fully-resolved invocation for the default logo\u002Ficon preset:\n   `colormode=color`, `color_precision=6`, `layer_difference=16`, `filter_speckle=4`, `corner_threshold=60`, `length_threshold=4.0`, `splice_threshold=45`.\n\n5. Track size deltas and a quick \"vector quality\" sniff: file size ratio (SVG \u002F PNG), and visually-noticeable degradation flags (very large filter_speckle on a detailed source = likely loss).\n\n6. Handle per-file failure. vtracer raises on corrupt or unsupported inputs; catch it at the shell level so one bad file does not end the batch:\n\n   ```bash\n   if ! \"$VENV_DIR\u002Fbin\u002Fpython\" - ... \u003C\u003C'PYEOF'\n   ...\n   PYEOF\n   then\n     echo \"FAILED: $input\" >> \"$failed_log\"\n     rm -f \"$output\"\n     continue\n   fi\n   ```\n\n## Output\n\n- SVG files at `\u003Coutput-dir>\u002F`.\n- Summary:\n  - Files processed \u002F failed, with the failed paths from `$failed_log`.\n  - Per-file: input pixels × → SVG path count (heuristic: `grep -c '\u003Cpath' \u003Cfile>`), file size delta.\n  - Tuning suggestions if path count is suspiciously high (likely too noisy — raise `filter_speckle`) or low (likely over-simplified — drop `layer_difference`).\n\n## Notes\n\n- vtracer is MIT — free to bundle and use.\n- For B\u002FW technical drawings \u002F scanned line art, `binary` mode is dramatically faster and produces cleaner output than `color`.\n- Common preset suggestions:\n  - **Logo \u002F icon (clean source):** `color, color_precision=6, filter_speckle=4, layer_difference=16`. Defaults are tuned for this.\n  - **Photo → flat illustration:** `color, color_precision=3, filter_speckle=20, layer_difference=32`. Aggressive simplification, painterly look.\n  - **Line drawing \u002F scan:** `binary, filter_speckle=10`. Smallest output.\n- If vtracer's quality isn't enough for a specific case, fall back to Inkscape's bitmap trace or `potrace` (B\u002FW only). vtracer is the right default for everything else.\n- vtracer ships a CLI binary too (`vtracer-cli`) — the Python wheel is preferred here so the venv is self-contained.\n",{"name":5,"description":7,"allowed-tools":24},"Bash(command *), Bash(test *), Bash(find *), Bash(grep *), Bash(mkdir *), Bash(rm *), Bash(wc *), Read, Write","main","f846d9a97082ff30d613b55a085cef425d822473","plugins\u002Fimage-ops\u002Fskills\u002Fvectorize","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle","https:\u002F\u002Fshotcowboystyle.github.io","Building smarter with AI, automation & modern tools. Exploring how far one person can go without a big team using today’s AI.","2026-11-10 04:58:27",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add shotcowboystyle\u002Fag-skills --skill vectorize",{"tool":39,"command":40},"bunx","bunx skills add shotcowboystyle\u002Fag-skills --skill vectorize",{"tool":42,"command":43},"pnpm","pnpm dlx skills add shotcowboystyle\u002Fag-skills --skill vectorize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fimage-ops\u002Fskills\u002Fvectorize\u002FSKILL.md",true,[],[48,54,61,68,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7F1YRY5S5QRJ1V0BJS130QX","no-description","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fno-description\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7F1Y9BV2FJNQJ3NB32JS5CM","good-skill","Fixture skill that satisfies every rule.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7F1XXBQ3NQRXZSS0KAGAR9V","broken-link","Links to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbroken-link\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7F1XBX4R46NR9W0HXQ7XCDX","Bad_Name","Name violates the kebab-case rule and does not match the directory.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-name\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7F1WNAF8WNEQ7S5HKT5VK0D","skill-authoring","Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskill-authoring\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7F1W30TC0XFNSF7YBRGETK2","weigh-bags","Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts\u002Freconcile.py.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-packing-assistant\u002Fskills\u002Fweigh-bags\u002FSKILL.md",[],[]]