From rules-for-ai
Creates image assets for projects: logo marks, icons, favicons, promo tiles, and README header images. Focuses on flat geometric designs in the modern OSS style.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rules-for-ai:hashiiiii-imagesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
First decide vector vs raster: if the image is fully describable in words (flat geometric marks, icons, tiles, headers), write it as SVG code with the recipe below — never generate it as a raster image. The quality lever is not the drawing; it is the harness: constrain the design language, explore several candidates side by side, verify at real target sizes, then converge on one.
First decide vector vs raster: if the image is fully describable in words (flat geometric marks, icons, tiles, headers), write it as SVG code with the recipe below — never generate it as a raster image. The quality lever is not the drawing; it is the harness: constrain the design language, explore several candidates side by side, verify at real target sizes, then converge on one.
When NOT to use this recipe: illustrative or photorealistic artwork (mascots, rich 3D icons, photos) — use a raster image generator and a background-removal pipeline instead.
Four inputs shape every step below. Note which ones the request and the repository already state; for each missing one, ask the user — one question at a time, offering the default so they can accept it in a word. Do not draw until all four are settled: a "placeholder" accent or an "exploratory" first pass is still a guess, and a wrong background or color invalidates the whole contact sheet, so one question up front is cheaper than redrawing six candidates.
| Input | Confirm | Default to offer |
|---|---|---|
| Target | Which asset (favicon, app or extension icon, README header, promo tile) and the smallest size it must survive | None — always ask when unstated |
| Colors | Accent color (existing brand color?) and intended background (dark, light, or both) | Dark background, single accent |
| Motif | What the name means, domain concepts, motifs to avoid | Derive from the project name and README |
| Output | SVG only or PNG exports too, and where files go | SVG mark plus PNG exports at target sizes |
Target sets the sizes verified in step 3; Motif seeds the metaphor list in step 2.
fill-rule="evenodd" subpaths, not background-colored shapes, so the mark survives on any background.Render loop:
rsvg-convert -w 1200 sheet.svg -o sheet.png # inspect visually
for s in 16 32 48 128; do rsvg-convert -w $s -h $s mark.svg -o mark-$s.png; done
| Target | Verify at |
|---|---|
| Favicon / browser tab | 16 px |
| Toolbar, extension list | 32 / 48 px |
| Store listing, README | 128 px+ |
| Mistake | Fix |
|---|---|
| Drawing with "placeholder" colors or sizes while questions wait at the end | Ask before drawing — one question per missing input, with a default offered |
| Polishing the first idea | Explore 4-6 candidates on a sheet before converging |
| Illustrative pictogram (a scene with a subject doing something) | If describing it needs a verb, it is an illustration — reduce to an abstract form |
| Background rectangle baked into the mark | Foreground only; backgrounds live in the context |
| Holes filled with the background color | fill-rule="evenodd" so holes are transparent |
| Judging legibility at full size only | Put the small size on the sheet next to the large one |
npx claudepluginhub hashiiiii/rules-for-ai --plugin rules-for-aiDesigns and iterates on SVG logos via structured interviews for format, style, colors, and sizes. Generates side-by-side previews and PNG exports at standard sizes.
Generates square PNG icons with transparent backgrounds for app icons, favicons, and UI using Google Gemini. Supports flat/3D/line/glyph/gradient/minimal styles, sizes 128-1024px, batch sets, reference matching.
Generates code-based visual assets: SVG icons, OG image HTML templates, social banners, and icon sets. Outputs files with light/dark variants and usage instructions.