← ClaudeAtlas

screenshot-to-composelisted

Turn app design screenshots (JPG/PNG, often AI-generated) or Figma frames into a native Kotlin Jetpack Compose UI that matches them, design-first. Measures pixels and colours (px to dp), writes screen/asset inventories and a design system with observed vs inferred values, builds Iconify icons into VectorDrawables, generates artwork instead of cropping the screenshots, implements MVI screens, then compares emulator or Roborazzi renders against the reference. Use whenever the user supplies screenshots, mockups or a design repository and wants them built as an Android Compose app, says "make this screen in Compose", "match the design", "px to dp", "screenshot to code", or wants a whole app UI built design-first, even if they never say "Compose".
zohaibmushwani/agent-skills · ★ 0 · AI & Automation · score 72
Install: claude install-skill zohaibmushwani/agent-skills
# screenshot-to-compose Reproduce a design faithfully in Compose without eyeballing it. The reference image is the acceptance test, so every number you use is either **observed** (measured on the image) or **inferred** (a guess you state), and the finished screen is compared with the reference at the end. ## When the design is the input - Screenshots/mockups only: follow all phases below. - Figma frames available: skip measuring (read values from Figma) and keep the rest. - No design yet: use the `app-design-studio` skill first, then come back here. ## Workflow Work in files (`docs/design/`), one screen at a time after the shared foundations exist. Do not implement anything until the whole screen inventory is understood. 1. **Inspect.** Read the repo first (architecture, theme, shared components, existing screens). Preserve what works. Note assumptions. 2. **Inventory.** Copy the references unchanged into `docs/design/reference/` (kebab-case names). Write `SCREEN_INVENTORY.md`: each image -> screen + state, links between screens, missing references (a screen linked but not shown), pixel size and aspect ratio. Include every state: loading, empty, error, offline, permission, premium. 3. **Measure.** Run `scripts/measure_image.py shot.png --frame-dp 390 --sample x,y ...` for the px->dp scale and colour samples (`references/measuring.md`). Pixels are not dp: assume a 390 dp frame unless told otherwise, `dp = px / (imageWidthPx / 390)`. Record **observed** and **inferred** val