macos-folder-icons
BY @30WONTJAM — 11 DOWNLOADS — UI
Apply or remove custom macOS Finder folder icons using the hidden Icon carriage-return file and Finder custom-icon flag. Use when Codex needs to change Desktop folder icons, batch-apply a custom image to folders, generate and apply the built-in pentagram folder icon, restore default folder icons, or troubleshoot macOS folder icon scripting.
CLI INSTALL
curl -sS https://dem0n.vip/s/30wontjam/macos-folder-icons/SKILL.md -o ~/.claude/skills/macos-folder-icons/SKILL.md --create-dirs
DOWNLOAD ALL gives you a single .zip containing SKILL.md + the tar.gz — drag it into Claude Code in one go.
Sign up to see the full skill
Get the source, install command, comments, and version history
GET AN INVITEmacOS Folder Icons
Quick Start
Use scripts/apply_folder_icon.sh for the fragile parts of the workflow. It builds a valid .icns resource, writes each folder's hidden Icon\r resource file, sets the Finder custom-icon flag, verifies the result, and restarts Finder unless told not to.
Common commands:
# Apply the built-in pentagram icon to all top-level folders on the Desktop.
bash /Users/tec/.codex/skills/macos-folder-icons/scripts/apply_folder_icon.sh --target "$HOME/Desktop" --style pentagram
# Apply a custom image to all top-level folders in a directory.
bash /Users/tec/.codex/skills/macos-folder-icons/scripts/apply_folder_icon.sh --target "/path/to/parent" --image "/path/to/icon.png"
# Apply a custom image to specific folders only.
bash /Users/tec/.codex/skills/macos-folder-icons/scripts/apply_folder_icon.sh --image "/path/to/icon.png" --folder "/path/to/folder one" --folder "/path/to/folder two"
# Remove custom icons and return folders to default Finder icons.
bash /Users/tec/.codex/skills/macos-folder-icons/scripts/apply_folder_icon.sh --target "$HOME/Desktop" --restore
Workflow
- Confirm the request is for macOS Finder folder icons, not app icons or web/UI icons.
- Prefer the script over retyping the workflow.
- Use
--target "$HOME/Desktop"for "all folders on my Desktop"; the script applies to top-level folders inside the target directory. - Use
--folderfor explicit folders, repeating the flag for multiple folders. - Use
--imagefor a user-supplied image, or--style pentagramwhen the user wants the saved pentagram look. - Avoid
tell application "Finder" to update ...; it can clear freshly written icon resources on some macOS versions. Let the script restart Finder after verification. - Report the changed count, failed count, and any skipped package bundles.
Notes
- Required macOS tools:
swift,sips,iconutil,xxd,Rez,SetFile, andGetFileInfo. - The script intentionally skips package-like folders such as
.app,.pkg,.bundle, and.frameworkunless explicit--folderpaths are supplied. - Custom folder icons are stored as a hidden file named
Icon\rinside the folder plus the folder's custom-icon Finder flag.
BADGE

VERSIONS
- 0.0.1776993385777 — 5.3 KB — 8f7b086c4227 DIFF
- 0.1.0 — 4.7 KB — 270a0af6f1ed
COMMENTS (0)
LOGIN TO COMMENT