Option
HeimHeim Skill Sonstiges ios-icon-gen

ios-icon-gen

affaan-m/ECC affaan-m/ECC

Erstellen Sie iOS-App-Symbole als PNG-Bildersätze für Xcode-Asset-Kataloge anhand von SF Symbols oder der Iconify-API.

...Alle erweitern
0
Zeit aktualisiert 1. Oktober 2026

iOS-Icon-Generator

Erstellen Sie PNG-Icon-Bildersätze für Xcode-Asset-Kataloge aus zwei Quellen.

Wann aktivieren?

  • Erstellen von Icon-Assets für ein iOS-/macOS-Xcode-Projekt
  • Suche nach Icons in Open-Source-Sammlungen
  • Erstellen von PNG-Bildersätzen (1x, 2x, 3x) für Asset-Kataloge
  • Ersetzen von Platzhalter-Icons durch Assets in Produktionsqualität
  • Anpassung an bestehende Icon-Stile in einem Xcode-Projekt

Grundprinzipien

1. Zwei Quellen, ein Ausgabeformat

Beide Quellen erzeugen identische, Xcode-kompatible Bildersätze. Wählen Sie je nach Bedarf:

Quelle Symbole Voraussetzungen Am besten geeignet für
Iconify-API Über 275.000 aus über 200 Sammlungen Internet Große Auswahl, spezifische Stile, Open-Source-Symbole
SF Symbols Über 5.000 Apple-Symbole Nur für macOS Apple-typischer Stil, Offline-Nutzung

2. Immer an den bestehenden Stil anpassen

Überprüfen Sie vor der Generierung die vorhandenen Symbole des Projekts auf Konsistenz hinsichtlich Größe, Farbe und Strichstärke.

3. Ausgabestruktur

Beide Methoden erzeugen einen vollständigen Xcode-Bildsatz:

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

Beispiele

Schritt 1: Anforderungen ermitteln

Ermitteln Sie den Bedarf an Symbolen: Was das Symbol darstellt, bevorzugter Stil, Zielfarbe und Größe.

Falls das Projekt bereits über Symbole verfügt, prüfen Sie den bestehenden Stil:

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

Schritt 2: Suche nach Symbolen

Iconify-API (empfohlen wegen der großen Auswahl):

# 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 (für den Apple-eigenen Stil): Durchsuchen Sie die SF Symbols-App oder orientieren Sie sich an gängigen Bezeichnungen:

Anwendungsfall Symbolname
Dokument doc.text, doc.fill
Quittung doc.text.below.ecg, receipt
Person person.crop.rectangle, person.text.rectangle
Kamera camera, camera.fill
Scan doc.viewfinder, qrcode.viewfinder
Einstellungen gearshape, slider.horizontal.3

Schritt 3: Vorschau (optional)

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

Schritt 4: Erstellen

Iconify-API:

# 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

Optionen: --size (Standard: 68), --color (Standard: 8E8E93), --output

(Standard: /tmp/icons)

SF-Symbole:

# 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

Optionen: --size (Standard: 68), --color (Standard: 8E8E93), --weight (Standard: dünn), --output

(Standard: /tmp/icons)

Schritt 5: Überprüfen und Einbinden

  1. Laden Sie die generierte @2x-PNG-Datei, um sie visuell zu überprüfen
  2. Kopieren Sie die Datei in den Asset-Katalog, falls sie nicht direkt dort ausgegeben wurde:
    cp -r /tmp/icons/.imageset path/to/Assets.xcassets//
    
  3. Erstellen Sie das Projekt, um zu überprüfen, ob Xcode die neuen Assets erkennt

Beliebte Iconify-Sammlungen

Präfix Name Anzahl Stil
mdi Material-Design-Symbole 7.400+ Varianten mit Füllung und Umriss
ph Phosphor 9.000 6 Strichstärken pro Symbol
solar Solar 7400+ Fett, linear, Kontur
tabler Tabler-Symbole 6.000+ Einheitliche Strichstärke
lucide Lucide 1700+ Klar, minimalistisch
ri Remix Icon 3100+ Gefüllte + Linienvarianten
carbon Carbon 2400+ IBM-Designsprache
heroicons HeroIcons 1200+ Tailwind CSS-Ergänzung

Alle anzeigen: https://icon-sets.iconify.design/

Skript-Referenz

Skript Quelle Pfad
iconify_gen.sh Iconify-API (über 275.000 Symbole) $SKILL_DIR/scripts/iconify_gen.sh
generate_icons.swift SF Symbols (über 5.000 Symbole) $SKILL_DIR/scripts/generate_icons.swift

Bewährte Vorgehensweisen

  • Vor der Erstellung suchen – verfügbare Symbole durchsuchen, um das am besten passende zu finden
  • Passen Sie den Stil an das bestehende Projekt an – überprüfen Sie Abmessungen, Farbe und Strichstärke bestehender Symbole, bevor Sie neue erstellen
  • Nutzen Sie Iconify für mehr Vielfalt – mit über 200 Sammlungen finden Sie genau den Stil, den Sie benötigen
  • Verwenden Sie SF Symbols für Apple-Konsistenz – sie passen perfekt zur System-Benutzeroberfläche
  • Generieren Sie direkt in den Asset-Katalog – nutzen Sie --output ./Assets.xcassets/icons , um das manuelle Kopieren zu überspringen
  • Überprüfen Sie das Ergebnis visuell – sehen Sie sich vor dem Speichern immer die @2x-PNG-Vorschau an

Anti-Muster

  • Icons generieren, ohne den bestehenden Icon-Stil des Projekts zu überprüfen
  • Verwendung von Standardfarben, obwohl das Projekt über eine definierte Farbpalette verfügt
  • Erstellung in falschen Größen (zunächst vorhandene Symbole prüfen)
  • Generierte Symbole ohne visuelle Überprüfung festschreiben
Auf GitHub ansehen
---
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 installieren

Laden Sie die Skill-Dateien herunter und entpacken Sie sie in Ihr Verzeichnis „.claude/skills/“.

ZIP herunterladen

Klonen Sie das Repository und kopieren Sie die Skill-Dateien in Ihr Projekt.

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

Kopieren Kopieren
Schnelle Einrichtung: Kopiere den Skill-Ordner nach .claude/skills/ Claude erkennt den Skill automatisch und nutzt ihn.
Repository affaan-m/ECC

Ähnliche Skills

multica-creating-agents
Zeit aktualisiert 12. August 2026
tilemaps
Zeit aktualisiert 4. August 2026
v4-new-features
Zeit aktualisiert 4. August 2026
agent-github-pr-manager
Zeit aktualisiert 3. August 2026
OR