[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F140G6V86FK2Q1EJ1QCF78":3,"skill-same:01M7F140G6V86FK2Q1EJ1QCF78":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},"01M7F140G6V86FK2Q1EJ1QCF78","svg-to-raster",null,"Use when the user wants to rasterize SVG files — convert SVG to PNG, PDF, or PostScript at a chosen resolution. Wraps CairoSVG (Python, in the plugin venv). Single file or batch. Companion to `vectorize` (other direction). Triggers - \"convert this SVG to PNG\", \"render my icons at 2x\", \"I need a raster version of this logo\".","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\u002Fsvg-to-raster\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: svg-to-raster\ndescription: Use when the user wants to rasterize SVG files — convert SVG to PNG, PDF, or PostScript at a chosen resolution. Wraps CairoSVG (Python, in the plugin venv). Single file or batch. Companion to `vectorize` (other direction). Triggers - \"convert this SVG to PNG\", \"render my icons at 2x\", \"I need a raster version of this logo\".\nallowed-tools: Bash(command *), Bash(test *), Bash(find *), Bash(mkdir *), Bash(rm *), Bash(wc *), Read, Write\n---\n\n# SVG to Raster\n\nRasterize SVG files to PNG \u002F PDF \u002F PS via [CairoSVG](https:\u002F\u002Fgithub.com\u002FKozea\u002FCairoSVG). Runs from the plugin's uv venv — no system Python pollution.\n\n## When to use\n\n- Convert logo \u002F icon \u002F diagram SVGs to PNG for use in slides, social, or pipelines that don't accept SVG.\n- Render an SVG at multiple resolutions (e.g. 1×, 2×, 3× for app assets).\n- Bake an SVG into a PDF for print or archival.\n\nDo **not** use this skill when:\n- Source is already raster — wrong direction; use `vectorize` instead.\n- You need to *edit* the SVG — CairoSVG is render-only.\n- The SVG uses advanced filters \u002F unsupported CSS — CairoSVG covers SVG 1.1 well but newer features may not render. Inspect output and warn the user.\n\n## Inputs\n\n1. **Input** — SVG file or directory. Required.\n2. **Format** — `png` (default), `pdf`, `ps`.\n3. **Output dir** — default: `\u003Cinput-dir>\u002F\u003Cformat>\u002F`. Never overwrites originals.\n4. **Scale** — multiplier on the SVG's intrinsic size. Default `1.0`. Use `2.0`, `3.0` for hi-DPI.\n5. **Width \u002F Height** — explicit pixel dimensions (overrides scale). Pass one to preserve aspect; both to force.\n6. **DPI** — for PDF\u002FPS output. Default `96`.\n7. **Background** — default transparent. Pass a CSS colour (`#ffffff`, `white`) for solid fill.\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 `cairosvg` is importable in the venv:\n\n   ```bash\n   \"$VENV_DIR\u002Fbin\u002Fpython\" -c \"import cairosvg\" 2>&1\n   ```\n\n   If missing → point at `image-ops-install-deps`. If it imports but raises a libcairo error, surface the system-lib install command (`sudo apt install libcairo2` \u002F `brew install cairo`).\n\n3. Enumerate `*.svg` inputs (case-insensitive). Skip non-SVG with note.\n\n4. Call CairoSVG via the venv Python (keeps the skill self-contained — no helper script needed). Pass the gathered options as arguments rather than string-substituting them into the source; the script below dispatches on format and builds the kwargs itself:\n\n   ```bash\n   \"$VENV_DIR\u002Fbin\u002Fpython\" - \"$input\" \"$output\" \"$fmt\" \\\n       \"$scale\" \"$width\" \"$height\" \"$dpi\" \"$background\" \u003C\u003C'PYEOF'\n   import sys, cairosvg\n\n   src, dst, fmt, scale, width, height, dpi, bg = sys.argv[1:9]\n\n   fn = {'png': cairosvg.svg2png,\n         'pdf': cairosvg.svg2pdf,\n         'ps':  cairosvg.svg2ps}[fmt]\n\n   kwargs = {'url': src, 'write_to': dst}\n   # Empty string means \"not supplied\" — omit rather than passing a default\n   # that would override CairoSVG's own.\n   if scale:  kwargs['scale'] = float(scale)\n   if width:  kwargs['output_width'] = int(width)\n   if height: kwargs['output_height'] = int(height)\n   if dpi:    kwargs['dpi'] = int(dpi)\n   if bg:     kwargs['background_color'] = bg\n\n   fn(**kwargs)\n   PYEOF\n   ```\n\n   Function map: `png → svg2png`, `pdf → svg2pdf`, `ps → svg2ps`.\n\n   Note that `output_width` \u002F `output_height` override `scale` in CairoSVG — do not pass both unless that is what the user asked for.\n\n5. Track file sizes and any render warnings (CairoSVG prints to stderr for unsupported features). Wrap each conversion so one bad file does not kill 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   Removing the partial `$output` matters — a truncated PNG left on disk reads as a successful conversion to the summary.\n\n## Output\n\n- Rasterized files at `\u003Coutput-dir>\u002F`.\n- Summary:\n  - Files processed \u002F failed, with the failed paths from `$failed_log`.\n  - Per-file: source dimensions → output dimensions, output size.\n  - Any render warnings (unsupported SVG features).\n\n## Notes\n\n- CairoSVG is LGPL-3.0; using it as a CLI dependency is fine, no licence contagion.\n- For multi-resolution batch (e.g. app icon set), call this skill multiple times with different `--scale` values, or wrap in a small loop.\n- If you need true SVG editing or advanced filter support, look at Inkscape CLI (`inkscape --export-type=png`). CairoSVG is the lighter-weight pure-Python option.\n- Animated SVG (SMIL) is not supported — CairoSVG renders the initial frame only.\n","# SVG to Raster\n\nRasterize SVG files to PNG \u002F PDF \u002F PS via [CairoSVG](https:\u002F\u002Fgithub.com\u002FKozea\u002FCairoSVG). Runs from the plugin's uv venv — no system Python pollution.\n\n## When to use\n\n- Convert logo \u002F icon \u002F diagram SVGs to PNG for use in slides, social, or pipelines that don't accept SVG.\n- Render an SVG at multiple resolutions (e.g. 1×, 2×, 3× for app assets).\n- Bake an SVG into a PDF for print or archival.\n\nDo **not** use this skill when:\n- Source is already raster — wrong direction; use `vectorize` instead.\n- You need to *edit* the SVG — CairoSVG is render-only.\n- The SVG uses advanced filters \u002F unsupported CSS — CairoSVG covers SVG 1.1 well but newer features may not render. Inspect output and warn the user.\n\n## Inputs\n\n1. **Input** — SVG file or directory. Required.\n2. **Format** — `png` (default), `pdf`, `ps`.\n3. **Output dir** — default: `\u003Cinput-dir>\u002F\u003Cformat>\u002F`. Never overwrites originals.\n4. **Scale** — multiplier on the SVG's intrinsic size. Default `1.0`. Use `2.0`, `3.0` for hi-DPI.\n5. **Width \u002F Height** — explicit pixel dimensions (overrides scale). Pass one to preserve aspect; both to force.\n6. **DPI** — for PDF\u002FPS output. Default `96`.\n7. **Background** — default transparent. Pass a CSS colour (`#ffffff`, `white`) for solid fill.\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 `cairosvg` is importable in the venv:\n\n   ```bash\n   \"$VENV_DIR\u002Fbin\u002Fpython\" -c \"import cairosvg\" 2>&1\n   ```\n\n   If missing → point at `image-ops-install-deps`. If it imports but raises a libcairo error, surface the system-lib install command (`sudo apt install libcairo2` \u002F `brew install cairo`).\n\n3. Enumerate `*.svg` inputs (case-insensitive). Skip non-SVG with note.\n\n4. Call CairoSVG via the venv Python (keeps the skill self-contained — no helper script needed). Pass the gathered options as arguments rather than string-substituting them into the source; the script below dispatches on format and builds the kwargs itself:\n\n   ```bash\n   \"$VENV_DIR\u002Fbin\u002Fpython\" - \"$input\" \"$output\" \"$fmt\" \\\n       \"$scale\" \"$width\" \"$height\" \"$dpi\" \"$background\" \u003C\u003C'PYEOF'\n   import sys, cairosvg\n\n   src, dst, fmt, scale, width, height, dpi, bg = sys.argv[1:9]\n\n   fn = {'png': cairosvg.svg2png,\n         'pdf': cairosvg.svg2pdf,\n         'ps':  cairosvg.svg2ps}[fmt]\n\n   kwargs = {'url': src, 'write_to': dst}\n   # Empty string means \"not supplied\" — omit rather than passing a default\n   # that would override CairoSVG's own.\n   if scale:  kwargs['scale'] = float(scale)\n   if width:  kwargs['output_width'] = int(width)\n   if height: kwargs['output_height'] = int(height)\n   if dpi:    kwargs['dpi'] = int(dpi)\n   if bg:     kwargs['background_color'] = bg\n\n   fn(**kwargs)\n   PYEOF\n   ```\n\n   Function map: `png → svg2png`, `pdf → svg2pdf`, `ps → svg2ps`.\n\n   Note that `output_width` \u002F `output_height` override `scale` in CairoSVG — do not pass both unless that is what the user asked for.\n\n5. Track file sizes and any render warnings (CairoSVG prints to stderr for unsupported features). Wrap each conversion so one bad file does not kill 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   Removing the partial `$output` matters — a truncated PNG left on disk reads as a successful conversion to the summary.\n\n## Output\n\n- Rasterized files at `\u003Coutput-dir>\u002F`.\n- Summary:\n  - Files processed \u002F failed, with the failed paths from `$failed_log`.\n  - Per-file: source dimensions → output dimensions, output size.\n  - Any render warnings (unsupported SVG features).\n\n## Notes\n\n- CairoSVG is LGPL-3.0; using it as a CLI dependency is fine, no licence contagion.\n- For multi-resolution batch (e.g. app icon set), call this skill multiple times with different `--scale` values, or wrap in a small loop.\n- If you need true SVG editing or advanced filter support, look at Inkscape CLI (`inkscape --export-type=png`). CairoSVG is the lighter-weight pure-Python option.\n- Animated SVG (SMIL) is not supported — CairoSVG renders the initial frame only.\n",{"name":5,"description":7,"allowed-tools":24},"Bash(command *), Bash(test *), Bash(find *), Bash(mkdir *), Bash(rm *), Bash(wc *), Read, Write","main","f846d9a97082ff30d613b55a085cef425d822473","plugins\u002Fimage-ops\u002Fskills\u002Fsvg-to-raster","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 svg-to-raster",{"tool":39,"command":40},"bunx","bunx skills add shotcowboystyle\u002Fag-skills --skill svg-to-raster",{"tool":42,"command":43},"pnpm","pnpm dlx skills add shotcowboystyle\u002Fag-skills --skill svg-to-raster","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fimage-ops\u002Fskills\u002Fsvg-to-raster\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",[],[]]