Agent skill UI design
Icons
Develop illustrations, icons or graphic assets for web pages.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add raphaelsalaja/skills --skill icons --agent claude-code --yesCheck this file in your project.claude/skills/icons/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add raphaelsalaja/skills --skill iconsSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Existing SVG icons, at least three eligible reference icons on the same viewBox, and a browser.
View operation manualWhat this skill helps with
- Develop illustrations, icons or graphic assets for web pages.
Good for
- Illustration and icons
- Publisher
- Raphael Salaja
- Shipped tools or recipes
- sheet.html
- Result
- A glyph in the existing component API and a sheet with its measured spec and findings.
- Skill name
icons- Repository
raphaelsalaja/skills
Common pitfall
Avoid this prompt
Draw a generic icon and add it directly to the settings page.
The result can duplicate an existing concept and drift from the set’s stroke, grid, or component conventions.
Use these steps
- Search synonyms and use the shipped sheet to record the reference geometry.
- Use the measured viewBox and visual conventions and keep the project’s existing icon API.
- Use the built-in checks, then inspect the new glyph beside real text at its shipped size.
Hands-on walkthrough
Derive the icon spec from the actual set, draw the missing symbol, and verify it on the sheet and in the interface.
Derive the icon spec from the actual set, draw the missing symbol, and verify it on the sheet and in the interface.
Measure the icon set
Search synonyms and use the shipped sheet to record the reference geometry.
Prompt · Step 1Use the Icons skill to add [concept] to [set]. Search related names before drawing. Copy the installed sheet.html to an ignored .icons/<set>/index.html and build sheet.js from all shipped icons per its window.sheet header. Mark logo artwork as brand: true. Open the sheet and read window.__icons.specMarkdown(). Save the measured property table in icon-spec.md, preserving any existing Voice table.Draw on the measured grid
Use the measured viewBox and visual conventions and keep the project’s existing icon API.
Prompt · Step 2Draw only the missing icon. Match the set’s viewBox, grid step, stroke width, caps, and joins. Use currentColor and the package’s existing export, naming, and component props. Insert the drawing into sheet.js with new: true and note any deliberate free curve required by the concept.Check the sheet and the real control
Use the built-in checks, then inspect the new glyph beside real text at its shipped size.
- The measured spec covers the reference set and the candidate uses the same API.
- Sheet findings and shipped-size interface appearance are checked.
Prompt · Step 3Read window.__icons.findingsText() and fix unexpected new-icon findings. Use the sheet’s Pixels, Weight, and Context views. Render the icon in its real control beside the label at its shipped size in light and dark themes. Check legibility at 100% on a phone if available. Record any existing outliers and any device check you could not perform.
Workflow lookup
Find the local files and calls used in the walkthrough.
Supply the whole setIncluded
- Command or reference
window.sheet.icons- Examples
- Flag new drawings with new: true and logos with brand: true.
Read spec and findingsIncluded
- Command or reference
window.__icons.specMarkdown() · window.__icons.findingsText()- Examples
- Capture the new spec and review candidate findings separately from existing outliers.
FAQ
What should I do with an existing outlier?
Record it in your report. An outlier in the reference set can help explain its range, and changing that existing drawing is a separate design decision.
Where are the installed files?
Open the project skill directory reported by the installer. The files referenced by this walkthrough sit alongside the skill’s SKILL.md.