/bm-skills:bm-favicon-creatorfrom Builder Methods Skills
Generates a complete favicon set (SVG, PNGs, .ico, Apple touch icon) from a Lucide icon or SVG, and wires meta tags into the project layout.
Ships in Builder Methods Skills. 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.
None: SKILL.md is the whole skill.
Generate a complete, cross-device favicon set and wire it into the project's layout so it shows up correctly in every browser, tab, home screen, and pinned shortcut.
The favicon is always rendered as a square with tight rounded corners, with the chosen icon centered inside on a solid background color.
Requires rsvg-convert and ImageMagick's magick on the system. If either is missing, stop and ask the user to install them (brew install librsvg imagemagick). Do not attempt a workaround.
Ask each question in order. Wait for an answer before moving on. Do not assume defaults beyond what is specified.
Ask: "What icon do you want to use? You can:
rocket, sparkles, book-open) — this is the default.svg file in the repoResolve the answer:
stroke="currentColor" and fill="none". Always set stroke-width="1.5" on the root <svg> element (override whatever value Lucide ships with). Do not redraw, simplify, or recreate the paths — use the exact paths from Lucide.viewBox / intrinsic size. If there is no viewBox, derive one from width/height.Ask: "What background color should the favicon square use? (hex, e.g. #FCF8F2)"
This fills the rounded square and also becomes the page theme-color meta tag value.
Ask: "What color should the icon itself be? (hex, e.g. #22D3EE)"
For Lucide / stroke-based icons, this becomes the stroke color. For filled icons, this becomes the fill color.
Confirm both colors back to the user before generating.
Find where favicon <link> tags should live. First, read CLAUDE.md and/or AGENTS.md if they exist — they may declare a convention for where head/meta tags go.
If no convention is declared, check in this order:
app/layout.tsx / app/layout.jsx — favicons are typically handled via file conventions (app/icon.*, app/apple-icon.*) and/or a metadata exportpages/_document.tsx / pages/_app.tsxapp/views/layouts/application.html.erb (or .haml, .slim)index.html or app/views/layouts/application.html.erbsrc/app.htmlsrc/layouts/*.astro or individual page layoutsindex.htmlIf you can't find the layout, grep for rel="icon" or apple-touch-icon across the repo. If still ambiguous, ask the user.
Always look for a public/ folder first. Most modern frameworks use it, and the four canonical files (favicon.ico, icon.png, icon.svg, apple-touch-icon.png) must always land there if it exists.
If the project also has another conventional asset location (e.g. Next.js app router's app/ directory for file-convention icons), write there in addition — but public/ is always required.
If neither exists, ask the user where assets should go, then ensure a public/ equivalent.
Write public/icon.svg as a square with tight rounded corners, the background color filling the square, and the source icon centered inside. After writing it, also copy the same file to public/favicon.svg (some browsers and link-preview crawlers look for favicon.svg at the site root by name).
Canvas: 80 × 80. Corner radius: 16 (tight rounded corners — 20% of the canvas).
The inner icon should occupy ~60% of the canvas (safe zone for iOS rounded corner masking). Round offsets to whole pixels.
Stroke-based icon (Lucide, etc.) — keep fill="none" and apply the icon color via stroke. Always use stroke-width="1.5" for Lucide:
<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg">
<rect width="80" height="80" rx="16" fill="#FCF8F2"/>
<g transform="translate(Xoff Yoff) scale(N)" stroke="#22D3EE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none">
<!-- exact Lucide paths here, fill/stroke attributes stripped from individual paths -->
</g>
</svg>
Filled icon — apply the icon color via fill:
<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg">
<rect width="80" height="80" rx="16" fill="#FCF8F2"/>
<g transform="translate(Xoff Yoff) scale(N)" fill="#22D3EE">
<!-- source paths, individual fill attributes removed -->
</g>
</svg>
Centering math — if the source viewBox is W × H, target inner size T = 48 (60% of 80):
N = T / max(W, H)Xoff = (80 - W * N) / 2Yoff = (80 - H * N) / 2Write a second, scaled-up SVG to /tmp/favicon-source.svg — same composition, but at 512 × 512 with corner radius 102 (~20% of 512). This is the source for all PNGs and the ICO.
<svg width="512" height="512" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
<rect width="512" height="512" rx="102" fill="#FCF8F2"/>
<g transform="translate(Xoff Yoff) scale(N)" stroke="#22D3EE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none">
<!-- source paths -->
</g>
</svg>
For Lucide, multiply stroke-width by N if needed so it renders proportionally at large sizes, OR keep stroke-width="1.5" outside the transform and apply vector-effect="non-scaling-stroke" on the paths. Simpler: keep the icon's stroke crisp by scaling its stroke-width with N (e.g. stroke-width="${1.5 * N}").
Inner-icon target: T = 308 (~60% of 512). Same offset math as Step 4.
Run from the project root, with $PUBLIC set to the public directory (usually public):
rsvg-convert -w 512 -h 512 /tmp/favicon-source.svg -o $PUBLIC/icon.png
rsvg-convert -w 192 -h 192 /tmp/favicon-source.svg -o $PUBLIC/icon-192.png
rsvg-convert -w 180 -h 180 /tmp/favicon-source.svg -o $PUBLIC/apple-touch-icon.png
rsvg-convert -w 48 -h 48 /tmp/favicon-source.svg -o /tmp/fav-48.png
rsvg-convert -w 32 -h 32 /tmp/favicon-source.svg -o /tmp/fav-32.png
rsvg-convert -w 16 -h 16 /tmp/favicon-source.svg -o /tmp/fav-16.png
magick /tmp/fav-16.png /tmp/fav-32.png /tmp/fav-48.png $PUBLIC/favicon.ico
This produces, in public/:
favicon.ico — multi-resolution 16/32/48 for Windows/legacyicon.svg and favicon.svg — the rounded square mark for modern browser tabsicon.png — 512×512 PNGicon-192.png — 192×192 PNG for Androidapple-touch-icon.png — 180×180 PNG for iOS home screenEdit the layout file. Inside <head>, ensure these tags exist (add or replace — do not duplicate):
<meta name="theme-color" content="#FCF8F2">
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="icon" href="/icon-192.png" type="image/png" sizes="192x192">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
Notes:
theme-color uses the background color from Step 1.2.favicon.ico gets sizes="32x32" (not any) so modern browsers prefer the SVG.<meta name="theme-color"> or any <link rel="icon"> / apple-touch-icon, replace them — don't stack duplicates.app/icon.svg, app/icon.png, app/apple-icon.png, app/favicon.ico (rename accordingly) and let Next emit the tags. Still write the same four files to public/ as well. Only hand-write <link> tags if the project already does.Summarize for the user:
manifest.json unless the project already has one.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 plugins ship this exact skill · first indexed Jul 20, 2026
4 skills in this plugin
/bm-design-systemGuides you through creating and implementing a design system for your application./bm-prd-creatorUse when the user wants to create a Product Requirements Document (PRD) for a new app, feature, or project. Guides the user through a structured interview and produces a complete PRD (as a visual single-file HTML page, a markdown file, or both) along with ready-to-build milestones./bm-skill-builderBuild a new agent skill (or restructure an existing one) following Builder Methods conventions. Use when the user wants to create a skill, turn a repeatable process into a skill, or restructure a skill that has outgrown its shape — "create a skill", "make this a skill", "turn my proposal process into a skill", "restructure this skill".npx claudepluginhub buildermethods/bm-skills --plugin bm-skillsOther plugins' skills for the same job