icon-generator
Skill2 starsChanged 8 months agoMITView on GitHub
Generate Android and iOS app icon sets from one source image with a bundled Pillow script. Use when Codex needs to create mobile app launcher icons, iOS AppIcon.appiconset assets, Android mipmap icons, adaptive icon foreground/background/XML files, extra square sizes, or rounded-corner icon exports from a logo or artwork file.
- Installs packages
7 other projects use a version of this.
Adopted by
Most recently taken up by
- UXLana/design-skills-packtheir own version, first seen Oct 25, 2026
- jagypus/icon-generatortheir own version, first seen Oct 20, 2026
- aki77/skillstheir own version, first seen Oct 13, 2026
- Gopyr/gopyr-skills-hubtheir own version, first seen Oct 11, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Sep 21, 2026
- anbeime/skilltheir own version, first seen Jun 17, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- anbeime/skill★ 7.9ksame name
- UXLana/design-skills-pack★ 8same name
- dycnnnb/skills★ 2same name
- aki77/skills★ 1same name
- ZeroTokenClaw/agents-skills★ 1same name
- Gopyr/gopyr-skills-hub★ 0same name
- jagypus/icon-generator★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 4 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use the bundled script to turn one source image into Android and iOS app icon assets.
- Very specific: line 28
Use the default contain mode when the full logo must stay visible and padding is acceptable.
- Very specific: line 29
Use cover when the icon must fill the square and center-cropping is acceptable.
- Very specific: line 30
Use --background to control padding color for non-square sources.
- Very specific: line 31
Use --corner-radius when the exported icons should already include rounded corners.
- Very specific: line 32
Use --extra-sizes when the user wants additional square PNGs beyond the built-in Android and iOS sizes.
- Very specific: line 33
Use --android-adaptive when the user explicitly needs Android adaptive icon resources.
- Very specific: line 65
Check android/mipmap-* for launcher PNGs.
- Very specific: line 66
Check android/play-store/play_store_icon.png for the 512px store asset.
- Very specific: line 67
Check ios/AppIcon.appiconset/Contents.json plus the generated PNG files.
- Very specific: line 68
If adaptive icons were requested, check android/mipmap-anydpi-v26/ for the XML files and ic_launcher_foreground.png / …
- Distinctive: line 72
If the script exits with a Pillow import error, install Pillow and rerun.
- Very specific: line 73
If colors fail to parse, pass #RRGGBB or #RRGGBBAA.
- Distinctive: line 74
If the source image is missing, stop and confirm the path before regenerating.
- Distinctive: line 75
If the user asks for non-square outputs or hand-tuned retouching, this skill is the wrong tool.
- Very specific: line 79
Use scripts/icon_generator.py for the actual export.
- Very specific: line 80
Read references/usage.md for argument details, size lists, and output structure.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Icon Generator
Overview
Use the bundled script to turn one source image into Android and iOS app icon assets. Prefer this skill when the task is deterministic icon export rather than manual image editing.
Quick Start
- Confirm the input image path.
- Run
python3 scripts/icon_generator.py <input-image> -o <output-dir>. - Inspect the generated
android/andios/AppIcon.appiconset/folders.
Install Pillow first if needed:
python3 -m pip install 'Pillow>=10.0.0'Workflow
Choose output behavior
- Use the default
containmode when the full logo must stay visible and padding is acceptable. - Use
coverwhen the icon must fill the square and center-cropping is acceptable. - Use
--backgroundto control padding color for non-square sources. - Use
--corner-radiuswhen the exported icons should already include rounded corners. - Use
--extra-sizeswhen the user wants additional square PNGs beyond the built-in Android and iOS sizes. - Use
--android-adaptivewhen the user explicitly needs Android adaptive icon resources.
Run the script
Basic export:
python3 scripts/icon_generator.py input.png -o output_iconsExport with crop, white padding, extra sizes, and rounded corners:
python3 scripts/icon_generator.py input.png \
-o output_icons \
--mode cover \
--background '#FFFFFFFF' \
--extra-sizes 256 384 \
--corner-radius 18Export Android adaptive icons too:
python3 scripts/icon_generator.py input.png \
-o output_icons \
--android-adaptive \
--adaptive-background '#FFFFFF'Validate Result
- Check
android/mipmap-*for launcher PNGs. - Check
android/play-store/play_store_icon.pngfor the 512px store asset. - Check
ios/AppIcon.appiconset/Contents.jsonplus the generated PNG files. - If adaptive icons were requested, check
android/mipmap-anydpi-v26/for the XML files andic_launcher_foreground.png/ic_launcher_background.png.
Troubleshooting
- If the script exits with a Pillow import error, install Pillow and rerun.
- If colors fail to parse, pass
#RRGGBBor#RRGGBBAA. - If the source image is missing, stop and confirm the path before regenerating.
- If the user asks for non-square outputs or hand-tuned retouching, this skill is the wrong tool; use an image editing workflow instead.
Resources
- Use
scripts/icon_generator.pyfor the actual export. - Read
references/usage.mdfor argument details, size lists, and output structure.
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
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.

