一键导入
icon
Generate icons, stickers, and app assets using AI. Use when user wants to create icons, stickers, logos, or visual assets.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate icons, stickers, and app assets using AI. Use when user wants to create icons, stickers, logos, or visual assets.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | icon |
| description | Generate icons, stickers, and app assets using AI. Use when user wants to create icons, stickers, logos, or visual assets. |
| disable-model-invocation | false |
| user-invocable | true |
| allowed-tools | Bash, Read, Write, Glob |
| argument-hint | <description> [--ref <reference-image>] [--style <style>] [--output <path>] |
Generate icons, stickers, and visual assets using Google's Imagen (nano-banana) model.
Parse the user's request from: $ARGUMENTS
Expected formats:
/icon a happy cloud mascot - Generate icon with description/icon a cat waving --ref ./style.png - Match style of reference image/icon app logo --style flat-minimal --output ./assets/logo.png - With style preset and output path/icon --setup - Configure API keyIf user runs /icon --setup or if GEMINI_API_KEY is not configured:
security add-generic-password -a "$USER" -s "gemini-api-key" -w "THE_API_KEY" -U
Check API key exists:
security find-generic-password -a "$USER" -s "gemini-api-key" -w 2>/dev/null
If not found, guide user through setup.
Determine output path:
--output specified, use thatAssets.xcassets/./generated-icons/Run the generator script:
python3 "$(dirname "$0")/../../scripts/generate_icon.py" \
--description "USER_DESCRIPTION" \
--reference "REFERENCE_PATH_IF_ANY" \
--style "STYLE_IF_SPECIFIED" \
--output "OUTPUT_PATH"
Show the result:
open OUTPUT_PATHAvailable styles (use with --style):
flat-minimal - Clean, flat design with minimal details3d-glossy - 3D look with glossy highlightshand-drawn - Sketch/illustration stylepixel-art - Retro pixel art stylegradient - Modern gradient styleoutline - Line art / outline onlysticker - Sticker style with white border (auto-removes background)User: /icon a smiling sun for a weather app
→ Generate cheerful sun icon, save to ./generated-icons/
User: /icon matching this style --ref ./my-icons/home.png a settings gear
→ Analyze reference, generate gear icon in same style
User: /icon --setup
→ Guide through API key configuration
pip install rembg