[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74XKK6B0093R1YSB4FS7AFK":3,"skill-same:01M74XKK6B0093R1YSB4FS7AFK":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M74XKK6B0093R1YSB4FS7AFK","pillow-favicon-set-no-rasterizer",null,"Errors like \"rsvg-convert: command not found\", \"convert: command not found\" (ImageMagick), \"No module named 'cairosvg'\", or no Inkscape on PATH when trying to turn an SVG mark into favicon.ico \u002F apple-touch-icon.png \u002F og-card.png. Use when a site needs a raster favicon set (site-og-favicon-verify's checklist) and installing a full SVG rasterizer is unavailable, heavy, or blocked, and the mark is a simple geometric shape + letter\u002Fglyph (most lettermark logos qualify).","abhijitbansal\u002Fclaude-skills","abhijitbansal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F271802621?v=4","01M74XA5M33XYNJ2D2TJDS7W9E","01M74XA5MQ8GMWJW10ZJ4V0NVG",1,"MIT","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fios-dev\u002Fskills\u002Fpillow-favicon-set-no-rasterizer\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: pillow-favicon-set-no-rasterizer\ndescription: \"Errors like \\\"rsvg-convert: command not found\\\", \\\"convert: command not found\\\" (ImageMagick), \\\"No module named 'cairosvg'\\\", or no Inkscape on PATH when trying to turn an SVG mark into favicon.ico \u002F apple-touch-icon.png \u002F og-card.png. Use when a site needs a raster favicon set (site-og-favicon-verify's checklist) and installing a full SVG rasterizer is unavailable, heavy, or blocked, and the mark is a simple geometric shape + letter\u002Fglyph (most lettermark logos qualify).\"\n---\n\n# Generate a raster favicon set without an SVG rasterizer\n\n## Symptom\nYou have an SVG logo\u002Fmark and need the raster fallback set — `favicon.ico`,\n`apple-touch-icon.png`, maybe `og-card.png` — but every standard SVG→PNG path\nis unavailable on the machine:\n\n```\n$ rsvg-convert -w 512 -h 512 logo.svg -o logo.png\nzsh: command not found: rsvg-convert\n\n$ convert logo.svg -resize 512x512 logo.png\nzsh: command not found: convert\n\n$ python -c \"import cairosvg\"\nModuleNotFoundError: No module named 'cairosvg'\n```\n\nInkscape isn't installed either, and pulling in a full SVG renderer (system\npackage or a heavy Python wheel) just to emit a handful of static PNGs once\nfeels disproportionate — especially in CI or a sandboxed dev container where\nyou can't `brew install` anything.\n\n## Root cause\nSVG rasterization needs a real rendering engine (librsvg, ImageMagick's\ndelegate, a cairo build, Inkscape) — none of which ship by default on macOS\nor a minimal Linux image, and installing one is a system-level dependency\njust to produce icons that, once generated, never need to change again.\n\nBut most favicon marks aren't complex vector art — they're a filled shape\n(rounded rect, circle) plus one or two characters of text. That's exactly\nwhat Pillow's `ImageDraw` primitives + `ImageFont` can render directly,\nwith zero SVG parsing involved.\n\n## Fix\nDon't rasterize the SVG — **redraw the mark directly in Pillow** at a large\nmaster size, then downscale\u002Fsave every target format from that one master.\nThis only works when the mark is geometric-shape + text; a hand-drawn or\ngradient-rich SVG still needs a real rasterizer.\n\n```python\nfrom PIL import Image, ImageDraw, ImageFont\n\n# 1. Draw at a large master size (512) so downscaling stays crisp.\nimg = Image.new(\"RGBA\", (512, 512), (0, 0, 0, 0))\nd = ImageDraw.Draw(img)\nd.rounded_rectangle([0, 0, 511, 511], radius=112, fill=(180, 84, 46))\n\n# Font path is a parameter: the default below is macOS-only. On Linux\u002FCI pass\n# any .ttf (e.g. DejaVuSans-Bold.ttf); if it can't be loaded, fall back to\n# Pillow's bundled font (load_default(size=...) needs Pillow >= 10.1).\nFONT_PATH = \"\u002FSystem\u002FLibrary\u002FFonts\u002FSupplemental\u002FGeorgia.ttf\"\nFONT_SIZE = 358\ntry:\n    font = ImageFont.truetype(FONT_PATH, FONT_SIZE)\nexcept OSError:\n    font = ImageFont.load_default(size=FONT_SIZE)\nbb = d.textbbox((0, 0), \"S\", font=font)\nw, h = bb[2] - bb[0], bb[3] - bb[1]\nd.text(((512 - w) \u002F 2 - bb[0], (512 - h) \u002F 2 - bb[1]), \"S\",\n        font=font, fill=(253, 253, 251))\n\n# 2. favicon.ico: save the 512 master directly. Pillow downscales it into each\n#    requested size. Do NOT pre-resize to 32x32 first — Pillow drops any ICO\n#    size larger than the source image, so the 48x48 entry would silently vanish.\nimg.save(\"favicon.ico\", sizes=[(16, 16), (32, 32), (48, 48)])\n\n# 3. apple-touch-icon.png: 180x180, FULL-BLEED + OPAQUE.\n#    iOS applies its own rounded-corner mask — a transparent or\n#    already-rounded source shows as a square-with-a-hole on the home screen.\ntouch = Image.new(\"RGB\", (512, 512), (180, 84, 46))\ntouch.paste(img, (0, 0), img)  # composite over opaque background, drop alpha\ntouch.resize((180, 180)).save(\"apple-touch-icon.png\")\n```\n\nThen wire the full set into the page head (root vs nested pages need the\nrelative prefix adjusted):\n\n```html\n\u003Clink rel=\"icon\" href=\"\u002Ffavicon.svg\" type=\"image\u002Fsvg+xml\">\n\u003Clink rel=\"icon\" href=\"\u002Ffavicon.ico\" sizes=\"any\">\n\u003Clink rel=\"apple-touch-icon\" href=\"\u002Fapple-touch-icon.png\">\n\u003Clink rel=\"manifest\" href=\"\u002Fsite.webmanifest\">\n\u003Cmeta name=\"theme-color\" content=\"#b4542e\">\n```\n\nKeep the generator as a **dev-only script** (`uv add --dev pillow` or\nequivalent), not a runtime dependency, and **commit the generated raster\nfiles** — they're build artifacts of a one-off, not something regenerated on\nevery deploy. Re-running the script is how you handle a rebrand.\n\n## Evidence\nUsed on a static marketing site (a private document-scanner app's site skeleton) whose\nfavicon was a single letter on a rounded-square tile — SVG existed, but the\ndev container had no `rsvg-convert`\u002FImageMagick\u002Fcairosvg\u002FInkscape and\ninstalling one wasn't worth it for a handful of PNGs. Same pattern applies\nto any lettermark or simple-geometric favicon across the portfolio's site\nskeletons.\n\n## Related skills\n- `site-og-favicon-verify` — the checklist\u002Flint for what a *correct* favicon\n  + og:image + CSP setup looks like (sizes, absolute URLs, opaque\n  apple-touch-icon). This skill is the how-to for actually producing the\n  raster files that checklist expects, specifically when no SVG rasterizer\n  is on hand.\n- `site-pages-deploy-kit` — the site skeleton and `verify-site.sh` that\n  checks the favicon set this skill generates; also references an idempotent\n  \"generate everything from one master image\" script pattern this skill\n  implements without a rasterizer dependency.\n- `alternate-app-icons` — iOS *app* icon (Home Screen, asset catalog,\n  `CFBundleAlternateIcons`) generation and switching; unrelated to web\n  favicons despite the naming overlap — don't conflate the two icon systems.\n","# Generate a raster favicon set without an SVG rasterizer\n\n## Symptom\nYou have an SVG logo\u002Fmark and need the raster fallback set — `favicon.ico`,\n`apple-touch-icon.png`, maybe `og-card.png` — but every standard SVG→PNG path\nis unavailable on the machine:\n\n```\n$ rsvg-convert -w 512 -h 512 logo.svg -o logo.png\nzsh: command not found: rsvg-convert\n\n$ convert logo.svg -resize 512x512 logo.png\nzsh: command not found: convert\n\n$ python -c \"import cairosvg\"\nModuleNotFoundError: No module named 'cairosvg'\n```\n\nInkscape isn't installed either, and pulling in a full SVG renderer (system\npackage or a heavy Python wheel) just to emit a handful of static PNGs once\nfeels disproportionate — especially in CI or a sandboxed dev container where\nyou can't `brew install` anything.\n\n## Root cause\nSVG rasterization needs a real rendering engine (librsvg, ImageMagick's\ndelegate, a cairo build, Inkscape) — none of which ship by default on macOS\nor a minimal Linux image, and installing one is a system-level dependency\njust to produce icons that, once generated, never need to change again.\n\nBut most favicon marks aren't complex vector art — they're a filled shape\n(rounded rect, circle) plus one or two characters of text. That's exactly\nwhat Pillow's `ImageDraw` primitives + `ImageFont` can render directly,\nwith zero SVG parsing involved.\n\n## Fix\nDon't rasterize the SVG — **redraw the mark directly in Pillow** at a large\nmaster size, then downscale\u002Fsave every target format from that one master.\nThis only works when the mark is geometric-shape + text; a hand-drawn or\ngradient-rich SVG still needs a real rasterizer.\n\n```python\nfrom PIL import Image, ImageDraw, ImageFont\n\n# 1. Draw at a large master size (512) so downscaling stays crisp.\nimg = Image.new(\"RGBA\", (512, 512), (0, 0, 0, 0))\nd = ImageDraw.Draw(img)\nd.rounded_rectangle([0, 0, 511, 511], radius=112, fill=(180, 84, 46))\n\n# Font path is a parameter: the default below is macOS-only. On Linux\u002FCI pass\n# any .ttf (e.g. DejaVuSans-Bold.ttf); if it can't be loaded, fall back to\n# Pillow's bundled font (load_default(size=...) needs Pillow >= 10.1).\nFONT_PATH = \"\u002FSystem\u002FLibrary\u002FFonts\u002FSupplemental\u002FGeorgia.ttf\"\nFONT_SIZE = 358\ntry:\n    font = ImageFont.truetype(FONT_PATH, FONT_SIZE)\nexcept OSError:\n    font = ImageFont.load_default(size=FONT_SIZE)\nbb = d.textbbox((0, 0), \"S\", font=font)\nw, h = bb[2] - bb[0], bb[3] - bb[1]\nd.text(((512 - w) \u002F 2 - bb[0], (512 - h) \u002F 2 - bb[1]), \"S\",\n        font=font, fill=(253, 253, 251))\n\n# 2. favicon.ico: save the 512 master directly. Pillow downscales it into each\n#    requested size. Do NOT pre-resize to 32x32 first — Pillow drops any ICO\n#    size larger than the source image, so the 48x48 entry would silently vanish.\nimg.save(\"favicon.ico\", sizes=[(16, 16), (32, 32), (48, 48)])\n\n# 3. apple-touch-icon.png: 180x180, FULL-BLEED + OPAQUE.\n#    iOS applies its own rounded-corner mask — a transparent or\n#    already-rounded source shows as a square-with-a-hole on the home screen.\ntouch = Image.new(\"RGB\", (512, 512), (180, 84, 46))\ntouch.paste(img, (0, 0), img)  # composite over opaque background, drop alpha\ntouch.resize((180, 180)).save(\"apple-touch-icon.png\")\n```\n\nThen wire the full set into the page head (root vs nested pages need the\nrelative prefix adjusted):\n\n```html\n\u003Clink rel=\"icon\" href=\"\u002Ffavicon.svg\" type=\"image\u002Fsvg+xml\">\n\u003Clink rel=\"icon\" href=\"\u002Ffavicon.ico\" sizes=\"any\">\n\u003Clink rel=\"apple-touch-icon\" href=\"\u002Fapple-touch-icon.png\">\n\u003Clink rel=\"manifest\" href=\"\u002Fsite.webmanifest\">\n\u003Cmeta name=\"theme-color\" content=\"#b4542e\">\n```\n\nKeep the generator as a **dev-only script** (`uv add --dev pillow` or\nequivalent), not a runtime dependency, and **commit the generated raster\nfiles** — they're build artifacts of a one-off, not something regenerated on\nevery deploy. Re-running the script is how you handle a rebrand.\n\n## Evidence\nUsed on a static marketing site (a private document-scanner app's site skeleton) whose\nfavicon was a single letter on a rounded-square tile — SVG existed, but the\ndev container had no `rsvg-convert`\u002FImageMagick\u002Fcairosvg\u002FInkscape and\ninstalling one wasn't worth it for a handful of PNGs. Same pattern applies\nto any lettermark or simple-geometric favicon across the portfolio's site\nskeletons.\n\n## Related skills\n- `site-og-favicon-verify` — the checklist\u002Flint for what a *correct* favicon\n  + og:image + CSP setup looks like (sizes, absolute URLs, opaque\n  apple-touch-icon). This skill is the how-to for actually producing the\n  raster files that checklist expects, specifically when no SVG rasterizer\n  is on hand.\n- `site-pages-deploy-kit` — the site skeleton and `verify-site.sh` that\n  checks the favicon set this skill generates; also references an idempotent\n  \"generate everything from one master image\" script pattern this skill\n  implements without a rasterizer dependency.\n- `alternate-app-icons` — iOS *app* icon (Home Screen, asset catalog,\n  `CFBundleAlternateIcons`) generation and switching; unrelated to web\n  favicons despite the naming overlap — don't conflate the two icon systems.\n",{"name":5,"description":7},"main","153711dd9432743d97f0b33b080ada5798ea623c","plugins\u002Fios-dev\u002Fskills\u002Fpillow-favicon-set-no-rasterizer","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills","https:\u002F\u002Fgithub.com\u002Fabhijitbansal","2026-11-07 12:59:51",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add abhijitbansal\u002Fclaude-skills --skill pillow-favicon-set-no-rasterizer",{"tool":35,"command":36},"bunx","bunx skills add abhijitbansal\u002Fclaude-skills --skill pillow-favicon-set-no-rasterizer",{"tool":38,"command":39},"pnpm","pnpm dlx skills add abhijitbansal\u002Fclaude-skills --skill pillow-favicon-set-no-rasterizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fios-dev\u002Fskills\u002Fpillow-favicon-set-no-rasterizer\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M74XTV2V7GZM8FDBXQZZ74VX","second-wind","Orchestrate long unattended Claude Code runs across multiple repos with the wind CLI. Use when the user wants to run Claude Code overnight, resume sessions after the 5-hour usage limit, run Claude in many repos at once via tmux, or says \"set up second wind\", \"wind up\", \"overnight run\", \"resume after limit\", \"usage limit orchestrator\".","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fsecond-wind\u002Fskills\u002Fsecond-wind\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M74XTPGN1HDQSKGCZZX0AZPC","structured-output-adaptive-thinking-token-bloat","A Claude API call using output_config.format (json_schema structured outputs) with thinking:{type:\"adaptive\"} burns most of its output budget on thinking (observed ~21k of ~24k tokens) without improving JSON quality, making the run up to ~5x more expensive than the same call with thinking omitted — use when calling the Messages API with a json_schema output format for extraction, ranking, classification, or summarization tasks, or when a schema-constrained call's usage.output_tokens is far larger than the returned JSON.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Fstructured-output-adaptive-thinking-token-bloat\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M74XTKTRHAMC2JFHQ1P1E6GR","review","Apply a code-review lens to a diff, branch, or file — find correctness bugs, security issues, and quality problems, ranked by severity, with a concrete fix for each. Use when the user says \"review this\", \"review my diff\", \"check this PR\", \"look this over before I commit\", or \"is this safe\". Skip when the user wants the code written, not reviewed.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M74XTGGCW7GWDDHPEMJQC7Y1","refresh","Rebuild the prompt-craft command registry and usage profile, and print a summary of installed commands and your personalized recommendations. Use when you install or update plugins and want the advisor to pick them up immediately, or say \"refresh prompt-craft\", \"rebuild the command registry\".","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Frefresh\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M74XTCNGNR4G19P3Z95KTHQJ","refactor","Apply a refactoring lens — restructure code without changing behavior, guarded by tests that pass before and after. Use when the user says \"refactor\", \"clean this up\", \"extract this\", \"simplify this\", \"reduce duplication\", or \"make this readable\" on existing working code. Skip when the change is meant to alter behavior (that's a feature or a fix).","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Frefactor\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M74XT9FKXN3N106G7Q3X56XR","plan","Decompose a non-trivial task into an explicit, tracked plan with goals and per-step acceptance criteria before writing code. Use when the user says \"plan this\", \"break this down\", \"what's the plan\", or asks for a multi-step feature\u002Frefactor that touches more than one file. Pairs with plan mode. Skip for single-edit changes that need no decomposition.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Fplan\u002FSKILL.md",[],[]]