What problem does it solve?
Converting a visual design mock or screenshot into working Valdi UI code requires manual layout analysis, correct mapping to Valdi primitives, and knowledge of Valdi-specific rules that differ sharply from React. This Skill automates that translation, producing a complete, compilable .tsx component from an image.
Core Features & Use Cases
- Visual Layout Analysis: Breaks down a screenshot or Figma export into structure, sections, typography, colors, and spacing before writing any code.
- Primitive and Widget Mapping: Maps visual patterns to Valdi elements like <view>, <label>, <scroll>, and <shape>, and discovers shared widget library components in the workspace for higher fidelity.
- Valdi-Correct Code Generation: Produces class-based StatefulComponent code with proper Style objects, state wiring via setState, and calibrated font sizes, colors, and spacing, while avoiding common React-isms that break Valdi builds.
- Use Case: A designer hands you a screenshot of a settings screen with toggle rows and a save button. This Skill analyzes the layout, selects the right widgets, and outputs a complete SettingsScreen.tsx with wired interactive state.
Quick Start
Provide a screenshot or design mock and ask the AI to turn this screen into a Valdi component.