вариант
ДомДом Skill Другое ios-icon-gen

ios-icon-gen

affaan-m/ECC affaan-m/ECC

Создавайте значки приложений для iOS в виде наборов изображений в формате PNG для каталогов ресурсов Xcode с помощью SF Symbols или API Iconify.

...Расширить все
0
Обновлено время 1 октября 2026 г.

Генератор значков для iOS

Создавайте наборы значков в формате PNG для каталогов ресурсов Xcode из двух источников.

Когда использовать

  • Создание ресурсов значков для проекта Xcode под iOS/macOS
  • Поиск иконок в коллекциях с открытым исходным кодом
  • Создание наборов изображений в формате PNG (1x, 2x, 3x) для каталогов ресурсов
  • Замена иконок-заполнителей на ресурсы производственного качества
  • Согласование с существующими стилями значков в проекте Xcode

Основные принципы

1. Два источника, один формат вывода

Оба источника генерируют идентичные наборы изображений, совместимые с Xcode. Выбирайте в зависимости от потребностей:

Источник Значки Требования Лучше всего подходит для
API Iconify Более 275 000 из более чем 200 коллекций Интернет Широкий выбор, особые стили, иконки с открытым исходным кодом
SF Symbols Более 5 000 символов Apple Только для macOS Стиль, характерный для Apple, возможность использования в автономном режиме

2. Всегда соблюдайте существующий стиль

Перед генерацией проверьте существующие значки проекта на соответствие по размеру, цвету и насыщенности.

3. Структура выходных данных

Оба метода создают полный набор изображений для Xcode:

/.imageset/
  Contents.json
  .png        # 1x (68px default)
  @2x.png     # 2x (136px default)
  @3x.png     # 3x (204px default)

Примеры

Шаг 1: Оценка требований

Определите потребности в значках: что изображает значок, предпочтительный стиль, целевой цвет и размер.

Если в проекте уже есть иконки, проверьте существующий стиль:

# Check dimensions of existing icon
sips -g pixelWidth -g pixelHeight path/to/[email protected]

Шаг 2: Поиск иконок

API Iconify (рекомендуется для широкого выбора):

# Search all collections
$SKILL_DIR/scripts/iconify_gen.sh search "receipt"

# Search within a specific collection
$SKILL_DIR/scripts/iconify_gen.sh search "business card" --prefix mdi

# List available collections
$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

Шаг 3: Предварительный просмотр (необязательно)

# Iconify preview
$SKILL_DIR/scripts/iconify_gen.sh preview mdi:receipt-text-outline

Шаг 4: Создание

API Iconify:

# Basic generation
$SKILL_DIR/scripts/iconify_gen.sh mdi:receipt-text-outline editTool_expenseReport

# Custom color and output location
$SKILL_DIR/scripts/iconify_gen.sh mdi:receipt-text-outline myIcon --color 007AFF --output ./Assets.xcassets/icons

Параметры: --size (по умолчанию: 68), --color (по умолчанию: 8E8E93), --output

(по умолчанию: /tmp/icons)

Символы SF:

# Basic generation
swift $SKILL_DIR/scripts/generate_icons.swift doc.text.below.ecg editTool_expenseReport

# Custom color, weight, and output
swift $SKILL_DIR/scripts/generate_icons.swift person.crop.rectangle myIcon --color 007AFF --weight regular --output ./Assets.xcassets/icons

Параметры: --size (по умолчанию: 68), --color (по умолчанию: 8E8E93), --weight (по умолчанию: тонкий), --output

(по умолчанию: /tmp/icons)

Шаг 5: Проверка и интеграция

  1. Просмотрите сгенерированный файл PNG с масштабированием @2x для визуальной проверки
  2. Скопируйте в каталог ресурсов, если файл не был выведен туда напрямую:
    cp -r /tmp/icons/.imageset path/to/Assets.xcassets//
    
  3. Соберите проект, чтобы убедиться, что Xcode распознает новые ресурсы

Популярные коллекции Iconify

Префикс Название Количество Стиль
mdi Значки в стиле Material Design 7400+ Варианты с заливкой и контуром
ph Phosphor 9000+ 6 начертаний на каждый значок
solar Solar 7400+ Жирный, линейный, контурный
tabler Значки Tabler 6000+ Одинаковая ширина обводки
lucide Lucide 1700+ Чистый, минималистичный
ri Иконка Remix 3100+ Варианты с заливкой и линиями
carbon Carbon 2400+ Дизайнерский язык IBM
heroicons HeroIcons 1200+ Дополнение к Tailwind CSS

Просмотреть все: https://icon-sets.iconify.design/

Справочник по скриптам

Скрипт Источник Путь
iconify_gen.sh API Iconify (более 275 тыс. значков) $SKILL_DIR/scripts/iconify_gen.sh
generate_icons.swift SF Symbols (более 5 тыс. значков) $SKILL_DIR/scripts/generate_icons.swift

Рекомендации

  • Перед генерацией выполните поиск — просмотрите доступные значки, чтобы найти наиболее подходящий
  • Сохраняйте стиль существующего проекта — проверьте размеры, цвет и насыщенность существующих значков перед созданием новых
  • Используйте Iconify для разнообразия — более 200 коллекций позволяют найти именно тот стиль, который вам нужен
  • Используйте SF Symbols для обеспечения совместимости с Apple — они идеально соответствуют системному интерфейсу
  • Создавайте иконки напрямую в каталоге ресурсов — используйте --output ./Assets.xcassets/icons , чтобы избежать ручного копирования
  • Проверяйте визуально — всегда просматривайте предварительный просмотр @2x PNG перед фиксацией

Антипаттерны

  • Генерация иконок без проверки существующего стиля иконок проекта
  • Использование цветов по умолчанию, если в проекте определена цветовая палитра
  • Генерация иконок с неправильными размерами (сначала проверьте существующие иконки)
  • Фиксация сгенерированных иконок без визуальной проверки
Посмотреть на GitHub
---
name: ios-icon-gen
description: Generate iOS app icons as PNG imagesets for Xcode asset catalogs from SF Symbols or the Iconify API.
---

# iOS Icon Generator

Generate PNG icon imagesets for Xcode asset catalogs from two sources.

## When to Activate

- Generating icon assets for an iOS/macOS Xcode project
- Searching for icons across open source collections
- Creating PNG imagesets (1x, 2x, 3x) for asset catalogs
- Replacing placeholder icons with production-quality assets
- Matching existing icon styles in an Xcode project

## Core Principles

### 1. Two Sources, One Output Format
Both sources produce identical Xcode-compatible imagesets. Choose based on need:

| Source | Icons | Requires | Best for |
|--------|-------|----------|----------|
| **Iconify API** | 275,000+ from 200+ collections | Internet | Wide selection, specific styles, open source icons |
| **SF Symbols** | 5,000+ Apple symbols | macOS only | Apple-native style, offline use |

### 2. Always Match Existing Style
Before generating, check the project's existing icons for size, color, and weight consistency.

### 3. Output Structure
Both methods produce a complete Xcode imageset:

```
<output-dir>/<asset-name>.imageset/
  Contents.json
  <asset-name>.png        # 1x (68px default)
  <asset-name>@2x.png     # 2x (136px default)
  <asset-name>@3x.png     # 3x (204px default)
```

## Examples

### Step 1: Assess Requirements

Determine icon needs: what the icon represents, preferred style, target color, and size.

If the project already has icons, check existing style:
```bash
# Check dimensions of existing icon
sips -g pixelWidth -g pixelHeight path/to/[email protected]
```

### Step 2: Search for Icons

**Iconify API (recommended for wide selection):**
```bash
# Search all collections
$SKILL_DIR/scripts/iconify_gen.sh search "receipt"

# Search within a specific collection
$SKILL_DIR/scripts/iconify_gen.sh search "business card" --prefix mdi

# List available collections
$SKILL_DIR/scripts/iconify_gen.sh collections
```

**SF Symbols (for Apple-native style):**
Browse the SF Symbols app or reference common names:

| Use Case | Symbol Name |
|----------|-------------|
| Document | `doc.text`, `doc.fill` |
| Receipt | `doc.text.below.ecg`, `receipt` |
| Person | `person.crop.rectangle`, `person.text.rectangle` |
| Camera | `camera`, `camera.fill` |
| Scan | `doc.viewfinder`, `qrcode.viewfinder` |
| Settings | `gearshape`, `slider.horizontal.3` |

### Step 3: Preview (Optional)

```bash
# Iconify preview
$SKILL_DIR/scripts/iconify_gen.sh preview mdi:receipt-text-outline
```

### Step 4: Generate

**Iconify API:**
```bash
# Basic generation
$SKILL_DIR/scripts/iconify_gen.sh mdi:receipt-text-outline editTool_expenseReport

# Custom color and output location
$SKILL_DIR/scripts/iconify_gen.sh mdi:receipt-text-outline myIcon --color 007AFF --output ./Assets.xcassets/icons
```

Options: `--size <pt>` (default: 68), `--color <hex>` (default: 8E8E93), `--output <dir>` (default: /tmp/icons)

**SF Symbols:**
```bash
# Basic generation
swift $SKILL_DIR/scripts/generate_icons.swift doc.text.below.ecg editTool_expenseReport

# Custom color, weight, and output
swift $SKILL_DIR/scripts/generate_icons.swift person.crop.rectangle myIcon --color 007AFF --weight regular --output ./Assets.xcassets/icons
```

Options: `--size <pt>` (default: 68), `--color <hex>` (default: 8E8E93), `--weight <name>` (default: thin), `--output <dir>` (default: /tmp/icons)

### Step 5: Verify and Integrate

1. Read the generated @2x PNG to verify visually
2. Copy to asset catalog if not output there directly:
   ```bash
   cp -r /tmp/icons/<name>.imageset path/to/Assets.xcassets/<group>/
   ```
3. Build the project to verify Xcode picks up the new assets

## Popular Iconify Collections

| Prefix | Name | Count | Style |
|--------|------|-------|-------|
| `mdi` | Material Design Icons | 7400+ | Filled + outline variants |
| `ph` | Phosphor | 9000+ | 6 weights per icon |
| `solar` | Solar | 7400+ | Bold, linear, outline |
| `tabler` | Tabler Icons | 6000+ | Consistent stroke width |
| `lucide` | Lucide | 1700+ | Clean, minimal |
| `ri` | Remix Icon | 3100+ | Filled + line variants |
| `carbon` | Carbon | 2400+ | IBM design language |
| `heroicons` | HeroIcons | 1200+ | Tailwind CSS companion |

Browse all: <https://icon-sets.iconify.design/>

## Scripts Reference

| Script | Source | Path |
|--------|--------|------|
| `iconify_gen.sh` | Iconify API (275k+ icons) | `$SKILL_DIR/scripts/iconify_gen.sh` |
| `generate_icons.swift` | SF Symbols (5k+ icons) | `$SKILL_DIR/scripts/generate_icons.swift` |

## Best Practices

- **Search before generating** -- browse available icons to find the best match
- **Match existing project style** -- check dimensions, color, and weight of existing icons before generating new ones
- **Use Iconify for variety** -- 200+ collections means you can find the exact style you need
- **Use SF Symbols for Apple consistency** -- they match system UI perfectly
- **Generate directly to asset catalog** -- use `--output ./Assets.xcassets/icons` to skip manual copying
- **Verify visually** -- always preview the @2x PNG before committing

## Anti-Patterns

- Generating icons without checking existing project icon style
- Using default colors when the project has a defined color palette
- Generating at wrong sizes (check existing icons first)
- Committing generated icons without visual verification

Установить ios-icon-gen

Скачайте файлы навыков и распакуйте их в каталог .claude/skills/.

Скачать ZIP

Клонируйте репозиторий и скопируйте файлы навыка в свой проект.

git clone https://github.com/affaan-m/ECC/tree/main/skills/ios-icon-gen # Copy SKILL.md to your .claude/skills/ directory

Копировать Копировать
Быстрая настройка: Скопируйте папку со скиллом в каталог .claude/skills/ Claude автоматически обнаружит и начнет использовать этот скилл
Репозиторий affaan-m/ECC

Похожие навыки

multica-creating-agents
Обновлено время 12 августа 2026 г.
tilemaps
Обновлено время 4 августа 2026 г.
v4-new-features
Обновлено время 4 августа 2026 г.
agent-github-pr-manager
Обновлено время 3 августа 2026 г.
OR