跳到正文

sergiobanhos

generate-icons

Agent skill that draws an original icon library matching your design system (React, Vue, Svelte, React Native, SVG).

README 已保存到本站,可直接阅读

Documentation snapshot

README 快照

这篇是英文原文

下面正文是项目自己的英文 README。想读全文就用浏览器自带的整页翻译: Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」; 手机浏览器一般在菜单里。

本页保存的是公开项目资料快照,阅读过程不需要连接 GitHub。

generate-icons

An agent skill that draws an original icon library that matches your project’s design system.

It reads your tokens, theme, fonts and the icons you already use, turns that into an explicit style sheet, proves it on a small sample shown next to your real UI, and only then draws the whole set by hand as SVG. You get framework components, standalone SVGs, a sprite, CSS for states and dark mode, a review catalog and a README, all validated.

🇧🇷 Em português: uma skill para Claude Code (e outros agentes) que gera uma biblioteca de ícones original no estilo do seu design system. Lê seus tokens e ícones atuais, propõe o estilo, mostra uma amostra dentro da sua UI e só depois desenha tudo. Grátis, licença MIT.

图片:Real example: a 38-icon duotone library generated for CvPorVaga

What you get

  • Style matched to your project: grid, stroke or fill, tones, corner radius, states (default, hover, active, disabled), palette per theme. Every decision is written down with the file and line it came from.
  • A sample before the full set: 6 to 8 icons rendered in a mock of your sidebar, buttons and empty state, in light and dark, side by side with the icons you use today.
  • Output for your stack: React, Vue, Svelte, React Native or plain SVG. Tree-shakeable components with size, title, currentColor or token-driven tones, plus svg/, sprite.svg, icons.css, manifest.json, catalog.html and a README.
  • 8 starter styles for projects with no design system yet: outline, solid, duotone, soft 3D gradient, glossy app icon, flat color, pixel and hand-drawn.
  • Original drawings only: the skill never copies paths from Lucide, Heroicons, Phosphor, Material or any other set, and never redraws brand logos. What it draws for you is yours.

图片:The 8 starter styles in light and dark

Install

Claude Code, for all your projects:

git clone https://github.com/sergiobanhos/generate-icons ~/.claude/skills/generate-icons

Or for one project only:

git clone https://github.com/sergiobanhos/generate-icons .claude/skills/generate-icons

Other agents that read SKILL.md skills: clone it into that agent’s skills folder.

Requirements: Python 3.8+ (standard library only). A headless browser is optional; the agent uses one to look at the catalog before showing it to you.

Use

In your project, ask for it in plain words or type the command:

/generate-icons
Make icons for our sidebar and order statuses that match our design system

The agent will:

  1. Scan the design system (scripts/scan_design_system.py).
  2. Ask only what the scan didn’t settle (where the icons go, sizes, framework, location).
  3. Write icon-style.json and show you each decision and why.
  4. List icon candidates from your menus, routes, enums and emoji (scripts/inventory.py).
  5. Draw a sample and open the catalog next to your current icons. You approve or adjust.
  6. Draw and build the full library, validating every batch (scripts/validate.py, scripts/build.py).
  7. Take your feedback per icon and rebuild only what changed.

Examples

examples/ has a finished 12-icon library in two styles, built for React. Open examples/duotone-filled/react/catalog.html in a browser.

图片:Catalog of the duotone example

Used in production at CvPorVaga: the app’s menu before and after.

图片:Before and after in the CvPorVaga app

What’s inside

PathWhat
SKILL.mdThe workflow the agent follows.
scripts/Scanner, inventory, reference export, validator and builder.
references/Style detection, interview, source format, drawing guide, the 8 styles, accessibility, licensing.
assets/Starter style sheets and a gallery comparing them.
examples/Two complete example libraries.

License

MIT. The icons the skill generates for you belong to you.

Official distribution

获取与安装

暂未发现可确认的官方软件包地址

当前 README 快照没有出现 npm、PyPI、Crates.io、pub.dev 等官方包页链接。本站不会根据仓库名称猜测下载地址。

本站不托管项目文件;需要安装时,请以项目维护者发布的官方文档为准。

使用前核验

本站保存公开资料用于阅读,不代表安全审计或功能背书。安装前请核对许可证、依赖来源和发布签名,不要直接运行来源不明的二进制文件或高权限脚本。