Draws missing icons in a project's existing icon set by measuring the set's style (stroke, radius, grid) and generating new glyphs that match. Shows the complete set on a single sheet.
Ships in userinterface. 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.
This skill draws the icons a project's set is missing, in that set's own style. Every new glyph is measured against the whole set, then shown among its siblings on one sheet.
The spec is exact. The sheet measures it from every icon the set already has, and each new glyph follows it. A guessed stroke, radius or grid is a finding. The size range and the codepoints are exact too.
The set's own conventions win over the house form here: its icon API, its file format and whether its icons morph at all. The house values apply only where the set has none.
Building or redrawing a whole set belongs to iconset. Which glyphs to draw belongs to scope. Searching the set first belongs to reuse. Optical nudges belong to alignment. The curve, duration and reduced-motion fallback of any icon animation belong to motion. Accessible names belong to defaults. Visible labels belong to copy. Contrast belongs to color. Mirroring a directional icon in right-to-left layouts belongs to viewports.
A set built with iconset keeps its values in style.json and its decisions in concepts.md. A new glyph there reads its stroke, radius and cut from them and adds its own concepts.md row. Where the set's icons are scripts in src/, a new glyph is a script too, so the next global change moves it and the set's one build command ships it.
Run reuse first. Search the icon package, folder or inline map by the concept and two or three synonyms, since a search glyph may ship as MagnifyingGlassIcon. A second glyph for a concept the set already draws is icons-only-missing.
Add the glyph beside its siblings in the set. A new icon left in a feature file is icons-in-the-package.
A letter, a currency sign, a regional object or a gendered figure gets a neutral metaphor or one drawing per locale. A $ for Billing in a product that charges in euros is icons-local-metaphors.
Copy sheet.html to .icons/<set>/index.html, an ignored folder and never the source tree. Write sheet.js beside it with every existing icon, as its header comment shows, then open it. Mark logos and brand marks brand: true, so they are never measured or restyled.
The sheet derives the spec from every existing icon on the most common viewBox. It records the stroke, caps, joins, radii, grid step, padding, round overshoot and ink coverage per kind. Copy Spec gives icon-spec.md, saved beside the icons.
An agent driving the browser reads the same text from window.__icons.specMarkdown(), and the findings from window.__icons.findingsText(). Where icon-spec.md already exists, replace only its property table and keep its Voice table.
Drawing before icon-spec.md exists, or from a spec measured by hand, from a sample or from memory, is icons-measure-the-spec. With fewer than 3 icons on one viewBox, stop and ask for the reference set. A set that does not exist yet is built with iconset.
An existing icon off the spec shows as an outlier. List it in the report and leave it, because redrawing it is a separate ask under scope.
Put every anchor point on the spec's grid step, while curve handles stay free. Use currentColor. A coordinate off the step or a hex stroke is icons-on-the-grid.
Within the step, keep straight stroke edges on whole pixels. A 2 stroke centres on whole pixels and a 1 stroke on half pixels. A 1.5 stroke centres on a quarter, so its outer edge lands on a whole pixel. Snap at the drawing's native size only, because one drawing shown at 12, 16 and 20px has no single pixel grid.
Straight segments run at the angles the set already uses, such as 0°, 45° and 90°, unless the concept needs another, such as a bolt. Diagonals and 3D views share one angle across the set. A 40° arrow among 45° arrows is icons-set-angles.
A drawing holds from 0.75 to 1.25 times its grid, so a 16 grid serves 12–20px. Past that its stroke scales too, and a 1.25 stroke becomes 2.5 at 32px. A drawing shown outside its range is icons-size-range.
When the set ships a separate drawing per size, draw every size and run one sheet per size. Each size takes the stroke its own sheet measures, and icon-spec.md keeps one property table per size. The smaller drawing drops detail and the larger may add it, such as a keyhole on the 24 lock.
When the set's icons are only rects on whole pixels, the set is pixel-style. Draw each glyph as a text grid first, then convert that grid to rects. A pixel icon begun as smooth paths is icons-pixel-grid-first. Pixel sets skip step 7 and swap with the cross-fade in motion.
The voice is how the set builds a shape, which a stroke and a grid alone do not fix. The sheet measures what it can of it beside the spec.
Construction counts the icons that draw a free curve, one whose bend changes along its length, rather than lines, arcs and round corners. Corners gives the radius range of every rounded turn. Parts gives the most separate strokes an icon of each kind carries.
Build each new glyph the way the set builds its own. Where the set makes a cloud from straight segments with rounded joins, a cloud of free curves is off its voice. A free curve the set rarely draws, a corner outside its range or more parts than its kind carries is icons-hold-the-voice. A concept that cannot be drawn without a free curve, such as a wave, keeps it and the report says why.
A corner smaller than the range passes where the set's radius table gives it, such as a sharp star point in a set built with iconset.
Fill in the Voice table in icon-spec.md before drawing. Each line states one tendency and names two existing icons that show it, or a broken drawing beside the one that replaces it. Cover how shapes start, such as straight lines at 0°, 45° and 90° or circles and free curves.
Cover whether a shape that could stay open is closed, whether lines run on to the keyline and how far corners round. Cover which way an either-way composition faces and which way a slash cuts. Cover how caps and small details end and how much detail an icon carries. A voice written as adjectives, such as "clean and friendly", is icons-write-the-voice.
A new glyph never takes more attention than its neighbours. One more detailed, more decorative or cleverer than the set reads as another hand, even when it lints clean.
Every glyph fits one of 4 keylines: a square at the padding, a circle past it by the round overshoot, a wide rectangle and a tall rectangle. The sheet reads the rectangles from the widest and tallest existing icons. A diagonal glyph takes the circle. Grid in the icon dialog draws all 4 over the glyph.
Pick the keyline by the object's own proportions, so a pencil stays tall and a banknote stays wide. A tall object stretched to fill the square is icons-keyline-shapes.
A part the set already draws, such as a folder, a file, a badge or a slash, reuses that part's path data, size and position. A plus badge sits in the same corner at the same size every time. A folder redrawn for one new glyph is icons-same-parts.
A slash cuts flat through the glyph at the set's angle and draws no shadow line beside it.
Separate parts sit at least one stroke width apart, and never under 1px. Two strokes that merge into one blot at 16px are icons-open-gaps. A cut where a badge or slash clips a base shape keeps one width across the set, the cut in style.json where the set has one.
Measure every gap and cut from the ink. A round cap carries the ink half a stroke past an open end, so two 1.25 ends 2.5 apart leave 1.25 of white. A switch to round caps reopens every gap in the set.
Where 3 or more strokes meet, the overlap reads darker than any one stroke, and light strokes on Dark Tiles bloom further. End one converging stroke half a stroke width short of the junction. A clogged corner that reads heavy on Weight is icons-open-junctions.
A dot takes the diameter its role already has in the set: a dot ending a line, a dot in an ellipsis or a lone dot. Measure each role from the existing icons. A dot sized off its role is icons-dots-by-role.
Round shapes may pass the padding by the spec's round overshoot and no further. Arrows and play shapes take the nudge in alignment, drawn into the coordinates. A circle drawn at a square's size cites alignment-visual-weight, and a play icon centred on its box cites alignment-optical-glyph.
An icon takes the morph form only when it changes in place into another, such as play into pause, or the user asks for a morph. Mark it swaps: true in sheet.js, and the sheet checks the form on those alone. Morph form on any other icon cites iconset-morph-only-swaps.
Each marked icon is the same number of path elements, and each path is an absolute M followed by the same number of explicit C segments. The sheet sets both counts from the most complex marked icon and shows them as Morph Form. Pad a shorter path with zero-length segments at its end.
Two icons that are one shape turned, such as back and forward, share one drawing. The swap rotates the whole icon instead of moving points, and the sheet marks the pair Spins.
A straight segment is a cubic whose handles sit on its own ends. Only the morph form ends a closed stroke on its start point instead of Z. Every other icon closes with Z, since an unclosed seam has no join and butt or square caps leave a notch there.
An unused path collapses to one point on another stroke, where it stays hidden. Each path starts at its topmost anchor, leftmost on a tie. Order the paths longest first, so large strokes morph into large strokes. To morph into an existing icon, add that icon's morph form as a new icon with the same ink.
For morph icons only, turn off the optimiser's mergePaths, convertShapeToPath and convertPathData. The last rewrites absolute C into relative and shorthand commands. A circle, rect, line, Z, relative command or path count off the morph form is icons-morph-form.
Outline and filled variants share one skeleton. The filled form's edge sits where the outline's stroke ended, so a swap on selection keeps the size. A lens, ring or frame stays open. Inner detail becomes a counter at least 1px wide, and narrower counters are dropped. A duo back fill sits under the stroke, never past it, and its outline closes any gap the fill would leak through. A filled icon redrawn from scratch is icons-one-skeleton. A fill cannot morph, so outline and filled swap with the cross-fade in motion.
The sheet lints each new icon for viewBox, stroke, caps where ends are open, joins where corners exist, grid, padding, radii and more than 3 decimals. It also rejects transforms, ids, inline styles, masks and clip paths. A class passes, since pasted markup often carries one.
Ink coverage compares outline with outline and filled with filled, inside the range the set already spans. A kind the set lacks shows Not Verified and is judged on the sheet. Each miss is icons-lint-the-spec. Each new icon's free curves, corner radii and parts are checked against the voice.
The sheet sorts by name, so new glyphs sit among old ones, and badges each new one. Style, Size and Dark Tiles at the top set what the grid shows.
Pixels rasterises each icon at its native size, one device pixel per unit, and enlarges it three times. Soft or doubled edges there are a grid problem. Weight blurs the 48px icons by 2px, so a new glyph that reads darker or lighter than its neighbours is too dense or too thin.
Context sets each glyph at its shipped size in a list row, a button and a sentence of 13px text. A glyph that sits high or reads heavy beside its label shows there first.
Morph plays each icon marked swaps into the next of its kind on the curve in motion. A morph that twists, crosses itself or flashes a dot has its paths out of order. Clicking an icon opens its dialog, whose Morph tab previews any chain of icons, pasted ones included. A converted preview is the sheet's guess, not the form that ships. Prompts copies the fix, the redraw or the morph request for the agent to apply.
A sheet written from scratch, or icons checked one at a time, is icons-one-sheet. Fix every finding and reopen it until Findings is empty. The only exception is a free curve the concept needs.
Generate components on the project's existing icon API, including its props and file shape. Name each glyph by what it draws, with the siblings' casing and variant suffix, such as LockFillIcon beside LockIcon. Keep each path its own element, so a caller can animate d or draw the stroke on. A one-off component with its own props, or a decorative icon with no aria-hidden, is icons-match-the-api.
When each size has its own drawing, the size prop picks that drawing and never scales another. Its type lists only the sizes drawn, such as 12 | 16.
In a native app whose icons are custom symbols, a new glyph ships in the same symbol template as its siblings, with every source the template interpolates from.
When the set ships as an icon font, a new glyph takes the next unused codepoint. A redrawn glyph keeps its old codepoint, and a retired codepoint never goes to another glyph. A moved or reused codepoint is icons-keep-codepoints. Outline strokes in the font build, never in the source the sheet reads.
Add a hover, active or swap animation only when the user asks, and run it through motion. An icon that is the only content of a control cites defaults-name-icon-buttons. Contrast cites color-ui-contrast.
Context on the sheet uses its own rows, not the project's type, spacing or colour. Render each new glyph in the project's own row beside its label, at its shipped size, in both themes. Then view it at 100% zoom on a phone, where 16px is 16px. A glyph approved only on the sheet or zoomed in is icons-in-context. Without a phone, report Not verified on device.
Blur that row by 1px. A new glyph that blurs into the shape of a neighbour in the same bar gets a different silhouette. One told apart only by an inner detail is icons-distinct-in-a-row.
Every check is a pair. The broken line sits beside the line that replaces it.
| Rule | Broken | Replacement | Severity |
|---|---|---|---|
icons-only-missing | A new SearchIcon when the set has MagnifyingGlassIcon | The set's MagnifyingGlassIcon | HIGH |
icons-in-the-package | ReceiptIcon in a feature folder | ReceiptIcon beside its siblings in the set | MEDIUM |
icons-local-metaphors | A $ on Billing in a product that charges in euros | A banknote with no sign | MEDIUM |
icons-measure-the-spec | A spec measured by hand from 3 icons | icon-spec.md copied from the sheet, then the path | HIGH |
icons-on-the-grid | M5 2.3 with stroke="#111" on a 0.25 step | M5 2.25 with stroke="currentColor" | MEDIUM |
icons-set-angles | A 40° arrow among 45° arrows | The arrow at 45° | MEDIUM |
icons-size-range | The 16 drawing scaled to 28px | The 24 drawing at 28px | MEDIUM |
icons-pixel-grid-first | A pixel glyph drawn as smooth paths | A text grid converted to rects | MEDIUM |
icons-hold-the-voice | A cloud of free curves in a set built from lines and round corners | The cloud from straight segments with rounded joins | MEDIUM |
icons-write-the-voice | "Voice: clean and friendly" | "Open or closed: closed, as in FolderIcon and BoxIcon" | MEDIUM |
icons-keyline-shapes | A pencil widened to fill the square | The pencil on the tall keyline | MEDIUM |
icons-same-parts | A folder redrawn for FolderPlusIcon | The set's folder path with its plus badge | MEDIUM |
icons-open-gaps | Two 1.5 strokes 0.5 apart | The strokes 1.5 apart | MEDIUM |
icons-open-junctions | Three strokes meeting at one point | One stroke ended half a stroke width short | LOW |
icons-dots-by-role | An ellipsis dot 1.5 across where the set's are 2 | The ellipsis dot 2 across | LOW |
icons-morph-form | <circle r="4.5" /> in a search icon marked swaps: true | 3 paths, each M and 5 C segments | MEDIUM |
icons-one-skeleton | A filled icon drawn as a new path | The outline's paths filled | MEDIUM |
icons-lint-the-spec | transform="translate(0.5 0.5)" on a 2px stroke | The spec's stroke and padding, no transform | MEDIUM |
icons-one-sheet | The new icon screenshotted alone at 24px | sheet.html copied, only sheet.js written | MEDIUM |
icons-match-the-api | A feature-file svg with its own size prop | The project's icon component, aria-hidden when decorative | MEDIUM |
icons-keep-codepoints | arrow-up moved from U+E001 to U+E0F3 | The redrawn arrow-up at U+E001 | HIGH |
icons-in-context | A glyph approved on the sheet at 300% zoom | The glyph in its real row beside its label, at 100% on a phone | MEDIUM |
icons-distinct-in-a-row | Inbox and Archive told apart by one line inside the tray | Archive redrawn as a box with a lid | MEDIUM |
Severity. Each rule's level is in its pair row. HIGH breaks behaviour or loses work, MEDIUM is visible and inconsistent and LOW is polish. When two levels fit, take the higher one and say why.
Format. One finding per root cause:
file:line - [rule-id] what is wrong
Then a Rule | Count | Severity summary and the existing outliers as a separate list. Block when any HIGH remains, Approve otherwise. When the miss is the work and not a file, cite request 2 - [rule-id]. Mark a sheet you could not render as Not verified.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/userinterface:iconsfrom userinterface
npx claudepluginhub raphaelsalaja/skills --plugin userinterface35 skills in this plugin
/alignmentMeasures a running page for edges, gaps, centring and radii that miss by a pixel or two, then judges visual weight and returns a numbered report with proof./animateFinds where content teleports between states and adds the smallest motion that explains each change, gated by how often it happens./auditReviews a change, a session or a whole codebase against every skill in this collection and returns one ranked, numbered report./avatarDraws any object as a flat character with two capsule eyes, then animates its whole body so it glances, blinks, breathes, follows the pointer and falls asleep.Other plugins' skills for the same job