source-command-icon-registry
БесплатноБез исполняемых скриптовНе проверенMigrated source command `icon-registry`
от databayt★ 19 звёзд на GitHubОб этом скилле
source-command-icon-registry
Use this skill when the user asks to run the migrated source command icon-registry.
Command Template
/icon-registry - Update Icon Registry with Metadata
You are tasked with managing the icon registry - the central source of metadata for all icons in the system.
Registry Location
File: src/components/icons/registry.ts
Registry Entry Schema
interface IconMetadata {
id: string // kebab-case unique identifier
name: string // Display name
component: IconComponent // React component reference
category: IconCategory // Primary category
secondaryCategories?: IconCategory[]
tags: string[] // Search keywords
description?: string // Usage description
viewBox: string // SVG viewBox
customizable: boolean // Can use className for colors
filePath?: string // For file-based icons
schoolId?: string // Multi-tenant specific
createdAt?: Date
updatedAt?: Date
author?: string
}
Modes
| Mode | Command | Description |
|---|---|---|
| Sync | /icon-registry sync |
Sync registry with Icons namespace |
| Add | /icon-registry add <name> |
Add single icon to registry |
| Validate | /icon-registry validate |
Check registry completeness |
| Export | /icon-registry export |
Export registry as JSON |
Workflow: Sync
Step 1: Get Icons from Namespace
Read src/components/icons/index.tsx to get all exported icons:
export const Icons = {
logo: SystemIcons.LogoIcon,
github: IntegrationIcons.GitHubIcon,
// ... etc
}
Step 2: Get Current Registry
Read src/components/icons/registry.ts:
export const iconRegistry: IconRegistry = [
{
id: "network-nodes",
name: "Network Nodes",
// ...
},
// ... etc
]
Step 3: Find Gaps
Compare Icons namespace with registry:
- Icons in namespace but not in registry → Need to add
- Icons in registry but not in namespace → May need to remove or update
Step 4: Generate Missing Entries
For each missing icon, generate entry:
{
id: "{iconId}", // Convert camelCase to kebab-case
name: "{Icon Name}", // Convert to Title Case
component: Icons.{iconKey}, // Reference from Icons namespace
category: IconCategory.{CATEGORY},
tags: ["{tag1}", "{tag2}"], // Infer from name and usage
description: "{Description}",
viewBox: "0 0 24 24", // Or extract from SVG
customizable: true,
}
Step 5: Update Registry File
Append new entries to registry.ts.
Category Mapping
Map icon names to categories:
| Pattern | Category |
|---|---|
| logo, brand, anthropic* | BRANDING |
| github, google, nextjs, react, etc. | INTEGRATIONS |
| alert*, error*, warning* | SYSTEM |
| calendar, clock, time* | SYSTEM |
| file*, doc*, pdf | CONTENT |
| hands*, category* | ILLUSTRATIONS |
| student*, teacher*, class* | ACADEMIC |
| fee*, payment*, invoice* | FINANCE |
| message*, mail*, chat* | COMMUNICATION |
| book*, library* | LIBRARY |
Tag Generation
Generate tags from:
- Icon name words (split camelCase/kebab-case)
- Category keywords
- Common aliases
- Use case context
Example:
// Icon: alertCircle
tags: ["alert", "circle", "warning", "error", "notification", "danger"]
// Icon: chevronDown
tags: ["chevron", "down", "arrow", "dropdown", "expand", "navigation"]
Workflow: Add Single Icon
Step 1: Validate Icon Exists
// Check Icons namespace
if (!Icons[iconName]) {
throw new Error(`Icon "${iconName}" not found in Icons namespace`)
}
Step 2: Generate Metadata
Prompt for or infer:
- Category
- Tags
- Description
Step 3: Add to Registry
iconRegistry.push({
id: kebabCase(iconName),
name: titleCase(iconName),
component: Icons[iconName],
category: IconCategory.SYSTEM,
tags: ["generated", "tags"],
description: "User-provided or generated description",
viewBox: "0 0 24 24",
customizable: true,
createdAt: new Date(),
})
Workflow: Validate
Checks
- Uniqueness: No duplicate IDs
- Completeness: All Icons namespace entries have registry entries
- References: All component references are valid
- Schema: All required fields present
- Categories: Valid IconCategory enum values
Output
## Registry Validation Report
**Date**: {date}
### Summary
- Total icons in namespace: 86
- Total icons in registry: 4
- Missing from registry: 82
- Invalid entries: 0
### Missing Icons
| Icon Key | Suggested Category |
| -------- | ------------------ |
| github | INTE
Установить source-command-icon-registry в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл source-command-icon-registry?
Migrated source command `icon-registry`
Как установить скилл source-command-icon-registry?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл source-command-icon-registry запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic