Agent skill
add-icon
Add a new Tabler icon to the project. Use when adding icons to the UI.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/add-icon
SKILL.md
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
-
Choose Icon
- Browse available icons: https://tabler.io/icons
- Note the icon name (e.g.,
folder-open,info-circle)
-
Add to icons.json
- Edit
renderer/icons.json - Add the icon name to the JSON array (in alphabetical order)
- Edit
-
Build Icon Sprite (Automatic)
- Icon sprite is automatically generated when Vite builds
- Just run
just devorcargo build
-
Add Rust Enum Variant
- Edit
desktop/src/components/icon.rs - Add variant to
IconNameenum (use PascalCase) - Add case to
Displayimplementation
- Edit
Example
renderer/icons.json:
[
"folder",
"folder-open",
"file"
]
desktop/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 |
|---|---|---|
renderer/icons.json |
Icon list configuration | ✅ Yes |
renderer/vite.config.ts |
Icon sprite plugin | ✅ Yes |
renderer/public/icons/tabler-sprite.svg |
Generated sprite (Vite source) | ❌ No |
assets/dist/icons/tabler-sprite.svg |
Build output (Dioxus asset) | ❌ No |
Important
- NEVER edit generated SVG files directly
- The
assets/dist/directory is.gitignored as build output - Icon sprite generation is automatic via Vite plugin (
buildStarthook) - Rust code references icons via
asset!("/assets/dist/icons/tabler-sprite.svg") - Icons come from
@tabler/iconsnpm package (outline style only)
Build Process
icons.json
↓
Vite plugin (buildStart hook)
↓
renderer/public/icons/tabler-sprite.svg
↓
Vite build
↓
assets/dist/icons/tabler-sprite.svg
↓
Rust asset!() macro
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?