design-system-developer
Installation
SKILL.md
Design System Developer (Smart Router)
Purpose
Context-aware routing to the Anytype iOS design system: icons, typography, colors, spacing. Helps you navigate Figma-to-code translation.
When Auto-Activated
- Working with icons or typography
- Keywords: icon, typography, design system, figma, color, spacing
- Editing files in DesignSystem/ or Assets.xcassets
- Discussing colors or UI components
🚨 CRITICAL RULES (NEVER VIOLATE)
- ALWAYS use design system constants - Never hardcode hex colors, font sizes, or asset names
- ALWAYS run
make generateafter adding assets - Icons and assets must be code-generated - Icons are organized by size - x18, x24, x32, x40 (use correct size for context)
- Typography follows strict mapping - Figma style names map to specific Swift enum cases
- Spacing formula -
NextElement.Y - (CurrentElement.Y + CurrentElement.Height)