--- name: rebuild-site description: Rebuild a whole landing page / multi-section website from a screen recording that scrolls or walks through it. Use when the user has a recording of an ENTIRE page (not a single animation) and wants the full page recreated — layout, sections, copy, design system, and scroll animations. Orchestrates analyze (measured timing + section structure + curated frames) + asset generation + a full multi-section build. For one isolated animation, use /motiscope:recreate instead. argument-hint: "[path-to-video] [gsap|css|framer]" allowed-tools: Bash, Read, Write, Edit, AskUserQuestion user-invocable: true --- # motiscope: rebuild-site Rebuild a whole landing page from a walkthrough recording. This is `analyze` + `recreate` applied to an entire page, and it leans on the same division of labor: - **The numbers give you the WHEN + the structure** — motiscope measures section timing, transitions, and per-section entrance easing, and curates the frames that show each section. - **You give the WHAT** — from the frames you reconstruct the sections, layout, copy, design system, and *what kind* of animation each uses (open vocabulary — scroll reveals, pins, masks, draws, whatever you see). - **Imagen fills the photos** — generate the photographic assets the design needs. It's a team effort: measured timing + curated frames + your vision + generated assets → a full page. Be honest about which is which in the final summary. ## Resolve scripts + preflight ```bash SCRIPTS="${CLAUDE_PLUGIN_ROOT:-}/scripts"; REFS="${CLAUDE_PLUGIN_ROOT:-}/references" [ -f "$SCRIPTS/ingest.py" ] || { SCRIPTS="/../../scripts"; REFS="<...>/../../references"; } ``` (Windows: `python`.) ## Preflight ```bash python3 "$SCRIPTS/mvsetup.py" --check # exit 0 = ready; else hand to /motiscope:doctor ``` Resolve the video from `$1`, else scan `animations/` (as in `analyze`). ## Step 1 — analyze the whole walkthrough ```bash python3 "$SCRIPTS/ingest.py" "