oil-icon skill
A Claude Code and Codex skill that draws 16 matching icons on one sheet and slices them into transparent PNGs
- 321 ★ on the repository
- Last commit
- MIT
Broad access
Why this level
- The setup page stores external service keys in the system credential store
- Scripts install Python dependencies and may pull a background-removal model
- The agent calls a paid image generation service when no built-in tool exists
Install
- Works in
In your terminal, with SkillFoxx CLI
npx skillfoxx add skills/oil-iconDetects the agents on your machine, shows the access level and pins the version.
Other ways to install
Access and checks
How we reviewBroad accessThe tool can change data, run commands or handle secrets.
- The setup page stores external service keys in the system credential store
- Scripts install Python dependencies and may pull a background-removal model
- The agent calls a paid image generation service when no built-in tool exists
This is third-party code. Review the repository files before installing.
What it does
oil-icon picks a style and metaphors for a product's feature list, draws one 4x4 sheet on a grey backdrop and slices it into separate files. The skill then removes the background from each file. The style comes from nine built-in presets: linear, single-colour filled, colour blocks, cartoon, isometric, 3D, sticker, realistic objects and animal badges. You can tweak a preset, fit it to a brand from design tokens, a logo and screenshots, or describe a direction in words. Once the style is approved, the palette and construction rules are frozen and new icons follow them. All icons come from one generation, so the model sees the whole set and keeps line weight, corner radius and colour consistent. One pass is not enough for full uniformity. That is why the skill inspects every icon on a high-contrast backdrop and looks for grey fringes and bleed between neighbouring cells.
Who it is for. For designers and developers who need a branded set of illustrative icons for features, categories, cards and empty states.
Good fit when
- You need 16 icons for product sections in one style, for example soft 3D or isometric
- The icons must match a brand: the agent reads design tokens, a logo and screenshots and builds a style from them
- Cards, a landing page and empty states need illustrative icons with a transparent background
- You only have a product description: pick a style in one phrase and generate a sample first
- You want to add new icons to an existing set using the already frozen palette
Not a fit when
- You need small functional 16–24 px glyphs for buttons: a vector library such as Lucide fits better
- You need one simple vector icon as SVG: the skill outputs raster PNGs
- The agent has no image generator and no provider key: there is nothing to draw the sheet with
- You need a hard uniformity guarantee without manual review: one generation does not give it
Example request
[$oil-icon] For my AI writing tool, make a set of 16 soft 3D icons: drafts, templates, rewrite, translate, history and exportLimitations
The skill does not draw by itself: the sheet comes from the agent's image tool, then a Codex CLI fallback, then an external API. For OpenAI Images the script reads `OPENAI_API_KEY`, and that API is not reachable from Russia. Slicing needs Python dependencies installed by `scripts/setup.sh`, and the rembg model is pulled in for soft edges when needed. The key setup page requires Node.js 22.18 or newer. The result stays a raster PNG, and a 9-cell sheet must be requested with the `--grid 3` flag.
How to disable. Delete the oil-icon folder from the agent's skills directory. Keys saved through the setup page live in the system credential store and are removed there.
FAQ
How do I install oil-icon in Claude Code?
Run `npx skills add oil-oil/oil-icon` or send the agent the phrase "Install this skill: https://github.com/oil-oil/oil-icon". After that, call the skill as `[$oil-icon]` and describe the icon list and use case.
How many icons do I get, and can I ask for fewer?
A 4x4 sheet gives 16 icons by default. For 9, pick a 3x3 sheet and pass `--grid 3`. For any other smaller count the skill still draws a 4x4 sheet: the requested icons go first and the remaining cells stay empty grey.
How is oil-icon different from a vector icon library?
A library such as Lucide ships ready-made monochrome interface glyphs. oil-icon draws illustrative icons for your product in a chosen manner, from linear to 3D, and keeps the style through a frozen palette. For small 16–24 px buttons a library is handier.
How does the skill remove the background?
For hard-edged styles it removes the background by colour, for soft 3D and sticker styles it uses a background-removal model. The slicer keeps only the central subject of each cell so fragments of neighbouring icons do not end up in the file.
Do I need an API key?
If the agent has a built-in image generator, no external key is needed. Otherwise the skill calls an external provider, and the key is entered on a local setup page, so it never has to go into chat.
Discussion
No questions or reviews yet.
Related
SkillsA skill that generates extremely simple, cute mascot characters for logos: rounded forms, three colors, lower-corner composition
A skill that draws original print-style illustrations: one idea per frame, played out by a recurring mascot
A Codex skill that redraws your photo as a watercolor illustration on white paper, with wide margins and a handwritten caption
A skill that assembles ready image prompts in hand-drawn styles from a set of tested recipes: kids drawing, minimal line, crayon, Ghibli look and more
Ozon listing image set skill
generate-ozon-image-set
A Codex skill that builds eight Ozon listing images from product photos and verified facts, with Russian localization and a guard against invented claims
A skill that draws interactive isometric illustrations in SVG, with WebGL shaders and React output, explaining an idea as a working machine
Comparison with similar tools
Entries that share the main search query, and how they differ.
| Entry | Official | Authentication | Repository stars | Main difference |
|---|---|---|---|---|
| oil-icon (this entry) | no | 321 | ||
| theSVG | yes | not required | 2,923 | serves ready-made brand SVG icons from a library, with no generation |
| Brand Identity Skill | no | 209 | builds a whole brand: logo, type, colour and files |
README in short
The Chinese README opens with the problem: asked to draw icons one by one, a model forgets line weight and colour. A table of nine styles follows, then install options and a sample prompt. The last section covers keys for external providers.
README badge
Original SKILL.md
--- name: oil-icon description: "生成风格统一的图标集合,通过宫格生图、切分和去背景交付透明 PNG。用户需要成套自定义图标、栏目图标或匹配品牌风格的图标时使用;不用于单个简单矢量图标或小尺寸密集功能符号。" --- # oil-icon Generate a **set** of icons that share one visual style, output as transparent PNGs. Image generation runs on a flat grey backdrop as a 4×4 sheet — 16 icons in one generation, 有助于统一风格,但仍需逐个检查 — then each cell is sliced out and background-removed. Agent owns the design decisions (which style, which palette, which metaphors, whether to match a brand); image generation and slicing are mechanical steps. ## API Key 配置入口 需要外部服务凭据时先读[API Key 配置与业务读取](references/api-key-setup.md):复用已有安全入口;本机缺少 Key 时使用随附固定页面,保存后通过业务包装入口读取。内置能力与纯本地流程不要求配置 Key。 ## Workflow 1. **Choose the style.** Either pick a built-in from `styles/` (table below), or **match the user's brand** by reading their project's design tokens / assets and deriving a custom style-spec — see `reference/style-adaptation.md`. Freeze the result as a style-spec with the same fields as the built-in JSONs; 后续批次复用同一规范,并检查生成偏差. 2. **List the icons.** Write each concept as `name — short concrete metaphor` (e.g. `settlement — a wallet with a coin`). One clear idea per icon; keep the detail level consistent across the set. 默认每张 **16** 格;明确选择 **9** 格时,提示词使用 3×3,切图命令必须同时传 `--grid 3`。 If the user asks for an exact count below 16, still use a **4x4 / 16-cell sheet**: place the requested icons first in row-major order, then explicitly ask the remaining cells to stay empty grey background. 3. **Compose the prompt.** `style.preamble` + the style's `construction` fields (as short guidance) + palette-lock line + numbered metaphors + the fixed composition text — see `reference/prompt-template.md` and `reference/construction.md`. 4. **Generate the sheet(s).** Choose an image provider by capability, in order (see `reference/image-providers.md`) — never assume Codex is present: 1. **Built-in / host imagegen first** — if the running agent already has a callable image-generation tool, including Codex's built-in `image_gen` tool or the `imagegen` skill, call it directly. Do not delegate to external Codex CLI just to reach imagegen from another process. 2. **Codex CLI fallback** — only if this agent has no callable image-generation tool, and Codex is available (从可用 Skill 清单定位 codex,或使用 PATH 中已有的 codex), delegate generation to it. 3. **External API fallback** — only if neither of the above exists, 沿用用户已授权的供应商;缺少凭据时按配置说明打开随附页面,不索要聊天中的 Key; for OpenAI Images, `scripts/gen_image.py --prompt "…" --out raw/<style>.png` is ready. Save or copy each generated sheet to `raw/<style>.png` on flat grey `#808080`. Built-in imagegen may save under `$CODEX_HOME/generated_images/...`; after generation, move or copy the selected PNG into the task output `raw/` folder. 同一张图更容易保持共同风格,但仍须逐个验收,不能把一次生成视为一致性保证; a provider only has to turn the prompt into a grey-background PNG. 5. **Slice.** Run `scripts/setup.sh` once, then: `.venv/bin/python3 scripts/slice_icons.py <raw>.png <outdir> --mode <cutout> [--thresh N] [--grid 4] [--count N]` using the style's `cutout` mode (`floodfill` for flat/hard-edge, `rembg` for soft / 3D / glossy / photo). 6. **QA (mandatory).** Composite the sliced PNGs onto a contrasting colour (e.g. magenta) and check every icon for (a) a fragment bled in from a neighbouring cell, (b) leftover grey, and (c) consistency against the style's `construction` — uniform stroke, one radius, matched detail level, shared parts, motif present, single perspective, and no accent out-weighting the defining element (in line styles the accent must be lighter and smaller than the stroke). Re-slice or regenerate any that fail — never ship an icon carrying part of the one above it. 7. **Deliver** the transparent PNGs, organized and named. ## Built-in styles | style | look | cutout | fits | |---|---|---|---| | linear | mono line / outline | floodfill | utility, settings | | filled | solid single-colour glyphs | floodfill | mobile nav / tab bars | | colorblock | bold flat multi-colour blocks | floodfill | kids, creative | | cartoon | sticker-style cartoon | rembg | games, entertainment | | isometric | isometric 3D miniatures | rembg | SaaS, dashboards | | render3d | glossy puffy 3D | rembg | rewards, onboarding | | sticker | die-cut glossy vinyl | rembg | social, reactions | | realistic | photoreal product renders | rembg | e-commerce, hero |