clone-prototype

Solid

Clone a real app's screens as pixel-accurate, self-contained HTML artboards on the prototype canvas. Overlay a grid on the reference and sample colours visually, derive one measured design-token block, generate one HTML file per screen from a single script, verify by re-rendering, and park the reference underneath its mockup. Use when asked to 100% copy / clone an app's UI, rebuild screens from screenshots or Mobbin, extract a design system from reference images, or check a mockup against its reference.

Web & Frontend 62 stars 1 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 81/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Clone prototype Six phases, in order. **Never skip ahead.** Tokens before HTML, sampling before tokens. Every colour and every metric in the final HTML must trace back to a measurement, not to a guess that "looks about right". The one thing built out of order is Phase 5's reference row: it needs no measurement, so it goes up first (see Phase 5). Output lands in `mockups/canvases/<slug>/` and the canvas picks it up automatically. The `prototype-canvas` skill covers how folders become tldraw pages and how `layout.json` rows work. Name the folder for the source, e.g. `notion-ios`. Toolkit: `tools/refkit.py` (grid / sample / bands / bbox / scan / hairline / font / shoot / diff / blend / tokens / batch / ink / crops / montage). Needs `pillow` + `numpy`; `shoot` needs Google Chrome. Work in a scratch directory, not in the repo. ```bash REPO="$(git rev-parse --show-toplevel)" python3 "$REPO/tools/refkit.py" --help ``` --- ## Phase 0: collect references Get the highest-resolution capture you can; every later measurement is capped by it. - **The user's own screenshot** is usually the authority on *which* screens and *which* scroll state. Save each one as its own crop (`p1.png … pN.png`) before doing anything else. Image caches rotate and the attachment will disappear mid-task. - **Mobbin MCP** (`mcp__mobbin__search_screens`, `search_flows`), when available. Run one search per screen, `platform: "ios"`, and keep `task_intent` **identical** across every call in the r...

Details

Author
ReScienceLab
Repository
ReScienceLab/super-prototyping
Created
1 weeks ago
Last Updated
today
Language
HTML
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category