better-icons — скилл для Claude Code: что делает и как установить
Ищет векторные значки в 200 каталогах через Iconify и скачивает SVG прямо из терминала или через вызовы агента.
npx skills add better-auth/better-icons --skill better-icons -a claude-code
npx skills add better-auth/better-icons --skill skills -a claude-codeЧто делает better-icons
Скилл подключает доступ к базе Iconify с коллекциями вроде Lucide, Heroicons и Material Design Icons. Через CLI-команды better-icons агент ищет иконки по текстовым запросам или префиксам библиотек, меняет цвет, размер и выгружает готовую SVG-разметку в консоль либо отдельными файлами в папку.
В пакет также входят сценарии настройки MCP-сервера с инструментами пакетного поиска и синхронизации компонентов под React, Vue, Svelte или Solid. Для прямого запуска команд без приставок npx саму утилиту better-icons нужно поставить глобально через npm или Bun.
Какие задачи решает
- найти векторную иконку среди сотен открытых библиотек
- выгрузить SVG-код нужного размера и цвета прямо в проект
- скачать сразу пачку найденных иконок в локальную папку
- подключить MCP-инструменты работы с иконками к агенту
Примеры запросов агенту
- Найди десять вариантов значка корзины из набора lucide
- Скачай иконку
lucide:homeв формате SVG и сохрани её в файлsrc/assets/home.svg - Выгрузи все найденные стрелки в каталог
./iconsс чёрным цветом
Как установить better-icons
1Через Skills CLI (Vercel)
npx skills add better-auth/better-icons --skill better-icons -a claude-codenpx skills add better-auth/better-icons --skill skills -a claude-code2Вручную: положить файлы
~/.claude/skills/skills/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/skills/
1Через Skills CLI (Vercel)
npx skills add better-auth/better-icons --skill skills -a codex2Вручную: положить файлы
.agents/skills/skills/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add better-auth/better-icons --skill skills -a cursor2Вручную: положить файлы
.cursor/skills/skills/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install better-auth/better-icons skills2Вручную: положить файлы
.github/skills/skills/SKILL.md1Через Skills CLI (Vercel)
npx skills add better-auth/better-icons --skill skills -a gemini-cli2Командой платформы
gemini skills install https://github.com/better-auth/better-icons --path skillsВручную: положить файлы
.devin/skills/skills/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add better-auth/better-icons --skill skills -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о better-icons
Как установить better-icons в Claude Code?
Выполните команду npx skills add better-auth/better-icons --skill better-icons -a claude-code. Чтобы вызывать CLI напрямую, установите утилиту глобально через npm install -g better-icons.
Откуда берутся иконки?
Инструмент обращается к API https://api.iconify.design, объединяющему более 200 каталогов графики вроде Tabler, Solar и Heroicons.
Как настроить MCP-сервер для агента?
Вызовите команду better-icons setup -a claude-code с указанием платформы и области действия.
Исходный текст
SKILL.md · MIT
---
name: better-icons
description: 'Use when working with icons in any project. Provides CLI for searching 200+ icon libraries (Iconify) and retrieving SVGs. Commands: `better-icons search <query>` to find icons, `better-icons get <id>` to get SVG. Also available as MCP server for AI agents.'
---
# Better Icons
Search and retrieve icons from 200+ libraries via Iconify.
## Installation
Before using any `better-icons` commands, ensure the tool is available in the environment.
**Option 1 — Install globally (recommended, matches all examples below):**
```bash
# Using npm
npm install -g better-icons
# Using Bun (faster)
bun add -g better-icons
```
**Option 2 — Run without installing (prefix every command with `npx` or `bunx`):**
```bash
# Using npx (npm)
npx better-icons search arrow --limit 10
npx better-icons get lucide:home > icon.svg
# Using bunx (Bun — faster)
bunx better-icons search arrow --limit 10
bunx better-icons get lucide:home > icon.svg
```
> **For AI agents:** Prefer the global install so that `better-icons` is on `$PATH` and the commands below work as-is. Run the install step once during environment setup, then use the commands without `npx`/`bunx`.
## CLI
```bash
# Search icons
better-icons search <query> [--prefix <prefix>] [--limit <n>] [--json]
# Search and download all found icons as SVG files
better-icons search <query> -d [dir] [--color <color>] [--size <px>]
# Get icon SVG (outputs to stdout)
better-icons get <icon-id> [--color <color>] [--size <px>] [--json]
# Setup MCP server for AI agents
better-icons setup [-a cursor,claude-code] [-s global|project]
```
## Examples
```bash
better-icons search arrow --limit 10
better-icons search home --json | jq '.icons[0]'
better-icons get lucide:home > icon.svg
better-icons get mdi:home --color '#333' --json
# Batch download all search results
better-icons search arrow -d # saves to ./icons/
better-icons search check -d ./my-icons # saves to ./my-icons/
better-icons search star -d -c '#000' -s 24 --limit 64
```
## Icon ID Format
`prefix:name` - e.g., `lucide:home`, `mdi:arrow-right`, `heroicons:check`
## Popular Collections
`lucide`, `mdi`, `heroicons`, `tabler`, `ph`, `ri`, `solar`, `iconamoon`
---
## MCP Tools (for AI agents)
| Tool | Description |
|------|-------------|
| `search_icons` | Search across all libraries |
| `get_icon` | Get single icon SVG |
| `get_icons` | Batch retrieve multiple icons |
| `list_collections` | Browse available icon sets |
| `recommend_icons` | Smart recommendations for use cases |
| `find_similar_icons` | Find variations across collections |
| `sync_icon` | Add icon to project file |
| `scan_project_icons` | List icons in project |
## TypeScript Interfaces
```typescript
interface SearchIcons {
query: string
limit?: number // 1-999, default 32
prefix?: string // e.g., 'mdi', 'lucide'
category?: string // e.g., 'General', 'Emoji'
}
interface GetIcon {
icon_id: string // 'prefix:name' format
color?: string // e.g., '#ff0000', 'currentColor'
size?: number // pixels
}
interface GetIcons {
icon_ids: string[] // max 20
color?: string
size?: number
}
interface RecommendIcons {
use_case: string // e.g., 'navigation menu'
style?: 'solid' | 'outline' | 'any'
limit?: number // default 10
}
interface SyncIcon {
icons_file: string // absolute path
framework: 'react' | 'vue' | 'svelte' | 'solid' | 'svg'
icon_id: string
component_name?: string
}
```
## API
All icons from `https://api.iconify.design`
© better-auth · MIT · better-auth/better-icons