К основному содержанию
скилл CX Codex

icon-set-generator — скилл для Claude Code: SVG-иконки в едином стиле

Скилл рисует набор SVG-иконок под конкретный проект: один стиль, одна сетка, одинаковый штрих. Пригодится, когда сайту нужен свой набор, а не Lucide.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add jezweb/claude-skills --skill icon-set-generator -a claude-code
Открыть на GitHub

Что делает icon-set-generator

Скилл ведёт агента по шагам. Сначала он спрашивает про проект: чем занимается бизнес, какое настроение нужно, сколько примерно иконок. Короткого описания вроде «сантехник, современный стиль» хватает, допрос не устраивает. Потом предлагает список иконок по группам — навигация, связь, доверие, действия, отраслевые — и даёт его поправить до генерации.

Дальше выбирается пресет стиля: Clean, Sharp, Soft, Minimal или Bold. Пресет задаёт толщину штриха, форму окончаний и радиус углов, и эти правила применяются ко всем иконкам без исключений. Иконки генерируются партиями примерно по пять штук с визуальной проверкой после каждой партии. На выходе — отдельные .svg файлы в папке icons/, плюс style-spec.json и preview.html со всеми иконками на светлом и тёмном фоне.

Жёсткие правила внутри скилла стоит знать заранее: цвет только через currentColor, одинаковый viewBox у всех иконок, никаких transform на корневом элементе, точность координат до двух знаков. Если в проекте иконки красятся инлайновым fill или stroke с конкретным цветом, набор придётся переделывать — скилл такое не пропускает. Ещё он компенсирует оптику: изогнутые линии кажутся тоньше прямых, поэтому контуры телефона или глобуса делаются чуть крупнее.

Какие задачи решает

  • собрать набор SVG-иконок под конкретный сайт или приложение
  • удержать единый стиль, когда иконок больше двадцати
  • получить иконки, которые красятся через CSS, а не зашитым цветом
  • показать заказчику превью всего набора до вёрстки
  • подобрать толщину штриха и радиусы под настроение бренда

Примеры запросов агенту

  • сделай набор иконок для сайта стоматологии, современный стиль, около 20 штук
  • нужны SVG-иконки для лендинга — навигация, контакты, преимущества
  • сгенерируй иконки под проект и покажи preview.html

Как установить icon-set-generator

1Через Skills CLI (Vercel)

npx skills add jezweb/claude-skills --skill icon-set-generator -a claude-code

2Вручную: положить файлы

~/.claude/skills/icon-set-generator/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/icon-set-generator/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора54

tanstack-start Скилл собирает фуллстек-приложение на TanStack Start и Cloudflare Workers с нуля: SSR, файловый роутинг, D1, авторизация. Пригодится, когда нужен рабочий каркас без клонирования шаблона. CX Codex +1 2 500установок image-processing Ресайз, обрезка полей, конвертация в WebP и PNG, тумбнейлы и OG-картинки. Всё через CLI img-process на Pillow, без ImageMagick. CX Codex +1 2 400установок favicon-gen Скилл создаёт набор иконок для сайта и PWA из логотипа, монограммы или фирменных цветов. Генерирует файлы SVG, ICO, PNG и манифест. CX Codex +1 2 200установок google-apps-script Скилл, который пишет скрипты Apps Script для Google Sheets и Workspace: меню, триггеры, боковые панели, выгрузка PDF. CX Codex +1 2 000установок seo-local-business Генерирует метатеги <head>, микроразметку JSON-LD LocalBusiness, robots.txt и sitemap.xml для сайтов локальных компаний с привязкой к регионам и пригородам. CX Codex +1 1 800установок elevenlabs-agents Собирает голосовых ИИ-агентов на ElevenLabs: настраивает агента, инструменты, базу знаний и подключение SDK. CX Codex +1 1 700установок wordpress-content Создаёт и правит посты, страницы, медиа, рубрики, метки и меню WordPress через WP-CLI или REST API. Пригодится, когда контент надо заливать пачкой, а не руками в админке. CX Codex +1 1 700установок d1-drizzle-schema Генерирует схемы Drizzle ORM с учётом ограничений Cloudflare D1. Помогает описать таблицы, настроить миграции и задокументировать структуру базы данных. CX Codex +1 1 700установок

Похожие

svg-icon-generator Jeremy Longshore Скилл для задач с SVG-иконками: подсказывает шаги, пишет код и проверяет результат. Включается сам, когда в запросе есть «svg». CX Codex +1 1 300установок suggest-icon FortAwesome Подбирает иконку Font Awesome под ситуацию, слово или понятие и проверяет, что она есть в вашей версии или Kit. CX Codex +1 551установок icon-system Owl-Listener Задаёт правила для системы иконок: сетку 24x24px, шкалу размеров, именование и доступность. Пригодится при наведении порядка в дизайн-системе проекта. CX Codex +1 2 400установок llm-icon-finder daymade Скилл находит ссылки на иконки AI-моделей и провайдеров из библиотеки lobe-icons и помогает скачать их в SVG, PNG или WEBP. CX Codex +1 952установок logo-design kaankiziltug Помогает проектировать векторные логотипы, иконки и айдентику прямо в агенте: от брифа и поиска идей до аудита геометрии SVG и генерации фавиконов. CX Codex +1 1 100установок icons-badges dylantarre Скилл для анимации иконок, бейджей, аватаров и статус-индикаторов. Пригодится, когда мелкие элементы интерфейса должны давать отклик и характер. CX Codex +1 535установок

Рядом в теме «Дизайн»

Всё по теме «Дизайн» →

Вопросы о icon-set-generator

Как установить icon-set-generator в Claude?

Через CLI скиллов: npx skills add jezweb/claude-skills --skill icon-set-generator -a claude-code. После этого файл скилла лежит в ~/.claude/skills/icon-set-generator/SKILL.md.

Что делает icon-set-generator?

Генерирует набор SVG-иконок под конкретный проект по общей спецификации стиля: одинаковая толщина штриха, форма углов и плотность. На выходе отдельные файлы, style-spec.json и страница превью.

Чем это отличается от Lucide или Heroicons?

Скилл не ищет готовые иконки в библиотеке, а рисует свои под проект. Смысл в том, что сайты на популярных наборах выглядят похоже, а свой набор даёт другое лицо.

Исходный текст

SKILL.md · MIT
---
name: icon-set-generator
description: "Generate cohesive, project-specific SVG icon sets for websites and applications. Use this skill whenever the user needs custom icons, an icon set for a website or app, icons for a client project, or mentions needing SVG icons that look consistent together. Also trigger when the user describes a project and icons would naturally be part of the deliverable — e.g. 'I'm building a site for a plumber' implies they'll need service icons. Trigger on: 'icons for', 'icon set', 'custom icons', 'SVG icons', 'make me icons', 'I need icons', 'website icons', 'project icons', or any request for consistent visual assets for a web project. Produces individual SVG files with a consistent style engine, not generic icon library lookups."
compatibility: claude-code-only
---

# Icon Set Generator

Generate custom, visually consistent SVG icon sets tailored to specific projects. Each set is built from a shared style specification so every icon looks like it belongs with the others — same stroke weight, same corner treatment, same visual density.

## Why This Matters

Generic icon libraries (Lucide, Heroicons) are great but every site using them looks similar. A custom icon set gives a project distinct visual identity. The hard part is consistency — drawing 20+ icons individually causes style drift. This skill solves that by defining style rules once and enforcing them across every icon.

## Workflow

### Step 1: Understand the Project

Ask about the project. You need enough to suggest icons and pick a style:

- What's the business/project? (industry, name, vibe)
- Any brand guidelines or colour palette? (informs style choices even though SVGs use currentColor)
- What feel? (modern, friendly, corporate, minimal, bold)
- Roughly how many icons? (typical small site: 15-25)

A brief like "plumber in Newcastle, modern feel" is enough to proceed. Don't over-interview.

### Step 2: Suggest Icons

Read `references/industry-icons.md` for industry-specific suggestions. Organise into groups:

- **Navigation** — menu, close, arrows, search
- **Communication** — phone, email, location, clock
- **Trust** — star, shield, award, users
- **Actions** — download, share, calendar, form
- **Industry-Specific** — icons unique to this business type

Present the list. Let the user add, remove, or rename before generating.

### Step 3: Define the Style Spec

Read `references/style-presets.md` for full preset definitions. Pick one as starting point:

| Preset | Best For | Stroke | Caps/Joins | Corners |
|--------|----------|--------|------------|---------|
| Clean | Most business sites | 1.5px | round/round | 2px |
| Sharp | Corporate/technical | 1.5px | square/miter | 0px |
| Soft | Friendly/approachable | 2px | round/round | 4px |
| Minimal | Elegant/editorial | 1px | round/round | 0px |
| Bold | High impact/accessible | 2.5px | round/round | 2px |

Tell the user which preset you're recommending and why, then confirm.

### Step 4: Generate the Icons

Generate every icon following the SVG Rules below. Output to an `icons/` directory in the project root (or the user's preferred location).

Read `references/svg-examples.md` before generating — it contains reference implementations showing the right level of complexity and how to handle common icon shapes.

Generate in batches of ~5. After each batch, visually review for consistency before continuing. After all icons are done, create the preview page and style-spec.json.

### Step 5: Deliver

Output structure:
```
icons/
├── style-spec.json
├── preview.html
├── home.svg
├── phone.svg
└── ...
```

Present `preview.html` first so the user sees the complete set visually.

---

## SVG Rules

Every icon in a set MUST follow all of these. Even small inconsistencies — a slightly different stroke width, a rounded corner where others are sharp — make the set look amateur.

### SVG Template

Every icon uses this exact outer structure:

```xml
<svg xmlns="http://www.w3.org/2000/svg"
  width="{grid}" height="{grid}"
  viewBox="0 0 {grid} {grid}"
  fill="none"
  stroke="currentColor"
  stroke-width="{strokeWidth}"
  stroke-linecap="{strokeLinecap}"
  stroke-linejoin="{strokeLinejoin}">
  <!-- icon paths here -->
</svg>
```

### Hard Rules

1. **`currentColor` only** — Never hardcode colours. SVGs inherit colour from CSS. No `fill="#000"` or `stroke="blue"`. If a shape needs fill, use `fill="currentColor"`.

2. **Identical viewBox** — Every icon uses the same `viewBox`. No exceptions.

3. **Identical root stroke attributes** — `stroke-width`, `stroke-linecap`, `stroke-linejoin` on the `<svg>` element must match across all icons. Override on individual elements only when truly necessary.

4. **No transforms on root** — No `translate`, `rotate`, `scale`. Bake positioning into coordinates.

5. **No IDs or classes** — Keep SVGs clean for external styling.

6. **Coordinate precision** — Max 2 decimal places. Snap to half-pixel grid (e.g. `12`, `12.5`, not `12.333`).

7. **Consistent padding** — Maintain configured padding from viewBox edge. For 24px grid with 2px padding, draw within 2–22 coordinate range.

8. **Minimal elements** — Fewest `<path>`, `<circle>`, `<rect>`, `<line>` elements practical. Simpler = smaller + faster rendering.

9. **Visual centring** — Appear visually centred, not just mathematically centred. A leftward arrow shifts slightly right. A house with a chimney adjusts for asymmetry.

### Optical Corrections

Subtle but essential for professional results:

- **Curved stroke compensation**: Curves appear thinner than straight lines at same stroke width. For primarily curved icons (phone, globe), make paths slightly larger rather than changing stroke width.
- **Pointed shape overshoot**: Arrows, chevrons, triangles extend ~0.5px beyond where a square would stop to appear the same size.
- **Visual weight balancing**: Simple icons (single chevron) look lighter than complex ones (gear). Make simpler icons slightly larger in the grid, or use slightly more substantial paths. No icon should look noticeably lighter or heavier than the others.

---

## style-spec.json

```json
{
  "name": "project-name-icons",
  "preset": "clean",
  "grid": 24,
  "strokeWidth": 1.5,
  "strokeLinecap": "round",
  "strokeLinejoin": "round",
  "cornerRadius": 2,
  "padding": 2,
  "opticalBalance": true,
  "iconCount": 20,
  "icons": ["home", "phone", "email"],
  "generated": "2026-02-15"
}
```

---

## Preview Page

Generate a self-contained HTML file displaying all icons for visual review. Read `references/preview-template.md` for the template. Requirements:

- Grid of all icons at native size (24px) with labels
- Same grid at 2x (48px) for detail inspection
- Dark background section (white on dark) for contrast check
- Style spec summary at top
- Inline CSS, no dependencies — just open in browser
- Inline all SVGs directly into the HTML (don't reference external files)

---

## Quality Checklist

Verify every item before delivering:

- [ ] All SVGs have identical `viewBox`, `stroke-width`, `stroke-linecap`, `stroke-linejoin`
- [ ] All SVGs use `currentColor` exclusively
- [ ] Visual weight is balanced across the set
- [ ] Padding is consistent (nothing touching viewBox edge)
- [ ] All icons visually centred
- [ ] Filenames are lowercase kebab-case (`arrow-right.svg`)
- [ ] Preview HTML renders all icons correctly
- [ ] style-spec.json is accurate and lists all icons

---

## Reference Files

Read these before generating:

- `references/style-presets.md` — Detailed preset definitions and selection guidance
- `references/industry-icons.md` — Industry-specific icon suggestions
- `references/preview-template.md` — HTML template for the preview page
- `references/svg-examples.md` — Example SVGs showing proper construction at various complexity levels

© jezweb · MIT · jezweb/claude-skills

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой