Command Palette

Search for a command to run...

Назад к скиллам
скилл № 48023

add-icon

Add a new Tabler icon to the project. Use when adding icons to the UI.

БесплатноБез исполняемых скриптов
arto-appот arto-app★ 265 звёзд на GitHub12 установок в других каталогах

Установить add-icon в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Add Icon Skill

This skill guides you through adding a new icon from Tabler Icons to the project.

Process

Icons are managed via icons.json and automatically built by Vite plugin.

Steps

  1. Choose Icon

  2. Add to icons.json

    • Edit frontend/icons.json
    • Add the icon name to the JSON array (in alphabetical order)
  3. Build Icon Sprite (Automatic)

    • Icon sprite is automatically generated when Vite builds
    • Just run just dev or cargo build
  4. Add Rust Enum Variant

    • Edit crates/arto/src/components/icon.rs
    • Add variant to IconName enum (use PascalCase)
    • Add case to Display implementation

Example

frontend/icons.json:

[
  "folder",
  "folder-open",
  "file"
]

crates/arto/src/components/icon.rs:

pub enum IconName {
    Folder,
    FolderOpen,
    File,
}

impl std::fmt::Display for IconName {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            IconName::Folder => write!(f, "folder"),
            IconName::FolderOpen => write!(f, "folder-open"),
            IconName::File => write!(f, "file"),
        }
    }
}

File Locations

File Purpose Git Tracked
frontend/icons.json Icon list configuration ✅ Yes
frontend/vite.config.ts Icon sprite plugin ✅ Yes
frontend/public/icons/tabler-sprite.svg Generated sprite (Vite source) ❌ No
assets/frontend/icons/tabler-sprite.svg Build output (Dioxus asset) ❌ No

Important

  • NEVER edit generated SVG files directly
  • The assets/frontend/ directory is .gitignored as build output
  • Icon sprite generation is automatic via Vite plugin (buildStart hook)
  • Rust code references icons via asset!("/assets/frontend/icons/tabler-sprite.svg")
  • Icons come from @tabler/icons npm package (outline style only)

Build Process

icons.json
    ↓
Vite plugin (buildStart hook)
    ↓
frontend/public/icons/tabler-sprite.svg
    ↓
Vite build
    ↓
assets/frontend/icons/tabler-sprite.svg
    ↓
Rust asset!() macro

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл add-icon?

Add a new Tabler icon to the project. Use when adding icons to the UI.

Как установить скилл add-icon?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл add-icon запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить add-icon с