Token导航 LogoToken导航

Agent Skill · 前端设计

app-icon(应用程序图标)

app-icon 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

app-icon 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在前端设计类的 10,216 个 Skill 里排第 658。

总安装 14,933周安装 610GitHub Stars 76下载 4,831核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:app-icon(应用程序图标)
来源仓库:https://github.com/code-with-beto/skills
仓库路径:skills/app-icon
安装命令:
npx skills add https://github.com/code-with-beto/skills --skill app-icon
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/code-with-beto/skills --skill app-icon

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

AI 为 React Native Expo 生成应用程序图标,支持 iOS 26 Liquid Glass 和 Android 自适应图标。

通过 SnapAI(OpenAI 的图像 API)生成 1024x1024 透明 PNG 图标,具有八种预设样式(极简主义、玻璃状、渐变、霓虹灯、材料、iOS 经典、像素、几何)或自定义描述 创建 iOS 26 .icon 具有液体玻璃配置、半透明度和阴影效果的文件夹结构 通过将主图标缩放至 66% 的安全区域并以透明画布为中心以防止跨设备形状剪切,生成 Android 优化的自适应图标 在 app.json 中配置两个平台 通过 monochromeImage 字段支持 Android 的 Material You 主题 需要 SnapAI CLI 和 OpenAI API 密钥(每个图标约 0.04 美元);在生成之前处理密钥设置和验证

来源仓库内路径:skills/app-icon

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/code-with-beto/skills --skill app-icon;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

app-icon 怎么安装?

在终端执行 npx skills add https://github.com/code-with-beto/skills --skill app-icon。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

app-icon 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

app-icon 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

app-icon 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

app-icon 用的人多吗?

公开数据是累计安装 14,933 次,近一周安装 610 次,下载 4,831 次,GitHub 76 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

app-icon 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
app-icon

应用程序图标 · 本页

14,93376接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

App Icon Generation Workflow

Overview

Generate professional app icons using AI and configure them for both iOS (with iOS 26 Liquid Glass support) and Android platforms in Expo apps.

Step 0: Verify SnapAI Setup (CRITICAL - DO THIS FIRST)

SnapAI is a free, open-source CLI built by the Code with Beto team. It calls OpenAI's image API directly using your personal API key, which is stored locally at ~/.snapai/config.json. SnapAI ships no telemetry, has no backend server, and collects zero data — your credentials never leave your device.

Before attempting to generate icons, check if SnapAI is configured:

  1. Check if SnapAI is configured:
npx snapai config --show
  1. If the config check fails or shows no API key:

- SnapAI requires an OpenAI API key to generate icons - Each icon costs approximately $0.04 via OpenAI's image generation API - Ask the user: "SnapAI requires an OpenAI API key. Do you have one, or would you like me to help you set it up?"

  1. If the user has an API key: snapai config --api-key <their-api-key> snapai config --show

- Ask them to provide it securely - Configure it for them with: - Verify the setup worked:

  1. If the user needs to get an API key:

- Direct them to: https://platform.openai.com/api-keys - Explain: "You'll need to: 1. Create an OpenAI account if you don't have one 2. Navigate to API keys section 3. Click 'Create new secret key' 4. Copy the key (starts with 'sk-') 5. Come back here and provide it to me" - Once they provide the key, configure it using the command above

Important Notes:

  • SnapAI is open source — your API key is stored in a local config file and sent directly to OpenAI. No intermediary servers, no data collection.
  • The tool itself is free; you only pay standard OpenAI API costs (~$0.04 per icon).
  • Do NOT proceed with icon generation if SnapAI is not configured
  • The key must start with "sk-" to be valid
  • You can handle the configuration for the user - just ask for their API key

Step 1: Understand the App Context

  • Read the app.json to understand the app name and current icon configuration
  • Ask the user what the app is about if not clear from context
  • Identify the app's theme, purpose, and target aesthetic

Step 2: Get Style Preferences

Ask the user what style they'd like for the icon. Available styles:

  • minimalism - Clean, Apple-inspired minimalism (2-3 colors max)
  • glassy - Premium glass aesthetic with semi-transparent elements
  • gradient - Vibrant gradients, Instagram-inspired
  • neon - Cyberpunk, futuristic with glowing effects
  • material - Google Material Design
  • ios-classic - Traditional iOS with subtle gradients
  • pixel - Retro 8-bit/16-bit game art style
  • geometric - Bold, angular compositions

Or let the user provide a custom style description.

Step 3: Generate Icon with SnapAI

Pre-flight check: Verify SnapAI is configured before running (see Step 0)

Generate a 1024x1024 icon with transparent background (critical for both platforms):

npx snapai icon --prompt "YOUR_PROMPT_HERE" --background transparent --output-format png --style STYLE_NAME

Important flags:

  • --background transparent - REQUIRED for iOS 26 and Android adaptive icons
  • --output-format png - Ensures PNG format
  • --style - Optional, enhances the visual style
  • --quality high - Optional, for final production icons

The icon will be saved to ./assets/icon-[timestamp].png

Step 4: Create iOS 26.icon Folder Structure

Create the new iOS 26 Liquid Glass icon format:

  1. Create the folder structure:
mkdir -p assets/app-icon.icon/Assets
  1. Copy the generated PNG:
cp assets/icon-[timestamp].png assets/app-icon.icon/Assets/icon.png
  1. Create assets/app-icon.icon/icon.json with this basic configuration:
{
  "fill": "automatic",
  "groups": [
    {
      "layers": [
        {
          "glass": false,
          "image-name": "icon.png",
          "name": "icon"
        }
      ],
      "shadow": {
        "kind": "neutral",
        "opacity": 0.5
      },
      "translucency": {
        "enabled": true,
        "value": 0.5
      }
    }
  ],
  "supported-platforms": {
    "circles": ["watchOS"],
    "squares": "shared"
  }
}

Step 4.5: Create Android-Optimized Adaptive Icon

Android adaptive icons have a smaller safe area (~66% of the canvas) compared to iOS. The main icon generated by SnapAI is optimized for iOS safe areas, which means it may appear too large and get clipped on Android devices with circular or squircle masks.

To ensure your icon displays correctly on all Android device shapes (circles, squircles, rounded squares), create a scaled-down version:

Using ImageMagick (recommended):

# Scale the icon to 66% and center it on a 1024x1024 transparent canvas
magick assets/icon-[timestamp].png \
  -resize 66% \
  -gravity center \
  -background transparent \
  -extent 1024x1024 \
  assets/android-icon.png

Alternative - Using sips + ImageMagick (macOS):

# Step 1: Resize to 66% (676x676)
sips -Z 676 assets/icon-[timestamp].png --out /tmp/icon-resized.png

# Step 2: Create the final centered image
magick -size 1024x1024 xc:transparent /tmp/icon-resized.png \
  -gravity center -composite assets/android-icon.png

Note: If ImageMagick is not installed, install it with:

brew install imagemagick

Step 5: Update app.json

Update the app.json to configure icons for both platforms:

For iOS:

{
  "expo": {
    "ios": {
      "icon": "./assets/app-icon.icon"
    }
  }
}

For Android:

Use the Android-optimized icon created in Step 4.5:

Option 1: Simple (with solid background color)

{
  "expo": {
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/android-icon.png",
        "backgroundColor": "#ffffff"
      }
    }
  }
}

Option 2: Comprehensive (recommended) Since the icon has a transparent background, you can use it for all three Android adaptive icon fields:

{
  "expo": {
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/android-icon.png",
        "backgroundImage": "./assets/android-icon.png",
        "monochromeImage": "./assets/android-icon.png"
      }
    }
  }
}

Benefits of Option 2:

  • foregroundImage - Main icon displayed
  • backgroundImage - Provides layered depth effect on Android 8.0+
  • monochromeImage - Used for themed icons on Android 13+ (automatically recolored by system)

Note:

  • For Option 1, ask the user for their preferred backgroundColor, or use white (#ffffff) as default
  • For Option 2, the same transparent PNG works perfectly for all three fields
  • Option 2 provides better integration with Android's Material You theming

Step 6: Verify and Test

  1. Verify the folder structure exists:
ls -la assets/app-icon.icon/
  1. Verify app.json is valid JSON:
cat app.json | jq .
  1. Inform the user to test the app with:
npx expo prebuild --clean
npx expo run:ios
npx expo run:android

Important Notes

  • Transparent background is critical - The icon must have a transparent background for both iOS Liquid Glass effect and Android adaptive icons
  • iOS 26.icon format - The .icon folder enables Liquid Glass effects on iOS 26+
  • Dual-asset workflow - This skill generates two icon assets:

- icon-[timestamp].png - Main icon optimized for iOS safe areas (used in .icon folder) - android-icon.png - Scaled to 66% and centered for Android adaptive icon safe areas

  • Why two assets? - iOS and Android have different safe zones. iOS allows content closer to edges (~80-85%), while Android adaptive icons only guarantee ~66% of the center is visible due to aggressive masking (circles, squircles, etc.)
  • Android adaptive icon flexibility - The android-icon.png can be used for foregroundImage, backgroundImage, AND monochromeImage fields
  • Material You support - Using monochromeImage enables Android 13+ themed icons that adapt to user's color scheme
  • File naming - The .icon folder name can be customized (e.g., app-icon.icon, myapp.icon)

Troubleshooting

SnapAI Configuration Issues

  • "No API key found" - Run snapai config --api-key <key> to set it up
  • "Invalid API key" - Verify the key starts with "sk-" and is copied correctly from OpenAI
  • Authentication errors - Check if the API key has been revoked or has insufficient credits at platform.openai.com
  • Command not found - Ensure you're using npx snapai (not just snapai)

Icon Display Issues

  • If the icon doesn't appear, verify the path in app.json matches the actual folder location
  • Ensure the PNG inside the.icon folder is exactly 1024x1024
  • For Android, make sure all image paths (foregroundImage, backgroundImage, monochromeImage) are correct and point to existing files
  • Run npx expo prebuild --clean to regenerate native projects after icon changes

ImageMagick Issues (for Android icon)

  • "convert: command not found" - Install ImageMagick with brew install imagemagick
  • Permission denied - Ensure you have write access to the assets folder
  • Icon still appears clipped on Android - Try reducing the resize percentage from 66% to 60% for more aggressive safe area compliance

平台分布

Codex

38.62%
按下载量换算1,866

Claude

30.06%
按下载量换算1,452

Cursor

17.54%
按下载量换算847

Gemini CLI

8.5%
按下载量换算411

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills