agentleFS
lifedeverlifedever/skills-plugin/skills/app-icon-generator/SKILL.md

app-icon-generator

Skill14 starsChanged 6 months agoMITView on GitHub

Generate professional app icons for macOS, Windows, iOS, Tauri, and Electron projects. Use when the user asks to: create an app icon, generate app icons, make a logo for their app, design an application icon, convert SVG to app icons, generate .icns/.ico files, or needs icons for Tauri/Electron/desktop apps. Handles the full pipeline: SVG design → multi-size PNG → .icns (macOS) → .ico (Windows).

  • Installs packages

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting, verify required tools are installed.

    line 17
  2. Very specific:

    Create logo.svg with these specs:

    line 32
  3. Very specific:

    Use linearGradient for depth, feDropShadow for polish

    line 38
  4. Distinctive:

    Keep shapes simple — icons render at 16x16 too

    line 39
  5. Distinctive:

    Run the bundled conversion script:

    line 58
  6. Distinctive:

    If Pillow is missing, .ico is skipped with a warning — all other formats still generate.

    line 81
  7. Distinctive:

    Contrast: Ensure recognizable on both light and dark backgrounds

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

App Icon Generator

Generate a production-ready app icon from concept to all required platform formats.

Prerequisites

Before starting, verify required tools are installed. Run this first and only proceed if all checks pass:

which rsvg-convert || echo "⚠ Install required: brew install librsvg"
python3 -c "import PIL" 2>/dev/null || echo "ℹ Optional: pip3 install Pillow (needed for .ico Windows icons)"
  • rsvg-convert — required for SVG → PNG rasterization. If missing, ask the user to install brew install librsvg and stop.
  • Pillow — optional, only needed if the user wants Windows .ico. Without it the script gracefully skips .ico and still produces .icns + all PNG sizes.
  • sips — pre-installed on macOS, no action needed.

Workflow

1. Design the SVG (1024x1024)

Create logo.svg with these specs:

  • Canvas: viewBox="0 0 1024 1024" width/height 1024
  • Safe area: 824x824 effective area, 100px padding on each side
  • Background: Rounded rect at x=100 y=100 width=824 height=824 rx=185 ry=185
  • Content: Centered within the 824x824 area
  • Use linearGradient for depth, feDropShadow for polish
  • Keep shapes simple — icons render at 16x16 too

Example skeleton:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
  <defs>
    <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
      <stop offset="0%" stop-color="#COLOR1"/>
      <stop offset="100%" stop-color="#COLOR2"/>
    </linearGradient>
  </defs>
  <rect x="100" y="100" width="824" height="824" rx="185" ry="185" fill="url(#bg)"/>
  <!-- Icon content here, centered around cx=512 cy=512 -->
</svg>

2. Convert to All Formats

Run the bundled conversion script:

bash "${CLAUDE_SKILL_DIR}/scripts/convert_icons.sh" logo.svg ./icons/

This generates all files in one step:

FilePurpose
32x32.png, 128x128.png, 128x128@2x.pngDesktop standard
icon.png (512x512)General use
icon.icnsmacOS app bundle
icon.icoWindows executable
Square*Logo.pngWindows UWP/Store
StoreLogo.pngWindows Store

3. Dependencies

  • rsvg-convert: brew install librsvg
  • iconutil: built-in on macOS
  • Pillow (for .ico): pip3 install Pillow

If Pillow is missing, .ico is skipped with a warning — all other formats still generate.

4. Framework Integration

Tauri: Save SVG as src-tauri/icons/logo.svg, output to src-tauri/icons/. Config:

"icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"]

Electron: Output to build/icons/. Reference in electron-builder config.

Design Guidelines

  • Contrast: Ensure recognizable on both light and dark backgrounds
  • Simplicity: Max 2-3 visual elements — must read at 16x16
  • No text unless a single letter/symbol (too small at icon sizes)
  • Rounded corners (rx=185): macOS/iOS convention; Windows ignores them
  • Gradients > flat color: Adds depth and polish

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.