Help us improve
Share bugs, ideas, or general feedback.
Generates iOS app icon PNG imagesets for Xcode asset catalogs from SF Symbols (5,000+ Apple native) or Iconify API (275k+ open-source icons).
npx claudepluginhub aaione/everything-claude-code-zhHow this skill is triggered — by the user, by Claude, or both
Slash command
/everything-claude-code:ios-icon-genThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
从两个来源为 Xcode 资源目录生成 PNG 图标 imageset。
Generates iOS app icons as PNG imagesets for Xcode asset catalogs from SF Symbols or Iconify API. Use when creating icon assets, adding icons to asset catalog, or searching for icons.
Generate, evaluate, and install iOS/macOS app icons from product context, including AppIcon.appiconset and .icns assets.
Generates square PNG icons with transparent backgrounds for app icons, favicons, and UI using Google Gemini. Supports flat/3D/line/glyph/gradient/minimal styles, sizes 128-1024px, batch sets, reference matching.
Share bugs, ideas, or general feedback.
从两个来源为 Xcode 资源目录生成 PNG 图标 imageset。
两个来源产生相同的 Xcode 兼容 imageset。根据需要选择:
| 来源 | 图标 | 需要 | 最适合 |
|---|---|---|---|
| Iconify API | 来自 200+ 集合的 275,000+ | 互联网 | 广泛选择、特定风格、开源图标 |
| SF Symbols | 5,000+ 个 Apple 符号 | 仅 macOS | Apple 原生风格、离线使用 |
在生成之前,检查项目现有图标的大小、颜色和粗细一致性。
两种方法都产生完整的 Xcode imageset:
<output-dir>/<asset-name>.imageset/
Contents.json
<asset-name>.png # 1x(默认 68px)
<asset-name>@2x.png # 2x(默认 136px)
<asset-name>@3x.png # 3x(默认 204px)
确定图标需求:图标代表什么、首选风格、目标颜色和大小。
如果项目已有图标,请检查现有风格:
# 检查现有图标的尺寸
sips -g pixelWidth -g pixelHeight path/to/existing@2x.png
Iconify API(推荐用于广泛选择):
# 搜索所有集合
$SKILL_DIR/scripts/iconify_gen.sh search "receipt"
# 在特定集合中搜索
$SKILL_DIR/scripts/iconify_gen.sh search "business card" --prefix mdi
# 列出可用集合
$SKILL_DIR/scripts/iconify_gen.sh collections
SF Symbols(用于 Apple 原生风格): 浏览 SF Symbols 应用或参考常见名称:
| 用例 | 符号名称 |
|---|---|
| 文档 | doc.text、doc.fill |
| 收据 | doc.text.below.ecg、receipt |
| 人员 | person.crop.rectangle、person.text.rectangle |
| 相机 | camera、camera.fill |
| 扫描 | doc.viewfinder、qrcode.viewfinder |
| 设置 | gearshape、slider.horizontal.3 |
# Iconify 预览
$SKILL_DIR/scripts/iconify_gen.sh preview mdi:receipt-text-outline
Iconify API:
# 基本生成
$SKILL_DIR/scripts/iconify_gen.sh mdi:receipt-text-outline editTool_expenseReport
# 自定义颜色和输出位置
$SKILL_DIR/scripts/iconify_gen.sh mdi:receipt-text-outline myIcon --color 007AFF --output ./Assets.xcassets/icons
选项:--size <pt>(默认:68)、--color <hex>(默认:8E8E93)、--output <dir>(默认:/tmp/icons)
SF Symbols:
# 基本生成
swift $SKILL_DIR/scripts/generate_icons.swift doc.text.below.ecg editTool_expenseReport
# 自定义颜色、粗细和输出
swift $SKILL_DIR/scripts/generate_icons.swift person.crop.rectangle myIcon --color 007AFF --weight regular --output ./Assets.xcassets/icons
选项:--size <pt>(默认:68)、--color <hex>(默认:8E8E93)、--weight <name>(默认:thin)、--output <dir>(默认:/tmp/icons)
cp -r /tmp/icons/<name>.imageset path/to/Assets.xcassets/<group>/
| 前缀 | 名称 | 数量 | 风格 |
|---|---|---|---|
mdi | Material Design Icons | 7400+ | 填充 + 轮廓变体 |
ph | Phosphor | 9000+ | 每个图标 6 个粗细 |
solar | Solar | 7400+ | 粗体、线性、轮廓 |
tabler | Tabler Icons | 6000+ | 一致的笔画宽度 |
lucide | Lucide | 1700+ | 干净、极简 |
ri | Remix Icon | 3100+ | 填充 + 线条变体 |
carbon | Carbon | 2400+ | IBM 设计语言 |
heroicons | HeroIcons | 1200+ | Tailwind CSS 伴侣 |
浏览所有:https://icon-sets.iconify.design/
| 脚本 | 来源 | 路径 |
|---|---|---|
iconify_gen.sh | Iconify API(275k+ 图标) | $SKILL_DIR/scripts/iconify_gen.sh |
generate_icons.swift | SF Symbols(5k+ 图标) | $SKILL_DIR/scripts/generate_icons.swift |
--output ./Assets.xcassets/icons 跳过手动复制