A prompt that has a coding agent redesign a Mac app’s icon by rendering it the way macOS shows it, beside the icons in your Dock, and iterating until it holds its own there. The icon is one flat SVG in an Icon Composer document; tested with Xcode 27.2 and macOS 27.
Redesign this app’s icon so it holds its own in my Dock. Work as a top macOS icon designer would, and keep it simple: one flat vector mark, a few colors, no photorealism, no letters. Judge every draft beside the icons it will sit next to, never alone. Choose the winner yourself and install it; I’ll react to the result. If this repo builds more than one app, ask which in one short message.
NSWorkspace.shared.icon(forFile:) on the installed app, drawn into a bitmap and saved as a PNG. Open the PNG and look.defaults read com.apple.dock persistent-apps lists the apps. Use my screenshot instead if I attached one.Build it as an Icon Composer document, AppIcon.icon: an icon.json and one SVG in Assets/, on a 1024 × 1024 canvas with flat fills only.
{
"fill" : { "solid" : "extended-srgb:0.075,0.082,0.098,1.0" },
"groups" : [
{
"layers" : [
{ "glass" : false, "image-name" : "Mark.svg", "name" : "Mark" }
],
"shadow" : { "kind" : "none", "opacity" : 0 },
"specular" : false,
"translucency" : { "enabled" : false, "value" : 0.5 }
}
],
"supported-platforms" : { "squares" : [ "macOS" ] }
}
Render it with ictool, inside Xcode at Contents/Applications/Icon Composer.app/Contents/Executables/:
ictool AppIcon.icon --export-image --output-file out.png \
--platform macOS --rendition Default --width 1024 --height 1024 --scale 1
ictool draws the tile edge to edge; the Dock shows it at about 80 percent, so shrink it to match.Bundle it the way this repo already does. In an Xcode project, add AppIcon.icon to the target and set it as the app icon. In a script-built app, compile it and add CFBundleIconName to Info.plist:
xcrun actool AppIcon.icon --compile MyApp.app/Contents/Resources --app-icon AppIcon \
--platform macosx --minimum-deployment-target 15.0 --output-partial-info-plist /dev/null
An app that’s open keeps its old Dock icon until it’s reopened; say so, and don’t quit it for me.