screenshot-to-composelisted
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