Skip to content
Back to skills

2618 Create Macos Icon 276a448e

ASecurity

Convert a PNG image to a proper macOS .icns icon file for ClaudeQ Monitor.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
ai-agentsbash

Works with

  • cli

Security analysis

A93/100
  • highPerforms destructive filesystem operations

Pro shows the line behind each finding and how to fix it

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2618-create-macos-icon_276a448e --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2618 Create Macos Icon 276a448e?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2618 Create Macos Icon 276a448e
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2618-create-macos-icon-276a448e/badge)](https://www.skillsdirectory.com/skills/tools-only-2618-create-macos-icon-276a448e)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Create macOS App Icon

Convert a PNG image to a proper macOS .icns icon file for ClaudeQ Monitor.

## Prerequisites

- ImageMagick installed (`brew install imagemagick`)
- Source PNG image

## Recommended Method: macOS Photos "Copy Subject"

This is the **best method** to get a clean icon without white background issues in the Dock.

### 1. Extract Subject Using Photos App

1. Open the source image in **Photos** app (double-click or drag into Photos)
2. Right-click on the image
3. Select **"Copy Subject"** - this uses macOS AI to extract the main content with proper transparency
4. Open **Preview** app
5. Press **Cmd+N** (New from Clipboard)
6. **Cmd+S** to save as PNG to `~/Downloads/` or directly to `assets/`

This method ensures:
- Clean edges with proper anti-aliasing
- True transparency (no hidden white/gray pixels)
- Works perfectly in macOS Dock

### 2. Create Icon Set

```bash
cd /Users/Nevo.Mashiach/workspace/claudeq/assets

# Copy your extracted image
cp ~/Downloads/your-extracted-image.png claudeq-icon.png

# Create iconset directory
rm -rf claudeq-icon.iconset
mkdir claudeq-icon.iconset

# Generate all required sizes
for size in "16 16x16" "32 16x16@2x" "32 32x32" "64 32x32@2x" "128 128x128" "256 128x128@2x" "256 256x256" "512 256x256@2x" "512 512x512" "1024 512x512@2x"; do
  pixels=$(echo $size | cut -d' ' -f1)
  name=$(echo $size | cut -d' ' -f2)
  magick claudeq-icon.png -resize ${pixels}x${pixels} "claudeq-icon.iconset/icon_${name}.png"
done

# Convert to ICNS
iconutil -c icns claudeq-icon.iconset

# Cleanup
rm -rf claudeq-icon.iconset
```

### 3. Install and Clear Cache

```bash
cd /Users/Nevo.Mashiach/workspace/claudeq

# Rebuild app
make install-monitor

# Clear macOS icon cache (REQUIRED!)
sudo rm -rf /Library/Caches/com.apple.iconservices.store
rm -rf ~/Library/Caches/com.apple.iconservices
killall Dock
```

## Alternative: Full-Bleed Icon (No Transparency Needed)

If your icon fills the entire canvas edge-to-edge (like the current ClaudeQ space icon), you don't need transparency - macOS will apply its own rounded mask.

Just ensure the image is square (1024x1024 recommended) and follow steps 2-3 above.

## Alternative: ImageMagick Background Removal

If you can't use Photos app, try ImageMagick flood fill:

```bash
# Check corner pixel color
magick input.png -format "%[pixel:p{0,0}]" info:

# Remove background from corners only (preserves center)
magick input.png -fuzz 5% -fill none -floodfill +0+0 "#CORNER_COLOR" output.png
```

**Warning**: This method often leaves subtle edge artifacts that cause white backgrounds in Dock.

## Troubleshooting

### White background in Dock

1. **Best fix**: Re-extract using Photos app "Copy Subject" method
2. Clear icon cache (step 3 above)
3. Restart Finder: `killall Finder`

### Icon not updating

```bash
sudo rm -rf /Library/Caches/com.apple.iconservices.store
rm -rf ~/Library/Caches/com.apple.iconservices
killall Dock
killall Finder
```

### Image not square

```bash
# Force to square (may distort)
magick input.png -resize 1024x1024! output.png

# Or resize with padding (preserves aspect)
magick input.png -resize 1024x1024 -gravity center -background none -extent 1024x1024 output.png
```

## Icon Requirements

macOS .icns format requires these sizes:
- 16x16, 16x16@2x (32px)
- 32x32, 32x32@2x (64px)
- 128x128, 128x128@2x (256px)
- 256x256, 256x256@2x (512px)
- 512x512, 512x512@2x (1024px)

## Quick Reference

```bash
# Full workflow after extracting via Photos "Copy Subject"
cd assets
cp ~/Downloads/extracted-icon.png claudeq-icon.png
rm -rf claudeq-icon.iconset && mkdir claudeq-icon.iconset
for size in "16 16x16" "32 16x16@2x" "32 32x32" "64 32x32@2x" "128 128x128" "256 128x128@2x" "256 256x256" "512 256x256@2x" "512 512x512" "1024 512x512@2x"; do
  pixels=$(echo $size | cut -d' ' -f1); name=$(echo $size | cut -d' ' -f2)
  magick claudeq-icon.png -resize ${pixels}x${pixels} "claudeq-icon.iconset/icon_${name}.png"
done
iconutil -c icns claudeq-icon.iconset && rm -rf claudeq-icon.iconset

# Install and clear cache
cd .. && make install-monitor
sudo rm -rf /Library/Caches/com.apple.iconservices.store
rm -rf ~/Library/Caches/com.apple.iconservices
killall Dock
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.