Convert Command
Convert external prototypes, mockups, or inconsistent code into production-ready code with your design system components and proper module structure.
Usage
/convert /path/to/prototype
/convert https://github.com/user/prototype-repo
/convert ./my-mockup --module smart-send
Your Process
- Scout the prototype — read all components, styles, data sources
- Inventory — list all components, their styles, and data patterns
- Map each component to klara-theme equivalent using
prototype-conversionskill - Map hardcoded styles to semantic token classes
- Map mock data to real API patterns from
module-integrationskill - Create phased conversion plan
- Review plan with user before implementing
- Implement with proper klara-theme tokens, module structure, API binding
Skills Activated
web-prototype-conversion— Component and token mappingweb/module-integration— API binding and module patternsdomain-b2b— Target module knowledgeweb-ui-lib— klara-theme component referenceweb-rag— Search for existing implementations
Quality Checks
- All hardcoded colors replaced with semantic tokens
- All components use your design system imports
- Module file structure follows
_components/,_hooks/,_services/pattern - Data flow follows Component -> Hook -> Action -> Service -> API
- TypeScript strict mode compliance
- Build successful