Loading...
Loading...
This skill should be used when the user asks to "generate an icon", "create a favicon", "make an app icon", "create iOS icon", "create Android icon", "generate PWA icons", "make desktop app icon", "create Windows icon", "create macOS icon", "app store icon", "Play Store icon", "App Store icon", or needs AI-generated icons with platform-specific sizing.
npx skill4agent add b-open-io/gemskills generate-icon# Favicon for website
bun run icon "modern tech startup logo letter S" --preset favicon --output ./icons/favicon
# iOS App Store icons
bun run icon "meditation app lotus flower" --preset apple-app-icon --output ./icons/ios
# Android Play Store + adaptive icons
bun run icon "fitness tracker flame icon" --preset android-app-icon --output ./icons/android
# PWA manifest icons
bun run icon "productivity app checkmark" --preset pwa --output ./icons/pwa
# macOS desktop app
bun run icon "code editor brackets symbol" --preset macos-icns --output ./icons/macos
# Windows desktop app
bun run icon "music player note icon" --preset windows-ico --output ./icons/windows
# General UI icons
bun run icon "settings gear" --preset ui-icons --output ./icons/ui| Preset | Description | Sizes | Bundle |
|---|---|---|---|
| iOS/iPadOS App Store | 18 sizes (1024-20px) | No |
| Google Play + adaptive layers | 11 sizes + foreground | No |
| Browser tab icons | 8 sizes + ICO | Yes (.ico) |
| Progressive Web App | 11 sizes + maskable | No |
| macOS desktop | 10 sizes | Yes (.icns) |
| Windows desktop | 7 sizes | Yes (.ico) |
| In-app icons | 9 sizes (512-16px) | No |
bun run icon "prompt" --preset <name> --output <dir> [options]
Required:
--preset <name> Platform preset (see table above)
--output <dir> Output directory
Optional:
--input <image> Reference image for style guidance
--master-image <path> Use existing master instead of generating
--skip-generate Skip AI generation (requires --master-image)
--skip-remove-bg Skip background removal
--bg-color <hex> Background color for non-transparent presetsbun run icon "clean app icon version" --preset pwa --input ./existing-logo.png --output ./iconsbun run icon "" --preset ui-icons --master-image ./my-icon.png --skip-generate --output ./iconsbun run icon "weather app sun" --preset apple-app-icon --bg-color "#0066CC" --output ./icons/ios| Variable | Required | Description |
|---|---|---|
| Yes | Google AI Studio API key |
| Yes | Replicate API token for background removal |
output/
├── master-raw.png # Original generated image
├── master-nobg.png # Background removed
├── master-cropped.png # Cropped and centered
├── master-final.png # With background (iOS only)
├── favicon.ico # ICO bundle (favicon preset)
├── AppIcon.icns # ICNS bundle (macos preset)
├── icon-512.png # Size variants...
├── icon-256.png
└── ...| Issue | Solution |
|---|---|
| "GEMINI_API_KEY not set" | Export your API key: |
| "REPLICATE_API_TOKEN not set" | Export your token: |
| ICO not generated | Install ImageMagick: |
| ICNS not generated | Only works on macOS (requires iconutil) |
| Background not removed cleanly | Try a simpler prompt with solid background |
| Icon too complex | Simplify prompt, avoid "detailed" or "realistic" |