add-icon
Installation
SKILL.md
往 bui/icons/ 加图标
图形的唯一真源是 src/client/bui/icons/glyphs.tsx,渲染入口是同目录的 Icon.tsx。
动手前先读那两个文件的头部 docblock——它们写着坐标系陷阱、默认值取 central 的理由、
以及为什么 key 用语义名。这份技能是流程和陷阱,那两个文件是约定本身。
⚠️ 先读这条:central 是付费图标集,许可与本仓库冲突
图标来源是 central icon system(centralicons.com,iconists 出品)。它不是开源图标库, 这件事决定了下面整个获取流程的形状,也决定了几条「看起来能自动化但不要做」的事。
iconists.co/license 与 npm 包内 LICENSE.md 的 Forbidden Uses 有两条字面命中本仓库:
Do not share the Item or its parts publicly on the web——本仓库是公开的 GitHub 仓库,glyphs.tsx里的 path 就是「its parts publicly on the web」。Extraction: End users cannot extract the Item for separate use——path 是明文源码, 谁都能复制走。