by kubai087
An agent skill that draws animated icons in one consistent style, for Claude Code, Codex and other coding agents. Comes with 2,600+ open-source icons for React, Vue and SVG, and a website to browse them.
# Add to your Claude Code skills
git clone https://github.com/kubai087/kubai-iconsLast scanned: 11/29/2026
{
"issues": [
{
"type": "npm-audit",
"message": "@ts-morph/common: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "minimatch: minimatch has potential denial of service via globparts amplification",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "shadcn: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "ts-morph: Vulnerability found",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-11-29T12:54:32.092Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}kubai-icons is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by kubai087. An agent skill that draws animated icons in one consistent style, for Claude Code, Codex and other coding agents. Comes with 2,600+ open-source icons for React, Vue and SVG, and a website to browse them. It has 1,498 GitHub stars.
Yes. kubai-icons passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/kubai087/kubai-icons" and add it to your Claude Code skills directory (see the Installation section above). kubai-icons ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
kubai-icons is primarily written in JavaScript. It is open-source under kubai087 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh kubai-icons against similar tools.
No comments yet. Be the first to share your thoughts!
这个 skill 自带三种风格的完整实现:每种都有规则、范例图标、自检脚本和导出脚本。你的工作是按规则写新图标,不是重写引擎。
| 风格 | 样子 | 交付 | 规则 | 适合 |
|---|---|---|---|---|
| 分层动态(默认) | 文件夹式的后片、内容、前片分层,外描边,投影和内发光,悬停时形变 | 动态 SVG + JS,或静态 SVG | PROMPT.md |
网页、营销页、需要动效和质感的地方,常用 24–96px |
| 双色面性 | 16 网格的实心图标,浅色主体加主色点缀,两色直接相接 | 静态 SVG,或 SVG + JS 的悬停动效 | styles/duotone/SKILL.md(单独的 skill kubai-duotone) |
界面里的导航、按钮、列表、标签页,常用 16–48px |
| 线性 | 24 网格的圆角线条,线宽 0.5–3(常规 2),线性、线性双色、面性、面性填充四种变体 | 静态 SVG,或 SVG + JS 的悬停动效 | styles/line/SKILL.md(单独的 skill kubai-line) |
和文字并排的界面图标,如工具栏、菜单、表单,常用 16–32px |
用户说"面性""实心""填充""双色""duotone""bulk""两种颜色",或要的是界面里 16–24px 的小图标,就是双色面性。用户说"动态""悬停""hover""动效""分层",或没有提到风格但要放在网页里,就是分层动态。用户说"线性""线条""描边""outline""line""SF Symbols",或要求线宽跟文字字重匹配,就是线性。说不清时,先问一句,并用上表说明区别。
PROMPT.md:全部设计规则,每一条都是硬性要求。动手前完整读一遍。src/engine.js:引擎。颜色推导、外描边遮罩、厚度带渐变、投影和内发光滤镜、插值动画、色板都在这里。直接复用,不要改。src/icons.js:范例图标。新图标按同样的格式追加。src/app.js、index.html:展示页。ORDER 决定展示哪些图标、按什么顺序排。scripts/check.mjs:自检脚本。在无头 Chrome 里截出静止、悬停、悬停过程的中间帧、24px、28px 和所有色板,读出每一页的脚本报错,并用 scripts/measure.js 对照 PROMPT.md 里能量化的规则逐个测量,结果写进 findings.md。临时文件都放在输出目录里,跑完自动清理。scripts/measure.js:测量规则的代码,由自检脚本加载。量的是动作有没有跳帧、结束时是否平稳停下,尺寸和居中,分层,线宽,过小的细节,细缝,被盖住的描边露头,尖角接缝处的毛刺,以及落在背景上却没有描边的边。scripts/export.mjs:静态导出。把图标渲染成不依赖脚本和样式表的独立 SVG 文件,可以指定色板、主色和静止或悬停状态。以上为分层动态风格的文件。双色面性风格是独立的 skill(kubai-duotone),文件位于 styles/duotone/;线性风格也是独立的 skill(kubai-line),文件位于 styles/line/。两者的规则、文件说明和流程见各自目录中的 SKILL.md。
确定风格(见"三种风格")。选择双色面性时:已安装 kubai-duotone skill 则使用该 skill,否则阅读 styles/duotone/SKILL.md 并按其流程执行,以下第 2–9 步不适用。选择线性时:已安装 kubai-line skill 则使用该 skill,否则阅读 styles/line/SKILL.md 并按其流程执行,以下第 2–9 步同样不适用。选择分层动态时,阅读 PROMPT.md,继续以下步骤。
确定交付形式。用户没说清楚时先问一句:
src/engine.js 在页面里运行。适合网页和能跑 JS 的界面。.svg 文件,没有动效,任何地方都能用:设计工具、原生 App、文档、<img>。用户提到"切图""SVG 文件""放进 Figma""App 里用"等,就是要静态。确定在哪里做:
index.html、src/、scripts/ 复制到目标位置(一个新目录或新仓库),在那份副本里工作。保留每个文件开头的版权声明;PROMPT.md 和 SKILL.md 只留在 skill 里,不要复制进去(见 LICENSE 第 3 条)。src/icons.js 里追加。icons/ 下单独一个文件,格式、命名、角标、关键词和各语言名字见 docs/authoring.md,自检用 node tools/check.mjs --only 名字 --with folder,mail,download。规则仍以 PROMPT.md 为准。读产品代码,列出功能。动态版每个功能写一句"物体 + 悬停动作";静态版只需要确定物体(PROMPT.md 第 1 节)。
每写一个图标之前,先在 src/icons.js 里找一两个结构最接近的范例读一遍(例如翻开的东西看信封和日历,切出前片的看下载和上传,会旋转的看齿轮和星标),照它们的写法来。
把名字加进 src/app.js 的 ORDER。用不到的范例,不放进 ORDER 就不会显示。
运行自检,把新图标和几个现有图标放在一起看:
node scripts/check.mjs --only 新图标A,新图标B --with 文件夹,邮件,下载
截图和 findings.md 在 check-out/。脚本报出错误时先修错误;再看 findings.md,每一条都指出一个很可能的问题,到截图上确认后修掉,确认是有意为之的可以保留(例如悬停时盖子抬出画布),在图标定义里写 allow: { 规则名: '理由' } 声明,它会单独列在 findings.md 的 Allowed 部分,不再计入问题;没确认过的不要声明。最后逐条对照 PROMPT.md 第 10 节的清单检查。往复类动作看 frames.png;查细缝时加 --scale 3;查浅主色上的标记时加 --accent #F59E0B,把所有图标换成同一个主色。不加 --only 就检查整套。静态版看 rest.png、size-24.png、size-28.png 和 palettes.png 就够了。
改到全部通过后,更新 README 里提到的图标数量,以及展示页每个断点的列数(列数要能整除图标总数,断点可以增删)。
要静态时,导出到用户指定的目录,并告诉用户用的是哪个色板:
node scripts/export.mjs --only 新图标A,新图标B --palette 彩色 --out 目标目录
--palette 按名字选色板(彩色、蓝灰、青瓷、薄荷、薰衣草、杏色、黑色),--accent #hex 把所有图标换成一个主色,--state hover 导出悬停结束时的样子,--size 设定像素尺寸,--pad 给投影留出边距。每个图标一个 名字.svg。
CHROME 覆盖。Copyright (c) 2026 Kubai087. Licensed under the Kubai Icons License; see LICENSE.
| Part | What you get |
|---|---|
| Agent skill | The rules, engine and self-check that draw every icon in one hand. Give Claude Code, Codex or another coding agent a product, and it draws the icons that product needs. |
| Icon library | 4,800+ icons in three styles: nearly 1,400 objects, plus badged and slashed "off" versions. For React, Vue, plain JavaScript, web components and static SVG. MIT licensed. |
| Website | icons.kubai.design, in 16 languages. Search every icon by name, shape or meaning, recolor it, copy its code or a prompt for your agent, download it as SVG or PNG, and save a collection as a ZIP. |
Copy this into your agent and send it:
Install the Kubai Icons skill for me:
clone https://github.com/kubai087/kubai-icons into your skills folder as kubai-icons
(~/.claude/skills in Claude Code, ~/.agents/skills in Codex;
if it's already there, pull the latest version instead),
make sure SKILL.md exists in that folder, and tell me when it's ready.
Restart your agent, and the skill is ready. An agent without skill support can read SKILL.md from the cloned folder and follow it.
[!TIP] The skill asks for careful geometry and several rounds of looking at its own screenshots, so use a capable model that can read images. It was developed and blind-tested with Claude Opus 5.5, which we recommend. Other models, such as GPT in Codex, can use the same skill. In Claude Code, run
claude --model claude-opus-5-5.
Clone the repository into your skills folder. In Codex, use ~/.agents/skills instead.
git clone https://github.com/kubai087/kubai-icons.git ~/.claude/skills/kubai-icons
Or download kubai-icons-v*.zip from the skill release and unzip it there:
unzip kubai-icons-v*.zip -d ~/.claude/skills/
The agent picks the skill up the next time it starts.
Publishing to a skill marketplace that asks for a version and display names in SKILL.md? Upload kubai-icons-v*-platform.zip from the same release. It carries those fields at the top of the frontmatter.
Describe what you need in plain words. The skill triggers on requests about icons, so you don't need to name it.
The agent then:
To start a set for your own product, the skill copies the engine, gallery and self-check into your project and works there.
The skill draws in any of three styles and asks when your request doesn't make it clear.
| Style | Looks | Delivers | Rules |
|---|---|---|---|
| Layered (default) | Folder-like back and front pieces, outside outlines, shadows, hover motion | Animated SVG + JS, or static SVG | PROMPT.md |
| Two-tone solid | Solid shapes on a 16 grid: a light body with accents in the brand colour; lively hover motion that acts out what the icon means | Static SVG, or SVG + JS for the motion | styles/duotone/, also released on its own as the kubai-duotone skill |
| Line | Rounded strokes on a 24 grid whose width follows the text weight (0.5 to 3); four variants from one drawing (line, line two-tone, solid, solid tint); hover motion that acts out what the icon means | Static SVG, or SVG + JS for the motion | styles/line/, also released on its own as the kubai-line skill |
Ask for "solid", "filled", "two-tone" or "duotone" icons, or small icons for an app's interface, and the skill uses the two-tone style.
Ask for "line", "outline" or "stroke" icons, icons in the manner of SF Symbols, or a stroke width that matches your text, and the skill uses the line style.
| Package | For |
|---|---|
kubai-icons-react |
React 18+ and Next.js, server rendering included |
kubai-icons-vue |
Vue 3 and Nuxt |
kubai-icons |
Any page: a framework-free API and the <kubai-icon> web component |
kubai-icons-static |
Standalone SVG files for <img>, design tools, native apps and CDNs |
npm i kubai-icons-react
import { Folder, CalendarCheck } from "kubai-icons-react";
// 24px, follows the text color
<Folder />
// Any CSS color, the soft look, a green badge
<CalendarCheck size={32} color="#22C55E" variant="soft" badgeColor="semantic" />
// Plays when the button is hovered
<button data-kubai-trigger>
<Folder size={18} trigger="parent" /> Open
</button>
No build step? One script tag loads any icon on demand:
<script type="module" src="https://cdn.jsdelivr.net/npm/kubai-icons@0/dist/cdn/element.js"></script>
<kubai-icon name="folder-plus" size="32" color="#6366F1"></kubai-icon>
currentColor and recolor without script.Find an icon and copy its code on the website. Guides for every package are in the documentation.
Building a native app in Go? Kubai Icons for MyGo is a community port for MyGo, maintained by yldm-tech rather than this project.
Every icon is a back piece, optional white content and a front piece, like a folder holding a sheet of paper. Outlines sit outside the fill, so shapes keep their full size. Every gradient, outline and shadow derives from one accent color, so a single value repaints the whole icon. Each part has exactly two keyframes, rest and hover.
The complete rules are in PROMPT.md.
| Part | What it does for the model |
|---|---|
PROMPT.md |
The rules, each one a hard requirement: canvas and keylines, layers, corners and outlines, light, color, marks and motion. |
src/engine.js |
Color derivation, outside outlines, gradients, shadows, interpolation and palettes, already built. New icons reuse them instead of reinventing them. |
src/icons.js |
66 worked examples. Each new icon starts from the closest one in structure. |
scripts/check.mjs |
A headless self-check: rest, hover, every moment in between, 24px, 28px and every palette, plus a list of findings against the rules that can be measured (scripts/measure.js). |
index.html opens a local gallery of these 66 examples. The full library is on the website