source-command-icon-generate
БесплатноБез исполняемых скриптовНе проверенMigrated source command `icon-generate`
от databayt★ 19 звёзд на GitHubОб этом скилле
source-command-icon-generate
Use this skill when the user asks to run the migrated source command icon-generate.
Command Template
/icon-generate - Generate New Icon
You are tasked with generating a new icon for the Hogwarts icon system using AI-assisted design.
Icon System Specifications
Design System: Anthropic Design Guidelines
Categories: Hands, People, Objects, Abstract, Letters, Scenes
Naming Convention: {Category}-{Description}.svg
Output Directory: public/icons/
Design Requirements (CRITICAL)
- ViewBox:
0 0 1000 1000(standard) or0 0 1680 1260(wide format) - Colors (ONLY these two):
- Light fill:
#FAF9F5 - Dark fill:
#141413
- Light fill:
- Structure:
- Root
<svg>element withfill="none" - All
<path>elements must have explicitfillattribute - No gradients, no patterns, no inline styles
- Root
- Style: Minimalist, geometric, Anthropic brand aesthetic
Generation Workflow
1. Gather Requirements
Ask the user:
- Icon concept: What should the icon represent?
- Category: Hands/People/Objects/Abstract/Letters/Scenes
- Style preference: Simple/Complex, Geometric/Organic
- Size format: Standard (1000x1000) or Wide (1680x1260)
2. Design Strategy
Choose appropriate generation method:
Option A: Browser-based SVG Editor
- Use browser MCP to open SVG editor (e.g., SVGator, Figma web)
- Guide user through creation process
- Export SVG with correct specifications
Option B: Code-based Generation
- Generate SVG paths programmatically
- Use geometric primitives (circles, rectangles, paths)
- Calculate coordinates for 1000x1000 canvas
- Assemble valid SVG structure
Option C: Template-based
- Start from similar existing icon
- Modify paths and shapes
- Adjust to match new concept
- Ensure compliance with design system
3. Generate SVG Code
Create valid SVG following this template:
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 1000 1000" height="1000" width="1000">
<path fill="#FAF9F5" d="M..."></path>
<path fill="#141413" d="M..."></path>
</svg>
Path Guidelines:
- Use
M(moveto),L(lineto),C(cubic bezier),Z(closepath) - Keep paths clean and minimal
- Light color (#FAF9F5) for backgrounds/fills
- Dark color (#141413) for foreground/details
4. Validate Generated Icon
Run validation checks:
- ✅ ViewBox is
0 0 1000 1000or0 0 1680 1260 - ✅ Only colors used are
#FAF9F5and#141413 - ✅ Root svg has
fill="none" - ✅ All paths have explicit fill
- ✅ No external dependencies (fonts, images)
- ✅ Valid XML structure
5. Generate Semantic Name
Follow pattern: {Category}-{Description}.svg
Examples:
Hands-Gesture-06.svgAbstract-Waves-01.svgLetter-A-Modern-01.svg
Check existing icons to avoid conflicts, use incremental numbering.
6. Save and Register
- Save SVG to
public/icons/{SemanticName}.svg - Add entry to
src/components/icons/registry.ts:
"{iconName}": {
name: "{iconName}",
category: "{category}",
path: "/icons/{SemanticName}.svg",
keywords: ["{keyword1}", "{keyword2}"],
viewBox: "{viewBox}",
verified: true
}
- Document in
public/icons/icon-renaming-mapping.mdif needed
7. Preview and Iterate
- Show user the generated SVG path
- Offer to make adjustments
- Regenerate if needed
Example Generation Session
User: Generate a hand waving icon
Assistant: I'll generate a hand waving icon for you.
Category: Hands
Style: Simple geometric shapes
Format: Standard 1000x1000
Let me create the SVG paths...
[Generates SVG with calculated paths for a waving hand]
Here's the generated icon saved as "Hands-Wave-01.svg":
- Compliant with Anthropic design system
- Uses only #FAF9F5 and #141413
- ViewBox: 0 0 1000 1000
Would you like me to:
1. Adjust the wave angle
2. Make it more/less detailed
3. Generate alternative version
4. Proceed to save and register
Generation Tips
- Keep it simple: Fewer paths = better performance
- Use symmetry: Easier to calculate, looks cleaner
- Test readability: Icon should be clear at small sizes
- Follow category style: Match existing icons in same category
- Iterate: Generate, review, refine
Common Path Calculations
For 1000x1000 canvas:
- Center: (500, 500)
- Quadrants: (250, 250), (750, 250), (250, 750), (750, 750)
- Margins: Use 100px padding (100, 100) to (900, 900)
- Circle: radius = 400, center at (500, 500)
Error Handling
If generation fails:
- Validate path syntax
- Check color values
- Ensure viewBox is correct
- Verify no invalid SVG attributes
- Offer to regenerate or use template
Установить source-command-icon-generate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл source-command-icon-generate?
Migrated source command `icon-generate`
Как установить скилл source-command-icon-generate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл source-command-icon-generate запускает скрипты?
Нет, скилл состоит только из инструкций (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