Catalog
affaan-m/ios-icon-gen

affaan-m

ios-icon-gen

Generate iOS app icons as PNG imagesets for Xcode asset catalogs from SF Symbols (5000+ Apple-native) or Iconify API (275k+ open source icons from 200+ collections). Use when generating icons, creating icon assets, adding icons to asset catalog, or searching for icons for iOS projects.

New~1.4kUpdated Jul 14, 2026

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:

# Check dimensions of existing icon
sips -g pixelWidth -g pixelHeight path/to/existing@2x.png

Step 2: Search for Icons

Iconify API (recommended for wide selection):

# 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)

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

Step 4: Generate

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

Options: --size <pt> (default: 68), --color <hex> (default: 8E8E93), --output <dir> (default: /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

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:
    cp -r /tmp/icons/<name>.imageset path/to/Assets.xcassets/<group>/
    
  3. Build the project to verify Xcode picks up the new assets
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
Files3
3 files · 16.2 KB

Select a file to preview

Overall Score

82/100

Grade

B

Good

Safety

80

Quality

85

Clarity

87

Completeness

76

Summary

This skill guides agents to generate iOS app icon imagesets for Xcode asset catalogs using either Iconify API (275k+ open-source icons) or SF Symbols (5k+ Apple-native icons). It provides shell and Swift script wrappers for downloading SVGs, converting to PNG at three resolutions (1x, 2x, 3x), and producing valid Contents.json for Xcode integration.

Detected Capabilities

shell execution (curl, sips, bash)file write (PNG imagesets, Contents.json)HTTP request (Iconify API calls to api.iconify.design)JSON generation (Xcode Contents.json)SVG to PNG conversion (sips command)Python subprocess execution (URL encoding)

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

generate iOS iconscreate icon assetsiconify search iconsSF Symbols convertxcode imageset generatorapp icon designer

Risk Signals

INFO

curl request to external API (api.iconify.design)

scripts/iconify_gen.sh, lines 73-75, 86-89
INFO

File write to /tmp/icons output directory (default, user-configurable)

scripts/iconify_gen.sh, lines 20, 122-134
INFO

SVG download from Iconify API with embedded color parameter

scripts/iconify_gen.sh, lines 115-116, 148-149
INFO

Python subprocess for URL encoding in search functionality

scripts/iconify_gen.sh, line 76
WARNING

User-provided color hex value passed to URL parameter (no validation)

scripts/iconify_gen.sh, lines 115, 149

Referenced Domains

External domains referenced in skill content, detected by static analysis.

api.iconify.designicon-sets.iconify.design

Use Cases

  • Generate icon assets for iOS/macOS Xcode projects from open-source icon libraries
  • Search for icons across 200+ Iconify collections (Material Design, Lucide, Phosphor, etc.)
  • Create PNG imagesets at standard iOS resolutions (68pt base: 1x, 2x, 3x)
  • Replace placeholder icons with production-quality assets matching project style
  • Generate icons with custom colors, sizes, and weights for consistency with existing design systems

Quality Notes

  • Excellent documentation structure with clear sections: When to Activate, Core Principles, Examples, Best Practices, and Anti-Patterns
  • Comprehensive examples for both Iconify API and SF Symbols workflows with command-line options
  • Scripts clearly handle errors with curl options (--fail, --silent, --show-error) and set -euo pipefail for safety
  • Two data sources (Iconify + SF Symbols) are well-explained with trade-offs documented in a clear table
  • Popular icon collections reference table helps users understand available styles and counts
  • Output directory is configurable with sensible default (/tmp/icons); can be directed to Assets.xcassets
  • sips conversion includes warning handling for non-critical failures
  • Search and preview commands provide intermediate verification steps before committing icons
  • Color parameter accepts hex without validation (e.g., --color 007AFF) — no length/format checks
  • SF Symbols script (generate_icons.swift) is referenced but binary/not shown in content; Swift execution requires macOS
  • Best Practices and Anti-Patterns sections guide users away from common mistakes
  • Contents.json generation is hardcoded with universal idiom (iPad/iPhone compatible)
Model: claude-haiku-4-5-20251001Analyzed: Jul 14, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Version History

  1. v1.1

    Content updated

    ✦ AINo behavioral changes detected.

    2026-07-14

    Latest
  2. v1.0

    2026-05-15

    View This VersionInitial version

Use affaan-m/ios-icon-gen in your dev environment

Command Palette

Search for a command to run...