Draws custom SVG icons for a product, matching its visual style and any existing custom icons. Handles full icon sets or single icons in styles like outline, solid, duotone, sharp, rounded, pixel, hand-drawn, and more.
Ships in rony-kati. 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; scripts run unread.
An icon set holds together when every icon follows the same construction rules, and it belongs to its product when those rules come from the product's look. The work is: find those rules, write them down for yourself, apply every one of them to every icon, and check by looking at renders side by side.
When the request names the icons, that's the list. When it names only a style, the icons to draw are the ones the product shows now:
lucide-react, @heroicons/react, react-icons, @phosphor-icons/react…), icon components and .svg files, icon fonts, and characters or emoji standing in for icons.ICONS.md at the project root is the spec (step 8). Read it first, then render 3–5 of the icons it describes (step 5) and check they match. If they don't, tell the user what differs and ask which is right.
ICONS.md, but the project has its own icons: search for .svg files and inline <svg> icon components. Icons from an installed icon library only count if the user wants to match them. Read 3–5 and render them. Take the numbers from the files: viewBox, stroke widths, radii, opacities, how cut-outs are made. Don't eyeball what you can read.Fit the style to the product. Unless the rules come from the project's own icons, every trait the request leaves open comes from the UI the icons sit in. Read the values from the CSS and design tokens, not from screenshots:
A style entry's numbers are a starting point. What the request names wins; the product sets the rest.
Before drawing, settle a rule for each of these traits. They go in ICONS.md (step 8).
| Trait | What to settle |
|---|---|
| Canvas | viewBox, the live area inside it, the grid points snap to |
| View | straight on, or one projection for every icon (isometric, three-quarter) at a fixed angle |
| Construction | stroked paths, filled shapes, both, or cells on a pixel grid |
| Weight | line or wall thickness; uniform, or swelling and tapering |
| Ends and corners | caps (round, flat, angle-cut); corners (sharp, radius, squircle, chamfer); outer vs inner corners |
| Line quality | exact geometry, or drawn by hand: wobble, overshoot, breaks, doubled lines, and how much of each |
| Tones and layers | one color; or a secondary tone at an opacity, overlapping translucent layers, a shape behind, highlights, a depth edge |
| Surface | plain; or a texture (grain, halftone, hatching) drawn as dots and lines: its density and which parts carry it |
| Negative space | how details are made: drawn lines, cut-outs, gaps between separate pieces |
| Detail and proportion | how many elements one icon carries; true proportions or exaggerated |
| Modifiers | the badge added to a base icon (plus, check, cross, dot): its size, the corner it sits in, the gap cut around it |
| Signature | what every icon in the style has (a highlight on the same side, a blob behind, one ornament) |
Draw for the size the icons are shown at.
size props, the icons they replace. If the code doesn't say, ask where the icons will appear (a dense toolbar, a settings list, a feature grid, an empty state) and work out the size from the answer. Never ask about viewBoxes or grids.viewBox="0 0 N N". Edges then land on pixels. Pixel styles are the exception: one unit is one cell (references/styles.md).currentColor only. Secondary tones are currentColor at an opacity, unless the project themes them with a CSS variable.fill on the icon. Draw the body's outline as one closed path. The <svg> sets fill="none". The body's path has no fill attribute, so it inherits the icon's fill; every other element sets its own (fill="none" on lines, currentColor on solid parts), so open lines such as an arrowhead never fill. An icon with no body (an arrow, a cross) has nothing to fill. Skip this in styles whose body is already filled, and in hand-drawn styles whose lines cross or overshoot at corners: one closed outline would remove that. If such a product fills icons for a selected state, draw the fill as its own closed shape behind the strokes, with stroke="none" and no fill, so the same CSS fill turns it on.ICONS.md.ICONS.md has a pipeline, copy it into a temp folder and run each new icon's geometry through it unchanged. Otherwise write a throwaway Node script in a temp folder, install what it needs there, and print path data. Put the steps that every icon goes through in one function that takes an icon's geometry and returns its SVG; that function becomes the pipeline in ICONS.md. Libraries:
paper + paperjs-offset: boolean union, subtract and intersect, and turning a stroke into a filled outline (PaperOffset.offsetStroke(path, halfWidth, { cap, join })). For solid icons with cut-outs, single-shape icons, overlapping layers, pieces split by gaps. Call paper.setup(new paper.Size(w, h)) first.roughjs: hand-drawn lines from clean paths (rough.generator(), then toPaths(g.path(d, { roughness, bowing, seed }))). Same options and a fixed seed for the whole set.figma-squircle: superellipse corners (getSvgPath({ width, height, cornerRadius, cornerSmoothing })).svgpath: move, scale or round a path (place a shared part somewhere else, move to a new grid).You can't judge an icon from its source; look at it rendered. Any way to see the pixels works. Without one, render a sheet:
npm install --prefix <skill-dir>/scripts
node <skill-dir>/scripts/sheet.mjs <out.png> <display-px> [--dark] [--fill] <icon.svg>...
Each tile shows the icon large, then at the display size enlarged with hard pixels, then its file name. --dark draws light icons on a dark background; --fill turns the body fill on. A sheet holds up to 24 icons: put related icons on the same one (the arrows, the document icons) together with 2–3 of the icons they sit next to. Read the PNG. Check:
--fill), does only the body fill, and does the icon still read? Details drawn inside the body vanish when it fills in the line color; if the product fills that way, those icons need the solid twin (step 7).--dark)?Fix and render again until nothing on the list fails; the next sheet needs only the icons that failed, beside the same neighbors. Every icon you drew goes on a sheet before you report it. An icon made in code by mirroring or rotating one you looked at (arrow-right from arrow-left) needs no sheet of its own.
For a new style, or when picking between metaphors, show the options in the product: a static HTML page that copies the piece of UI the icons go into (its markup, CSS, real labels), with the icons inline and the candidates side by side. Draw 3–4 icons that differ (round, square, detailed, product-specific) for each candidate, ask which one, and give your recommendation first. Draw the rest only after they pick. A few icons added to an existing set need no preview.
The candidates are the choices the request left open. When it named the style down to its traits, they're variations on the rest (corner radius, live area, how much detail), not other styles. When it named a mood, they're the different looks the mood could mean.
currentColor works; <img> draws it black. If the bundler can't import SVGs as components, add its standard loader (vite-plugin-svgr, @svgr/webpack, vite-svg-loader) and say so.aria-label; icons next to text get aria-hidden="true".ICONS.mdA later session starts from ICONS.md at the project root and nothing else, so it must hold every rule needed to draw the next icon. Write it right before drawing the full set: at the end of step 2 when the rules come from the project's icons, or after the user picks in step 6 when the style is new. Update it whenever a rule changes, so that it matches the icons that ship. When the rules were measured from flattened files, say which values you couldn't recover. Record only what the SVG files and the code don't show:
Leave out what can be read elsewhere or worked out: details of single icons, values derived from others (ratios, px at each size), how icons are imported, the color classes used, and process steps or checklists, which this skill already covers. Write values and reasons, not instructions.
<mask>, <clipPath>, <pattern>, <filter> and gradient IDs repeat when an icon is inlined twice, and break when the first copy is hidden. Make cut-outs with compound paths and fill-rule="evenodd", or boolean the shapes with paper; make textures from real dots and lines.stroke-width in CSS or props; the gaps were drawn for the width in the file.What SKILL.md sets; muted values are Claude Code's defaults
/rony-kati:draw-iconsfrom rony-kati
rony-kati@kheskills is listed by hktitan/skills — review the source before installing
npx claudepluginhub hktitan/skills --plugin rony-kati3 skills in this plugin
/make-stickersDraw cute, hand-painted SVG stickers in one fixed style. Use when the user asks for stickers, doodles, or decorative accents for a site or app./shadcn-themeGenerate shadcn/ui OKLCH color themes for light and dark mode. Use when the user asks for a shadcn theme, palette, or color system.Other plugins' skills for the same job