オプション
家家 Skill その他 ios-icon-gen

ios-icon-gen

affaan-m/ECC affaan-m/ECC

SF Symbols または Iconify API を使用して、Xcode のアセットカタログ用の PNG 画像セットとして iOS アプリのアイコンを生成します。

...すべて拡張します
0
更新された時間 2026年10月1日

iOS アイコングenerator

2つのソースから、Xcodeのアセットカタログ用のPNGアイコン画像セットを生成します。

有効にするタイミング

  • iOS/macOSのXcodeプロジェクト向けにアイコンアセットを生成する場合
  • オープンソースのコレクションからアイコンを検索する場合
  • アセットカタログ用のPNG画像セット(1x、2x、3x)を作成する場合
  • プレースホルダーアイコンを本番品質のアセットに置き換える
  • Xcodeプロジェクト内の既存のアイコンスタイルに合わせる

基本原則

1. 2つのソース、1つの出力形式

どちらのソースも、Xcode 互換の同一の画像セットを生成します。必要に応じて選択してください:

ソース アイコン 必要条件 最適な用途
Iconify API 200以上のコレクションから275,000点以上 インターネット 豊富な品揃え、特定のスタイル、オープンソースのアイコン
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:アイコンの検索

Iconify API(豊富な選択肢があるため推奨):

# 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:生成

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

オプション: --size (デフォルト: 68)、 --color (デフォルト: 8E8E93)、 --output

(デフォルト: /tmp/icons)

SF Symbols:

# 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 (デフォルト: thin), --output

(デフォルト: /tmp/icons)

ステップ 5: 確認と統合

  1. 生成された @2x PNG を確認し、視覚的に検証する
  2. アセットカタログに直接出力されていない場合は、そこにコピーしてください:
    cp -r /tmp/icons/.imageset path/to/Assets.xcassets//
    
  3. プロジェクトをビルドし、Xcodeが新しいアセットを認識しているか確認する

人気の Iconify コレクション

プレフィックス 名前 数 スタイル
mdi Material Design アイコン 7400以上 塗りつぶし+アウトラインのバリエーション
ph Phosphor 9,000以上 アイコンごとに6種類のウェイト
solar ソーラー 7400以上 太字、線画、アウトライン
tabler Tabler アイコン 6000以上 一貫した線幅
lucide Lucide 1700以上 シンプルでミニマル
ri Remix Icon 3100+ 塗りつぶし+線のバリエーション
carbon カーボン 2400以上 IBMデザイン言語
heroicons HeroIcons 1200+ Tailwind CSS コンパニオン

すべて閲覧:https://icon-sets.iconify.design/

スクリプトリファレンス

スクリプト ソース パス
iconify_gen.sh Iconify API(275,000個以上のアイコン) $SKILL_DIR/scripts/iconify_gen.sh
generate_icons.swift SF Symbols(5k以上のアイコン) $SKILL_DIR/scripts/generate_icons.swift

ベストプラクティス

  • 生成する前に検索する――利用可能なアイコンを閲覧して、最適なものを見つける
  • 既存のプロジェクトのスタイルに合わせる――新しいアイコンを生成する前に、既存アイコンのサイズ、色、太さを確認する
  • Iconifyでバラエティを活かす――200以上のコレクションから、まさに必要なスタイルが見つかります
  • Appleの統一性を保つにはSF Symbolsを使用――システムUIと完全に整合しています
  • アセットカタログに直接生成する―― --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

すべてのファイル

3件のファイル

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
更新された時間 2026年8月12日
tilemaps
更新された時間 2026年8月4日
v4-new-features
更新された時間 2026年8月4日
agent-github-pr-manager
更新された時間 2026年8月3日
OR