[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71RSDRS09V4PXQ3TB9790J3":3,"skill-same:01M71RSDRS09V4PXQ3TB9790J3":105},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":58,"install":59,"resources":72},"01M71RSDRS09V4PXQ3TB9790J3","scroll-world",null,"Build an immersive scroll-scrubbed \"fly through the world\" landing page for any industry or brand using Higgsfield. As the visitor scrolls, a pre-rendered camera flies from outside each scene into its interior, then flows on to the next scene with NO cuts — one continuous connected flight (Emons-style isometric diorama world, or any art direction you pick). The skill interviews the user for the topic, the story beats\u002Fsections, and brand kit, then generates cohesive scenes + seamless camera clips with Higgsfield and wires a portable, framework-agnostic scroll-scrub engine. Use when the user wants a \"3D world\" \u002F \"browse-through-the-industry\" hero, a scroll cinematic, a diorama landing, or to turn a business into a scrollable world.","gongiskhan\u002Fagent-garrison","gongiskhan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1997392?v=4","01M71RKMFR53TKXE308C22QTNZ","01M71RKMJA57KZHNDCBNKTWZRR",1,"MIT","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fscroll-world\u002F.apm\u002Fskills\u002Fscroll-world\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fscroll-world\u002F.apm\u002Fskills\u002Fscroll-world\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"scroll world","world","scroll","when","3D","scrub","hero","kit","interviews","you","flows","direction","next","Art","edit","write","read","pick","Bash","fly","2026-11-10 13:02:02",false,"---\nname: scroll-world\ndescription: >\n  Build an immersive scroll-scrubbed \"fly through the world\" landing page for any\n  industry or brand using Higgsfield. As the visitor scrolls, a pre-rendered camera\n  flies from outside each scene into its interior, then flows on to the next scene\n  with NO cuts — one continuous connected flight (Emons-style isometric diorama world,\n  or any art direction you pick). The skill interviews the user for the topic, the\n  story beats\u002Fsections, and brand kit, then generates cohesive scenes + seamless camera\n  clips with Higgsfield and wires a portable, framework-agnostic scroll-scrub engine.\n  Use when the user wants a \"3D world\" \u002F \"browse-through-the-industry\" hero, a scroll\n  cinematic, a diorama landing, or to turn a business into a scrollable world.\nallowed-tools: Bash, Read, Write, Edit, AskUserQuestion, Skill\n---\n\n# scroll-world\n\nProduces a landing page where **scroll drives a camera**: it dives from outside a scene\ninto its interior, then flies out and into the next scene, continuously, with no visible\ncuts. The visuals are AI-generated (Higgsfield); the page just scrubs pre-rendered video\nby scroll position. This is the same technique behind Apple's scroll-through product\npages — the camera genuinely moves, scroll only drives time.\n\n**What you generate:** N scene stills (anchor-gated) → N \"dive-in\" camera clips → N-1\n\"connector\" clips that join consecutive scenes seamlessly → encoded clips + extracted\nposters → an automated SSIM seam check → a portable scrub engine that plays the whole\nchain as one flight. Chain clips render on the cheap previz tier first by default;\nfull-model credits are spent only after the user approves the draft.\n\n**The one rule that makes or breaks it:** seams must be *frame-identical*. Read\n[The seamless chain](#step-5--the-seamless-chain-the-critical-part) before generating any\nconnector. Getting this wrong is the single most common failure and produces a visible\n\"pop\" between scenes.\n\nDo not assume a frontend framework. The scrub engine in `references\u002Fscrub-engine.js` is\nself-contained vanilla JS (it builds its own DOM + injects its own CSS into a container\nyou give it), so it drops into plain HTML, Next.js, Vue, a Python-served page, anything.\nThe value of this skill is the Higgsfield pipeline, the prompts, and the seam method —\nnot the framework.\n\n---\n\n## Step 0 — Bootstrap\n\n1. **Higgsfield CLI.** If `higgsfield` is not on `$PATH`, install per the\n   `higgsfield-generate` skill. If `higgsfield workspace list` fails auth, ask the user\n   to run `higgsfield auth login` (interactive OAuth — you cannot run it) and, if needed,\n   `higgsfield workspace set \u003Cid>`. Confirm there are enough credits: a run is `N` image\n   gens + `N` video gens (architecture A) or `(2N-1)` video gens (architecture B), plus\n   re-rolls — the Step 1 budget tier sets `N`.\n2. **ffmpeg \u002F ffprobe** on `$PATH` (frame extraction + encoding).\n3. **An image tool** for background knockout if you want floating scenes: PIL\n   (`python3 -c \"import PIL\"`), or `cwebp`\u002F`sips`. Optional — see Step 3.\n4. Caveats: macOS ships **bash 3.2** (no `declare -A`); don't use associative arrays in\n   scripts. Higgsfield generations take **3–8 min each** — always run them detached\n   (background) and poll, never a foreground blocking call. Reference-by-job-UUID is\n   rejected by media flags — pass **local file paths** to `--image\u002F--start-image\u002F--end-image`.\n   Video models differ in accepted params (e.g. Kling has no `--resolution`) and in whether\n   they support start\u002Fend-image conditioning at all — before batching, confirm the chosen\n   model's schema with `higgsfield model get \u003Cjob_type>` and see the Step 4 model table.\n\n---\n\n## Step 1 — Interview the user\n\nThe **subject is the user's to state — ask it as an open question in plain prose**, never a\nfabricated multiple-choice. A made-up list of industries biases them and reads as you\ndeciding their business for them; let them answer in their own words (their real business,\na client's, or any idea). Reserve `AskUserQuestion` (with options) for the genuinely\nenumerable, lower-stakes choices below — art direction and brand-kit approach — and even\nthere, signal they can go their own way (\"Other\"). Ask only what you can't sensibly\ndefault. Cover:\n\n1. **Subject** (ask openly, not multiple-choice) — \"What should this world be about? Your\n   business, a client's, or any idea — a word or a sentence is fine.\" Capture the\n   industry\u002Fproduct + a one-line pitch (e.g. \"a bubble tea company, from leaf to last\n   sip\"), and a brand name if they have one; otherwise you'll propose one below.\n2. **Brand kit** — offer three paths, pick one:\n   - Import from a URL: `higgsfield marketing-studio brand-kits fetch --url \u003Csite> --wait`\n     (pulls name, colours, tone). Then read it back with `brand-kits list --json`.\n   - The user hands you palette + name + tone directly.\n   - You propose a palette + name and let them approve.\n   Capture **4–6 named hex values**, a display name, and a tone word or two.\n3. **Art direction** — default is \"soft matte low-poly **clay diorama**, isometric,\n   tilt-shift miniature, warm light.\" Offer alternatives (flat papercraft, glossy toy,\n   claymation, neon night). Whatever is chosen becomes the shared **style preamble**\n   reused verbatim in every scene prompt (this is what makes the world cohesive).\n4. **Budget tier — ask BEFORE proposing the journey; video generations dominate cost.**\n   The bill scales with scene count and architecture: architecture A (forward take) =\n   `N` videos, architecture B (dives + connectors) = `2N-1` videos, plus `N` stills and\n   a ~20–30% re-roll buffer. A 6-scene arch-B run is ~17 generations — a serious bite\n   out of a subscription. Use `AskUserQuestion` with concrete numbers:\n   - **Lean (~8 gens)** — 4 scenes, architecture A (4 stills + 4 legs), skip previz\n     (small runs re-roll cheaper than a draft pass). Same site, same continuous flight —\n     just 4 beats instead of 6.\n   - **Standard (~11–13 gens)** — 5 scenes; arch A (10 gens) or arch B (5 + 9 = 14).\n   - **Showcase (~17+ gens)** — 6–7 scenes, full arch-B world, previz pass, mobile tiers.\n   **Fewer scenes ≠ thinner site.** 3–4 well-chosen beats read as a complete world: give\n   each scene more scroll distance (`scroll: 1.6–2`) and `linger`, and let the copy\n   carry more per beat. A tight 4-scene world beats a budget-starved 6-scene one.\n   Two more levers when the user wants the B aesthetic on a lean budget: connectors are\n   **individually optional** (a `null` slot crossfades that seam directly — honest\n   tradeoff: that one transition is a dissolve, not a flight; spend connectors on the\n   seams around the hero scenes) and `seedance_2_0_mini` can BE the final model if the\n   user accepts 720p — it frame-locks, so the site stays seamless.\n5. **The journey (sections)** — the ordered scenes the camera flies through, **sized to\n   the budget tier**. Propose a set derived from the subject's own value chain and let\n   the user edit. Boba example (6-scene showcase): farms → pearl kitchen → flagship shop\n   → delivery → community plaza → the hero product; lean 4-scene cut: farms → kitchen →\n   shop → hero product. Each section needs: a short subject description (what's IN the\n   diorama), an eyebrow, a headline, one line of body, and 0–3 tag pills. The last\n   section is usually the hero product + the CTA.\n6. **Mobile tier — ALWAYS ask this; never silently generate extra assets.** Phones get\n   the full scroll animation in every tier — the engine's hardening (seek-coalescing,\n   iOS priming + Low Power Mode stills fallback, safe-area CSS, data-saver downgrade)\n   is always on; the tiers only decide what ASSETS exist. Use `AskUserQuestion`,\n   options in this order, with the credit cost stated:\n   - **Crop-safe (default, no extra cost)** — phones scrub the desktop clips,\n     centre-cropped to portrait. Every prompt already composes focal subjects\n     centre-safe (prompts.md), so this reads fine for most worlds.\n   - **Mobile encodes (recommended, no extra credits — just encode time)** — `-m.mp4`\n     siblings (720p, `-g 4`, Step 6) + `clipMobile`\u002F`connectorsMobile`\u002F`posterMobile`\n     wiring (Step 7) + mobile QA (Step 8). Phone-class devices (NOT tablets — the\n     engine tiers by screen, iPad gets the master) scrub the lighter files.\n   - **Hero reframe (small extra credit cost — state it)** — mobile encodes + 9:16\n     re-renders of the 1–2 scenes where the focal subject can't hold a centre crop\n     (usually hero + finale). Wire per-scene as the mobile clip\u002Fposter.\n   - **Full portrait chain (gold tier, ≈2× video credits — state it)** — a parallel\n     9:16 chain: portrait stills, own frame handoffs, own connectors, own SSIM gate\n     (aspect ratios can't mix mid-chain — a 9:16 clip can't continue a 16:9 frame).\n     This is what Apple ships: the mobile asset is a differently-framed render, not a\n     crop. Offer only when the user signals mobile traffic matters or the budget is\n     loose.\n\nVideo model is **not** an interview question — default `seedance_2_0` silently. If the user\nnames a preference, honor it **only if it can frame-lock seams** (Step 4 roster:\n`seedance_2_0`, `kling3_0`, `seedance_2_0_mini`). This skill only ships seamless output, so\na model that can't frame-lock is declined with a one-line why, not substituted in — use a\nroster model instead.\n\n**Close the interview with a spend estimate — get explicit go-ahead before any\ngeneration.** State the bill in plain numbers from the chosen budget tier: `N` image\ngens + video gens (`N` for architecture A, `2N-1` for B; previz adds a mini-tier chain\non showcase runs) + a re-roll budget (~20–30% extra on interiors, thanks to the NSFW\nfilter), plus any mobile-tier extras, and roughly how long it runs (gens are 3–8 min\neach; architecture A is sequential). The user approves the spend once, here — after\nthat the only further gates are the anchor-still approval (Step 2) and the previz\nreview (Step 4), both of which exist to keep the big spend from being wasted, not to\nre-ask permission.\n\nKeep the scroll mechanic fixed (continuous fly-through) — that's the point of the skill.\nSee `references\u002Fprompts.md` for the intake checklist and copy structure.\n\n---\n\n## Step 2 — Generate the scene stills\n\nOne image per section, **all sharing the same style preamble** for cohesion. Default\nmodel **`gpt_image_2`** (crisp, great at isometric illustration; returns a solid\u002Fwhite\nbackground which is perfect for floating diorama \"islands\"). Use `nano_banana_2` only if\nthe brief is character\u002Fcartoon-heavy (note: `nano_banana_2` is a CLI alias — it resolves\nto `nano_banana_pro`; it won't appear under that name in `higgsfield model list`).\n\nPrompt shape (full templates in `references\u002Fprompts.md`):\n\n```\n\u003CSTYLE PREAMBLE, identical every time>. On a plain solid \u003Cbg> background with a soft\ncontact shadow. \u003CPALETTE hexes>. No text, no letters, no logos, centered, 3:2.\nSubject: \u003Cwhat is in THIS diorama>.\n```\n\n- **Anchor first — never batch all N cold.** Generate ONE anchor still (the most\n  representative scene), show it to the user, and iterate the style preamble until they\n  approve. Only then batch the remaining N-1 **with the approved anchor passed as\n  `--image`** to lock the style. A style miss on the anchor costs 1 gen; after a cold\n  batch it costs N. This is a hard gate — do not proceed past an unapproved anchor.\n- Batch the rest concurrently, detached. Command per scene:\n  `higgsfield generate create gpt_image_2 --prompt \"$(cat scene_i.txt)\" --image anchor.png --aspect_ratio 3:2 --resolution 2k --quality high --wait --wait-timeout 15m --json > scene_i.json 2>scene_i.err`\n- Result URL is `.[]0.result_url` in the `--wait --json` output. `curl` it down.\n- A generation may fail transiently (HTTP 503) — re-roll that one individually; don't\n  restart the batch.\n- **Review the batch before continuing.** It must read as one cohesive world (same\n  angle, palette, light). Re-roll any off-style scene individually — the anchor style\n  lock stays in force.\n\nSee `references\u002Fpipeline.md` for the exact batch script (idempotent — re-runs skip\nfinished assets, so a crash or re-roll never repays for done work).\n\n---\n\n## Step 3 — (Optional) Float the scenes\n\nIf you want the dioramas to float over an atmospheric background instead of sitting in a\nsolid box, knock out the flat background to transparency with\n`references\u002Fknockout.py` (border-connected flood fill — preserves interior colour that\nmatches the bg, e.g. cream walls). Then encode to webp. If you'd rather keep it simple,\njust make the page background the same colour as the scene background and skip this.\n\nKeep the stills either way — they're the **reduced-motion artwork and no-clip\nfallback**. (Loading posters are NOT the stills: they're extracted from the encoded\nclips in Step 6, so the still→video swap can't pop.)\n\n---\n\n## Step 4 — Camera architecture (pick one — this makes or breaks the feel)\n\nHow the camera moves *between* scenes is the single biggest quality lever. Two shapes;\npick by aesthetic.\n\n### Video model — pick ONE for the whole chain\n\n**This skill only ships seamless output**, so the only usable models are ones that can\nframe-lock a seam: every chained clip must accept `--start-image`, and connectors also\nneed `--end-image`. That capability — not preference — is the selection rule. Check any\nmodel with `higgsfield model get \u003Cjob_type>` and **skip anything whose media inputs are\nreference-only** (no start\u002Fend image): it can only *condition* a generation, not\n*continue* a shot, so it physically can't hold a seam. Schemas below were confirmed\nagainst the CLI:\n\n| Model | start\u002Fend image | Notes |\n|---|---|---|\n| `seedance_2_0` (default) | ✓ \u002F ✓ | Full chain (legs + connectors). `--mode std --resolution 1080p`. Its NSFW filter is the touchy one (see Gotchas). |\n| `kling3_0` | ✓ \u002F ✓ | Full chain — tested: `--mode std --sound off --duration 5` with start+end images accepted, seams frame-lock cleanly. **No `--resolution` param** (don't pass one; `--mode std` returns **720p native** — encode what ffprobe reports, never upscale). Sound defaults **on** → `--sound off`. `--duration` default 5, try 10 for legs. Different content filter than Seedance — the sanctioned NSFW fallback. |\n| `seedance_2_0_mini` | ✓ \u002F ✓ | Cheap draft tier that keeps frame-locking (720p). The previz tier: run the whole chain here first, then re-render final legs on the full model — still seamless, so it translates directly. |\n\nThose three are the roster — all do both architectures. (`kling3_0_turbo` also frame-locks\nvia `--start-image`, but has no `--end-image`, so it's architecture-A-only and can't make\nconnectors; it also takes a different flag set — no `--mode`, has `--resolution` — so it\ndoesn't drop into the pipeline as-is. It's not in the default roster; only reach for it, and\nwire it by hand, if architecture A's sequential render time is a proven bottleneck and you've\nbenchmarked it as actually faster.)\n\n**Previz first (default, not optional-extra).** Unless the run is small (≤4 scenes),\nrender the whole chain on `seedance_2_0_mini` first. It frame-locks, so everything that\nmatters — journey order, camera grammar, seam continuity, copy pacing against the scrub —\nis validated at draft cost; assemble the page from the previz clips and review it with\nthe user before a single full-model credit is spent. Then clear the draft clips, flip\n`$VMODEL`, and re-render final (stills are reused; the pipeline's idempotency makes the\nsecond pass mechanical — `references\u002Fpipeline.md`, setup block).\n\nRules:\n- **One model for all chained clips.** Each renderer has its own motion\u002Fcolor\u002Fgrain\n  character; mixing models mid-chain keeps *position* continuity (frames still hand off)\n  but the render-character shift reads as a subtle pop. The one sanctioned exception is\n  the NSFW fallback for a single stubborn clip (Gotchas) — a slight character shift on\n  one 5s connector beats a missing connector.\n- Default to `seedance_2_0`; honor a user's stated preference **only if the model\n  qualifies** (frame-locking). If it doesn't, say so and use a supported model — never\n  ship a non-seamless build to satisfy a model request.\n- The pipeline scripts take the model as `$VMODEL` with per-model flags already cased\n  out (`references\u002Fpipeline.md`).\n\n### A) Continuous forward take — RECOMMENDED for grounded \u002F realistic \u002F walkthrough\nOne camera that only ever glides **forward**, first scene through last, as a single take.\nGenerate the legs **sequentially**: leg 0 from scene-0's still (glide forward into it);\nthen each leg's `--start-image` = the **previous leg's ACTUAL last frame** (extract with\nffmpeg), prompt *\"continue gliding smoothly FORWARD into [scene i], never pulling back\"*\n(or an expressive mid-leg move under the motion-handoff contract — see **Camera grammar**\nbelow), and **no `--end-image`** — an end-image of a wide establishing shot forces the\ncamera to pull back, which is the #1 cause of stutter. Extract each leg's last frame to feed the\nnext. Result: every seam is frame-identical **and** the camera never reverses. There are\n**no connectors** (skip Step 5) — the legs ARE the journey. Wire each leg as a section\nclip with `connectors: []` and a small `crossfade` (~0.08). Even without an `--end-image`\nthe legs still arrive at distinct rooms (the prompt steers the content). Cost: strictly\n**sequential** (can't parallelize) and slower; interiors trip the NSFW filter, so build in\nre-rolls (3 attempts\u002Fleg).\n\n### B) Dive-in + aerial connector — only for diorama \u002F miniature \u002F god's-eye worlds\nA \"dive into each scene\" clip + a connector that pulls **up and out** and flies over to the\nnext scene (Step 5). The pull-out **reverses camera direction at every seam** (forward dive\n→ backward pull-out). In a miniature\u002Fdiorama world that reads as an intentional \"zoom out\nto the map, fly to the next island\"; in a grounded first-person walkthrough it reads as a\njarring **rewind\u002Fstutter**. Use B only for the map-like aesthetic. When in doubt, use A.\n\n### Camera grammar — the move should fit the concept (A is NOT \"forward only\")\n\n\"Forward only\" is the *seam* rule, not the *leg* rule. The physics of the chain:\n\n- **Position continuity** at a seam comes from the frame handoff (next leg starts from the\n  previous leg's actual last frame).\n- **Velocity continuity** at a seam means the camera must never *reverse across a seam* —\n  that's the rewind stutter.\n- **Inside a single leg the camera is free.** One leg is one continuous render — there is\n  no seam to break mid-leg, so orbits, crane-ups, lateral tracking, even a push-in that\n  eases back out are all safe *within* the clip. Reversals are only fatal *across* seams.\n\nSo give each leg an expressive move chosen from the scene's own logic, under a **motion\nhandoff contract**: every leg **ends by settling into a slow, steady forward drift** toward\nthe next destination (final ~1 s), and every leg **begins by continuing that same drift**.\nKeep both clauses in the prompts verbatim (templates in `references\u002Fprompts.md`).\n\nPick the grammar from the concept:\n\n| Concept \u002F tone | Mid-leg move |\n|---|---|\n| Product \u002F luxury retail | slow half-orbit around the hero object, then continue past it |\n| Real estate \u002F hospitality | steadicam glide through doorways; gentle crane-up in atria |\n| Industrial \u002F process \u002F logistics | low lateral track alongside the line, foreground parallax |\n| Travel \u002F outdoors \u002F campus | drone-style rise-and-reveal, then a descending swoop |\n| Food \u002F craft \u002F detail-driven | push in close to the craft moment, ease back, carry on |\n| Playful miniature (arch. B) | dives + aerial hops — the connector IS the grammar |\n\nHonest costs: expressive mid-leg moves raise re-roll odds — the model can end a fancy move\nin a state that isn't a clean forward drift. Mitigations: keep the final-second settle\nclause verbatim; **eyeball each leg's last frame before chaining the next** (it should look\nlike a frame from a gentle forward glide — if not, re-roll before wasting the next leg);\nbudget ~1 extra re-roll per expressive leg. A plain forward glide stays the zero-risk\ndefault — use it for legs where the scene itself is the show.\n\nTwo related pacing knobs live in the engine (Step 7): per-section `scroll` (more scroll\ndistance = longer dwell in that scene) and `linger` (the camera settles mid-scene exactly\nwhile the copy peaks, then picks up speed toward the seam). Prefer expressive motion in the\n*clip* and restraint in the *scrub mapping* — they compound.\n\nAnd remember scroll is a scrubber: visitors can scroll **up**, so every move also plays in\nreverse. That's free and expected — no extra work — but it's another reason seam velocity\nmust be consistent in both directions (a seam that reads fine forward reads as a stutter\nbackward too if velocity flips).\n\n**For B**, one camera flight per scene: starts high\u002Foutside, descends into the interior,\nstructure opens. Model: the chain model you picked above (default **`seedance_2_0`**),\n`--start-image = the scene still`.\n\n- Use the **solid-background still** (not the knocked-out transparent one) as the\n  start image, so the video has a full frame.\n- Prompt: \"Single continuous cinematic camera move, no cuts. Begin high and far looking\n  at the whole \u003Cscene> from outside … descend and fly inside toward \u003Cfocal point> … the\n  roof\u002Fwalls gently open to reveal the interior. \u003Cstyle>, smooth graceful slow motion.\n  No text.\" (Template in `references\u002Fprompts.md`.)\n- Params (seedance): `--mode std --resolution 1080p --aspect_ratio 16:9 --duration 8`.\n  For Kling: drop `--resolution` (no such param), add `--sound off`, `--duration 10`.\n  Do **not** pass `--generate-audio` (it errors on seedance; audio is wasted anyway —\n  you'll mute).\n- Run concurrently, detached, then download each `.result_url`. Re-roll individual\n  failures. Keep the raw 1080p sources — you need their frames next.\n\n---\n\n## Step 5 — Connectors (architecture B only)\n\nSkip this whole step for architecture **A** — the forward take has no connectors; its legs\nalready chain seamlessly. This step applies to **B** (diorama\u002Fminiature), and note the\nreversal caveat from Step 4.\n\nThe connector clips are what make the world feel *connected* instead of cut. A connector\nflies from the end of scene i out and into the start of scene i+1. **Both of its\nendpoints must be the ACTUAL RENDERED FRAMES of the neighbouring clips — never the\noriginal diorama still.**\n\nWhy: every Higgsfield generation renders slightly differently. If a connector *ends* on\na fresh render of \"the kitchen diorama,\" but the next dive clip *starts* on its own\ndifferent render of that same diorama, the two won't match and you get a pop at the seam.\nThe fix is to hand off the exact pixels:\n\n```\nFor each connector between dive_i and dive_{i+1}:\n  start-image = the LAST frame extracted from dive_i's rendered video\n  end-image   = the FIRST frame extracted from dive_{i+1}'s rendered video\n```\n\nNow every seam is frame-identical on *both* sides:\n`dive_i.end == connector.start` and `connector.end == dive_{i+1}.start`.\n\nExtract the boundary frames from the rendered dives (not the stills):\n\n```bash\nffmpeg -sseof -0.15 -i dive_i.mp4   -frames:v 1 -q:v 2 dive_i_last.png    # interior of i\nffmpeg -ss 0      -i dive_{i+1}.mp4 -frames:v 1 -q:v 2 dive_next_first.png # establishing of i+1\n```\n\nGenerate the connector (`--duration 5` is plenty). Connectors need `--end-image`, so the\nmodel must accept it — any roster model does (`seedance_2_0`, `seedance_2_0_mini`,\n`kling3_0`):\n\n```bash\nhiggsfield generate create \"$VMODEL\" \\\n  --prompt \"$(cat connector_i.txt)\" \\\n  --start-image dive_i_last.png --end-image dive_next_first.png \\\n  $VOPTS --aspect_ratio 16:9 --duration 5 --wait --json\n# seedance: VOPTS=\"--mode std --resolution 1080p\"; kling3_0: VOPTS=\"--mode std --sound off\"\n```\n\nConnector prompt: \"Single continuous camera move, no cuts. Pull up and back out of\n\u003Cscene i>, rise into the sky, glide across the connected miniature world, and arrive\nabove \u003Cscene i+1>, beginning to descend toward it. Seamless flowing aerial transition.\n\u003Cstyle>. No text.\" (Template in `references\u002Fprompts.md`.)\n\nInsurance: Seedance lands *close* to the end-image but not always pixel-perfect, so the\nengine still applies a **short crossfade** (a few frames) at each seam. Frame-matched\nendpoints + a small crossfade = no visible cut. Never skip the actual-frame handoff and\nrely on the crossfade alone; a big content jump can't be hidden by a crossfade.\n\nWhether a handoff actually held is **machine-checkable** — don't wait for the browser\nQA to find out. After encoding, run the SSIM seam check (`references\u002Fpipeline.md` §5c):\na true actual-frame handoff scores ≥0.95 across the boundary; \u003C0.75 means an endpoint\nwas a still or the wrong frame. Run it again after every re-roll — replacing one clip\nsilently touches BOTH of its seams.\n\n---\n\n## Step 6 — Encode for smooth scrubbing\n\nScrubbing = setting `video.currentTime` from scroll. Two things matter, and they are\noften gotten wrong:\n\n1. **Seekability, not keyframe density, is what makes scrubbing work.** Many static\n   hosts (and `python -m http.server`) don't serve HTTP byte-range requests, which pins\n   `video.seekable` to `[0,0]` and clamps *every* seek to frame 0 — the video looks\n   frozen. The robust fix is to **fetch each clip as a `Blob` and play it from an\n   in-memory object URL** (blobs are always fully seekable). The engine does this.\n   Because of it, you do **not** need all-intra video.\n2. **Don't shrink quality to get smooth seeks.** Encode at the **native resolution**\n   (1080p from Seedance — don't downscale), `crf ~20`, a **small GOP** (`-g 8`) rather\n   than all-intra (all-intra bloats an 8s clip to ~25 MB; GOP 8 is ~8 MB and scrubs\n   fine via blob). Strip audio, add faststart, and a light `unsharp` counters video\n   softness:\n\n```bash\nffmpeg -i src.mp4 -an -vf \"unsharp=5:5:0.8:5:5:0.0\" \\\n  -c:v libx264 -preset slow -crf 20 -pix_fmt yuv420p \\\n  -g 8 -keyint_min 8 -sc_threshold 0 -movflags +faststart out.mp4\n```\n\nEncode all 2N-1 clips (dives + connectors) with the same settings for uniform quality.\n\n**Extract posters from the ENCODED clips** (`references\u002Fpipeline.md` §5b). The still is\na 3:2 image; the clip is a 16:9 *re-render* of it — if the still is the loading poster,\nthe first video paint visibly jumps (crop + render drift) on the very first scene a\nvisitor sees. Same doctrine as the connectors, applied to seam zero: the poster must be\nthe clip's own extracted first frame. Wire it as `sections[k].poster` (Step 7); keep the\nstill as the reduced-motion artwork.\n\nThen run the **automated seam check** (`references\u002Fpipeline.md` §5c) before touching a\nbrowser — every seam SSIM ≥0.90 or you have a redo, not a QA note.\n\n**Mobile encodes (only if the user picked a tier beyond crop-safe at Step 1.6).** Phone\nvideo decoders seek far slower than a laptop's, and seek cost scales with GOP length, so\nthe 1080p `-g 8` master that scrubs smoothly on desktop can stutter on a phone. Produce a\nlighter `-m.mp4` sibling for every clip — **720p, `-g 4`** (more keyframes = cheaper\nseeks; keyframe-every-4-to-10 is the industry recipe for scrub-smooth mobile video), crf\n23 — and wire them as `clipMobile` \u002F `connectorsMobile` (Step 7). Extract each mobile\nencode's first frame as its `posterMobile` (same doctrine as §5b — the poster must match\nthe encode the device actually gets). The engine serves mobile files on phone-class\ndevices only (screen short side ≤600 CSS px — tablets and iPads get the master) and\nfalls back to the desktop clip when absent. Scripts in `references\u002Fpipeline.md` §6; for\nthe hero-reframe \u002F portrait-chain tiers see §7. If the user chose crop-safe, skip this —\nthe engine still hardens phone scrubbing regardless (seek-coalescing, iOS priming, Low\nPower Mode stills fallback), so the page degrades gracefully rather than breaking.\n\n---\n\n## Step 7 — Assemble the page\n\nCopy `references\u002Fscrub-engine.js` (and, if you want a fully standalone page, the tiny\n`references\u002Findex-template.html`) into the user's project — or adapt into their\nframework. It's config-driven and self-contained:\n\n```js\nmountScrollWorld(document.getElementById('world'), {\n  brand: { name: 'Pearl & Co.' },\n  diveScroll: 1.3, connScroll: 0.9,          \u002F\u002F viewport-heights of scroll per clip\n  sections: [\n    { id:'farm', label:'The Farms', still:'assets\u002Ffarm.webp',\n      poster:'assets\u002Ffarm-poster.webp',          \u002F\u002F encoded clip's extracted first frame (Step 6)\n      clip:'assets\u002Fvid\u002Ffarm.mp4', clipMobile:'assets\u002Fvid\u002Ffarm-m.mp4',   \u002F\u002F mobile beta only\n      scroll: 1.6, linger: 0.45,   \u002F\u002F optional pacing: longer dwell + camera settles mid-scene\n      accent:'#8FB98A', eyebrow:'From leaf to last sip', title:'It starts in the hills.',\n      body:'…', tags:['Single-origin','Hand-picked'] },\n    \u002F\u002F …one per section; last may carry a `cta`\n  ],\n  connectors:       ['assets\u002Fvid\u002Fconn1.mp4','assets\u002Fvid\u002Fconn2.mp4',   \u002F* … length = sections-1 *\u002F],\n  connectorsMobile: ['assets\u002Fvid\u002Fconn1-m.mp4','assets\u002Fvid\u002Fconn2-m.mp4' \u002F* … same length; mobile beta only *\u002F],\n});\n```\n\nThe engine handles: the ordered dive\u002Fconnector chain, scroll→currentTime with rAF\nsmoothing, blob loading, lazy prefetch of nearby clips, frame-matched crossfades, pinned\nper-section copy (first section greets on landing, last holds its CTA), a route rail,\n`prefers-reduced-motion`, and mobile. **Pacing per section:** `scroll` overrides\n`diveScroll` for that scene (more scroll = longer dwell) and `linger` (0–1, keep ≤ 0.6)\nremaps time so the camera settles mid-scene — exactly while the copy peaks — then speeds\nup toward the seam; seam frames are untouched (f(0)=0, f(1)=1). Give the hero and finale\nscenes a higher `scroll` + some `linger`; keep transit scenes brisk. Theme it with CSS variables (`--accent`,\n`--sw-bg`, `--sw-ink`, …) — the visual identity comes from the generated clips, so the\nchrome stays quiet. See the header of `scrub-engine.js` for the full config + CSS vars.\n\n**On phones the engine adapts automatically, along two separate axes.** *Clip tier*\n(which file) is decided by device class — screen short side ≤600 CSS px = phone →\n`clipMobile`\u002F`posterMobile`; tablets (iPad Pro included — coarse pointer but\ndesktop-class screen and decoder) and desktops get the master. *Behaviour hardening*\n(how it acts) keys off coarse pointer \u002F ≤860px viewport: **coalesced seeks** (never\nqueues a new `currentTime` mid-seek — what stops a fast flick freezing the clip),\nposter held until the clip paints, **video priming on first touch** (iOS\nblank-until-played fix), a longer scroll run per scene (`scrollMobileFactor`, default\n1.2 — small viewports read the same flight as faster), dropped particles, URL-bar-safe\nresizes, safe-area insets. **Automatic stills fallback:** `prefers-reduced-motion`,\nChromium data-saver, and iOS **Low Power Mode** (detected at runtime — a rejected muted\n`play()` on first touch) all flip the page to stills-with-crossfades instead of frozen\nvideo. On 2g\u002F3g (Chromium signal) the clip prefetch window shrinks. All of this is on\nby default — no config. The `clipMobile`\u002F`connectorsMobile`\u002F`posterMobile` encodes are\nthe opt-in tiers from Step 1.6: wire them only when the user picked one.\n\n**SEO copy is not optional — this is a landing page.** The engine renders all copy\nclient-side, so on its own the page has zero crawlable text. Always put a plain-markup\nmirror of the copy (h1 = hero line, one h2 + p per scene, real CTA links) inside the\ncontainer in a `data-sw-seo` block — the engine hides it on mount, crawlers\u002Flink\npreviews\u002Fno-JS visitors read it from the served HTML. `references\u002Findex-template.html`\nships the block; when adapting into a framework, server-render it.\n\nFor non-JS backends (Python\u002FRails\u002Fetc.): serve the assets and drop the engine `\u003Cscript>`\ninto the rendered HTML; nothing about it is framework-specific.\n\n---\n\n## Step 8 — QA the seams (don't skip)\n\n**First, the machine check:** the SSIM seam gate (`references\u002Fpipeline.md` §5c) must\nalready be green — every seam ≥0.90 (0.75–0.90 only where you've eyeballed the\ncrossfade and accepted it). If you skipped it, run it now; browser QA below verifies\nthe *page*, the SSIM gate verifies the *assets*, and a red asset can't be QA'd into a\ngreen page.\n\nThen drive the page in a headless browser and **verify frame continuity at the seams**\nend-to-end:\n\n- Screenshot at scroll positions just before and just after each seam. The two frames\n  must be near-identical (the dive's last frame == the connector's first frame). If they\n  pop, you used the diorama still instead of the actual rendered frame (redo Step 5), or\n  the crossfade band is too short.\n- Confirm the first paint is clean: the poster (extracted frame) shows instantly, and\n  the poster→video takeover does not shift the image (if it does, `poster` is missing\n  or points at the still — Step 6).\n- Check the console for errors, confirm `video.seekable.end(0) > 0` (blob working), and\n  that `currentTime` tracks scroll across each clip's band.\n- **Stills-mode fallbacks (every build, cheap to check):**\n  - Data-saver: emulate `navigator.connection.saveData = true` (DevTools override or an\n    init script) — page must render as stills-with-crossfades, zero clip fetches in the\n    Network panel.\n  - Low Power Mode: hardest to emulate — on a real iPhone, enable it and confirm the\n    page falls back to stills on first touch instead of frozen video. Emulated proxy:\n    stub `HTMLMediaElement.play` to return a rejected promise, tap, confirm stills mode.\n  - Tablet tier: iPad viewport (834×1194, touch) must fetch the **desktop** clip\n    (Network panel), not the `-m.mp4` — while still getting touch behaviour.\n- **Mobile — full checklist only if the user picked a mobile tier (Step 1.6).**\n  For a crop-safe build, just sanity-check a phone viewport once: page loads, still\n  posters show, nothing overlaps — the engine's hardening covers graceful degradation.\n  For the mobile tiers (do this on a real phone or an emulated one, portrait + landscape):\n  - Emulate a phone viewport **with CPU throttled 4–6×** and scroll fast — the clip should\n    track without freezing (the seek-coalescing + `-m.mp4` encodes are what make this hold).\n  - Confirm the first scene shows immediately (its still is the poster) and the video takes\n    over the instant you scroll — no blank\u002Fblack scene (the iOS priming fix). Test iOS Safari\n    specifically; it's the one that goes blank if this regresses.\n  - Verify the `-m.mp4` variant is actually served on mobile (Network panel), and the\n    heavy 1080p master on desktop.\n  - Slowly scroll so the URL bar collapses — the page must **not jump** (height-only resizes\n    are ignored on touch). Rotate the device — layout should recompose cleanly.\n  - Portrait crops a 16:9 clip to its centre; confirm the focal subject still reads. If a\n    hero scene's subject sits off-centre and gets cut, recompose it (prompts.md) or generate\n    a 9:16 variant for that scene.\n- Check reduced-motion (should fall back to the stills, no video, no particles).\n\n---\n\n## Gotchas — top 5 inline; full list in `references\u002Fgotchas.md`\n\nRead `references\u002Fgotchas.md` the moment any generation fails or any QA check reads\nwrong — it maps symptom → cause → fix for every failure seen in production (encode,\ntheming, phone, iOS, Kling flags, portrait crops, and more). The five that block runs\nmost often:\n\n- **Seam pop** → connector endpoints were the diorama stills, not the neighbouring\n  clips' actual frames. Always extract real frames (Step 5); the SSIM gate (pipeline\n  §5c) catches this before a browser ever opens.\n- **Seam stutter \u002F camera \"jumps backward\"** → camera *velocity reverses* across a seam\n  (inherent to architecture B's pull-outs). Grounded walkthroughs must use\n  architecture A (Step 4).\n- **NSFW false-positives (Seedance `status \"nsfw\"`)** → flags innocuous interiors\n  (bedroom\u002Fpool\u002Fspa; words like \"bed\", \"wine\", \"swim\"). In order: re-roll (often passes\n  2nd–3rd try) → strip trigger words + add \"empty, unoccupied, no people, architectural\"\n  → regenerate that one clip on `kling3_0` with the same start\u002Fend frames → set the\n  connector slot to `null` (engine crossfades that seam directly). Budget re-rolls on\n  interiors.\n- **Frozen video \u002F stuck at frame 0** → host doesn't serve byte ranges, `seekable=[0,0]`.\n  Blob URLs fix it (engine does this).\n- **Concurrent gens 503 \u002F \"not_enough_credits\" race** → transient under parallel launch;\n  re-roll the individual failure (verify credits with `higgsfield workspace list`).\n\n## References\n\n- `references\u002Fprompts.md` — the intake checklist, style-preamble pattern, and every\n  prompt template (scene still, dive, connector) with fill-in slots.\n- `references\u002Fpipeline.md` — copy-paste batch scripts for the whole run (anchor-gated\n  stills → previz → dives → frames → connectors → encode → posters → SSIM seam gate →\n  mobile encode), idempotent + bash-3.2-safe.\n- `references\u002Fscrub-engine.js` — the portable, config-driven scrub engine (builds DOM +\n  injects CSS; blob-seek, lazy load, seam crossfade, extracted-frame posters, hidden\n  `data-sw-seo` static-copy block, copy, route rail, reduced-motion, and phone hardening:\n  mobile encodes, seek-coalescing, iOS priming, safe-area, no-jump resize).\n- `references\u002Findex-template.html` — a minimal standalone page that mounts the engine,\n  including the crawlable `data-sw-seo` copy block.\n- `references\u002Fknockout.py` — border-connected background knockout for floating scenes.\n- `references\u002Fgotchas.md` — the full symptom → cause → fix list, plus the canvas\n  frame-sequence alternative for when video scrubbing isn't smooth enough.\n","# scroll-world\n\nProduces a landing page where **scroll drives a camera**: it dives from outside a scene\ninto its interior, then flies out and into the next scene, continuously, with no visible\ncuts. The visuals are AI-generated (Higgsfield); the page just scrubs pre-rendered video\nby scroll position. This is the same technique behind Apple's scroll-through product\npages — the camera genuinely moves, scroll only drives time.\n\n**What you generate:** N scene stills (anchor-gated) → N \"dive-in\" camera clips → N-1\n\"connector\" clips that join consecutive scenes seamlessly → encoded clips + extracted\nposters → an automated SSIM seam check → a portable scrub engine that plays the whole\nchain as one flight. Chain clips render on the cheap previz tier first by default;\nfull-model credits are spent only after the user approves the draft.\n\n**The one rule that makes or breaks it:** seams must be *frame-identical*. Read\n[The seamless chain](#step-5--the-seamless-chain-the-critical-part) before generating any\nconnector. Getting this wrong is the single most common failure and produces a visible\n\"pop\" between scenes.\n\nDo not assume a frontend framework. The scrub engine in `references\u002Fscrub-engine.js` is\nself-contained vanilla JS (it builds its own DOM + injects its own CSS into a container\nyou give it), so it drops into plain HTML, Next.js, Vue, a Python-served page, anything.\nThe value of this skill is the Higgsfield pipeline, the prompts, and the seam method —\nnot the framework.\n\n---\n\n## Step 0 — Bootstrap\n\n1. **Higgsfield CLI.** If `higgsfield` is not on `$PATH`, install per the\n   `higgsfield-generate` skill. If `higgsfield workspace list` fails auth, ask the user\n   to run `higgsfield auth login` (interactive OAuth — you cannot run it) and, if needed,\n   `higgsfield workspace set \u003Cid>`. Confirm there are enough credits: a run is `N` image\n   gens + `N` video gens (architecture A) or `(2N-1)` video gens (architecture B), plus\n   re-rolls — the Step 1 budget tier sets `N`.\n2. **ffmpeg \u002F ffprobe** on `$PATH` (frame extraction + encoding).\n3. **An image tool** for background knockout if you want floating scenes: PIL\n   (`python3 -c \"import PIL\"`), or `cwebp`\u002F`sips`. Optional — see Step 3.\n4. Caveats: macOS ships **bash 3.2** (no `declare -A`); don't use associative arrays in\n   scripts. Higgsfield generations take **3–8 min each** — always run them detached\n   (background) and poll, never a foreground blocking call. Reference-by-job-UUID is\n   rejected by media flags — pass **local file paths** to `--image\u002F--start-image\u002F--end-image`.\n   Video models differ in accepted params (e.g. Kling has no `--resolution`) and in whether\n   they support start\u002Fend-image conditioning at all — before batching, confirm the chosen\n   model's schema with `higgsfield model get \u003Cjob_type>` and see the Step 4 model table.\n\n---\n\n## Step 1 — Interview the user\n\nThe **subject is the user's to state — ask it as an open question in plain prose**, never a\nfabricated multiple-choice. A made-up list of industries biases them and reads as you\ndeciding their business for them; let them answer in their own words (their real business,\na client's, or any idea). Reserve `AskUserQuestion` (with options) for the genuinely\nenumerable, lower-stakes choices below — art direction and brand-kit approach — and even\nthere, signal they can go their own way (\"Other\"). Ask only what you can't sensibly\ndefault. Cover:\n\n1. **Subject** (ask openly, not multiple-choice) — \"What should this world be about? Your\n   business, a client's, or any idea — a word or a sentence is fine.\" Capture the\n   industry\u002Fproduct + a one-line pitch (e.g. \"a bubble tea company, from leaf to last\n   sip\"), and a brand name if they have one; otherwise you'll propose one below.\n2. **Brand kit** — offer three paths, pick one:\n   - Import from a URL: `higgsfield marketing-studio brand-kits fetch --url \u003Csite> --wait`\n     (pulls name, colours, tone). Then read it back with `brand-kits list --json`.\n   - The user hands you palette + name + tone directly.\n   - You propose a palette + name and let them approve.\n   Capture **4–6 named hex values**, a display name, and a tone word or two.\n3. **Art direction** — default is \"soft matte low-poly **clay diorama**, isometric,\n   tilt-shift miniature, warm light.\" Offer alternatives (flat papercraft, glossy toy,\n   claymation, neon night). Whatever is chosen becomes the shared **style preamble**\n   reused verbatim in every scene prompt (this is what makes the world cohesive).\n4. **Budget tier — ask BEFORE proposing the journey; video generations dominate cost.**\n   The bill scales with scene count and architecture: architecture A (forward take) =\n   `N` videos, architecture B (dives + connectors) = `2N-1` videos, plus `N` stills and\n   a ~20–30% re-roll buffer. A 6-scene arch-B run is ~17 generations — a serious bite\n   out of a subscription. Use `AskUserQuestion` with concrete numbers:\n   - **Lean (~8 gens)** — 4 scenes, architecture A (4 stills + 4 legs), skip previz\n     (small runs re-roll cheaper than a draft pass). Same site, same continuous flight —\n     just 4 beats instead of 6.\n   - **Standard (~11–13 gens)** — 5 scenes; arch A (10 gens) or arch B (5 + 9 = 14).\n   - **Showcase (~17+ gens)** — 6–7 scenes, full arch-B world, previz pass, mobile tiers.\n   **Fewer scenes ≠ thinner site.** 3–4 well-chosen beats read as a complete world: give\n   each scene more scroll distance (`scroll: 1.6–2`) and `linger`, and let the copy\n   carry more per beat. A tight 4-scene world beats a budget-starved 6-scene one.\n   Two more levers when the user wants the B aesthetic on a lean budget: connectors are\n   **individually optional** (a `null` slot crossfades that seam directly — honest\n   tradeoff: that one transition is a dissolve, not a flight; spend connectors on the\n   seams around the hero scenes) and `seedance_2_0_mini` can BE the final model if the\n   user accepts 720p — it frame-locks, so the site stays seamless.\n5. **The journey (sections)** — the ordered scenes the camera flies through, **sized to\n   the budget tier**. Propose a set derived from the subject's own value chain and let\n   the user edit. Boba example (6-scene showcase): farms → pearl kitchen → flagship shop\n   → delivery → community plaza → the hero product; lean 4-scene cut: farms → kitchen →\n   shop → hero product. Each section needs: a short subject description (what's IN the\n   diorama), an eyebrow, a headline, one line of body, and 0–3 tag pills. The last\n   section is usually the hero product + the CTA.\n6. **Mobile tier — ALWAYS ask this; never silently generate extra assets.** Phones get\n   the full scroll animation in every tier — the engine's hardening (seek-coalescing,\n   iOS priming + Low Power Mode stills fallback, safe-area CSS, data-saver downgrade)\n   is always on; the tiers only decide what ASSETS exist. Use `AskUserQuestion`,\n   options in this order, with the credit cost stated:\n   - **Crop-safe (default, no extra cost)** — phones scrub the desktop clips,\n     centre-cropped to portrait. Every prompt already composes focal subjects\n     centre-safe (prompts.md), so this reads fine for most worlds.\n   - **Mobile encodes (recommended, no extra credits — just encode time)** — `-m.mp4`\n     siblings (720p, `-g 4`, Step 6) + `clipMobile`\u002F`connectorsMobile`\u002F`posterMobile`\n     wiring (Step 7) + mobile QA (Step 8). Phone-class devices (NOT tablets — the\n     engine tiers by screen, iPad gets the master) scrub the lighter files.\n   - **Hero reframe (small extra credit cost — state it)** — mobile encodes + 9:16\n     re-renders of the 1–2 scenes where the focal subject can't hold a centre crop\n     (usually hero + finale). Wire per-scene as the mobile clip\u002Fposter.\n   - **Full portrait chain (gold tier, ≈2× video credits — state it)** — a parallel\n     9:16 chain: portrait stills, own frame handoffs, own connectors, own SSIM gate\n     (aspect ratios can't mix mid-chain — a 9:16 clip can't continue a 16:9 frame).\n     This is what Apple ships: the mobile asset is a differently-framed render, not a\n     crop. Offer only when the user signals mobile traffic matters or the budget is\n     loose.\n\nVideo model is **not** an interview question — default `seedance_2_0` silently. If the user\nnames a preference, honor it **only if it can frame-lock seams** (Step 4 roster:\n`seedance_2_0`, `kling3_0`, `seedance_2_0_mini`). This skill only ships seamless output, so\na model that can't frame-lock is declined with a one-line why, not substituted in — use a\nroster model instead.\n\n**Close the interview with a spend estimate — get explicit go-ahead before any\ngeneration.** State the bill in plain numbers from the chosen budget tier: `N` image\ngens + video gens (`N` for architecture A, `2N-1` for B; previz adds a mini-tier chain\non showcase runs) + a re-roll budget (~20–30% extra on interiors, thanks to the NSFW\nfilter), plus any mobile-tier extras, and roughly how long it runs (gens are 3–8 min\neach; architecture A is sequential). The user approves the spend once, here — after\nthat the only further gates are the anchor-still approval (Step 2) and the previz\nreview (Step 4), both of which exist to keep the big spend from being wasted, not to\nre-ask permission.\n\nKeep the scroll mechanic fixed (continuous fly-through) — that's the point of the skill.\nSee `references\u002Fprompts.md` for the intake checklist and copy structure.\n\n---\n\n## Step 2 — Generate the scene stills\n\nOne image per section, **all sharing the same style preamble** for cohesion. Default\nmodel **`gpt_image_2`** (crisp, great at isometric illustration; returns a solid\u002Fwhite\nbackground which is perfect for floating diorama \"islands\"). Use `nano_banana_2` only if\nthe brief is character\u002Fcartoon-heavy (note: `nano_banana_2` is a CLI alias — it resolves\nto `nano_banana_pro`; it won't appear under that name in `higgsfield model list`).\n\nPrompt shape (full templates in `references\u002Fprompts.md`):\n\n```\n\u003CSTYLE PREAMBLE, identical every time>. On a plain solid \u003Cbg> background with a soft\ncontact shadow. \u003CPALETTE hexes>. No text, no letters, no logos, centered, 3:2.\nSubject: \u003Cwhat is in THIS diorama>.\n```\n\n- **Anchor first — never batch all N cold.** Generate ONE anchor still (the most\n  representative scene), show it to the user, and iterate the style preamble until they\n  approve. Only then batch the remaining N-1 **with the approved anchor passed as\n  `--image`** to lock the style. A style miss on the anchor costs 1 gen; after a cold\n  batch it costs N. This is a hard gate — do not proceed past an unapproved anchor.\n- Batch the rest concurrently, detached. Command per scene:\n  `higgsfield generate create gpt_image_2 --prompt \"$(cat scene_i.txt)\" --image anchor.png --aspect_ratio 3:2 --resolution 2k --quality high --wait --wait-timeout 15m --json > scene_i.json 2>scene_i.err`\n- Result URL is `.[]0.result_url` in the `--wait --json` output. `curl` it down.\n- A generation may fail transiently (HTTP 503) — re-roll that one individually; don't\n  restart the batch.\n- **Review the batch before continuing.** It must read as one cohesive world (same\n  angle, palette, light). Re-roll any off-style scene individually — the anchor style\n  lock stays in force.\n\nSee `references\u002Fpipeline.md` for the exact batch script (idempotent — re-runs skip\nfinished assets, so a crash or re-roll never repays for done work).\n\n---\n\n## Step 3 — (Optional) Float the scenes\n\nIf you want the dioramas to float over an atmospheric background instead of sitting in a\nsolid box, knock out the flat background to transparency with\n`references\u002Fknockout.py` (border-connected flood fill — preserves interior colour that\nmatches the bg, e.g. cream walls). Then encode to webp. If you'd rather keep it simple,\njust make the page background the same colour as the scene background and skip this.\n\nKeep the stills either way — they're the **reduced-motion artwork and no-clip\nfallback**. (Loading posters are NOT the stills: they're extracted from the encoded\nclips in Step 6, so the still→video swap can't pop.)\n\n---\n\n## Step 4 — Camera architecture (pick one — this makes or breaks the feel)\n\nHow the camera moves *between* scenes is the single biggest quality lever. Two shapes;\npick by aesthetic.\n\n### Video model — pick ONE for the whole chain\n\n**This skill only ships seamless output**, so the only usable models are ones that can\nframe-lock a seam: every chained clip must accept `--start-image`, and connectors also\nneed `--end-image`. That capability — not preference — is the selection rule. Check any\nmodel with `higgsfield model get \u003Cjob_type>` and **skip anything whose media inputs are\nreference-only** (no start\u002Fend image): it can only *condition* a generation, not\n*continue* a shot, so it physically can't hold a seam. Schemas below were confirmed\nagainst the CLI:\n\n| Model | start\u002Fend image | Notes |\n|---|---|---|\n| `seedance_2_0` (default) | ✓ \u002F ✓ | Full chain (legs + connectors). `--mode std --resolution 1080p`. Its NSFW filter is the touchy one (see Gotchas). |\n| `kling3_0` | ✓ \u002F ✓ | Full chain — tested: `--mode std --sound off --duration 5` with start+end images accepted, seams frame-lock cleanly. **No `--resolution` param** (don't pass one; `--mode std` returns **720p native** — encode what ffprobe reports, never upscale). Sound defaults **on** → `--sound off`. `--duration` default 5, try 10 for legs. Different content filter than Seedance — the sanctioned NSFW fallback. |\n| `seedance_2_0_mini` | ✓ \u002F ✓ | Cheap draft tier that keeps frame-locking (720p). The previz tier: run the whole chain here first, then re-render final legs on the full model — still seamless, so it translates directly. |\n\nThose three are the roster — all do both architectures. (`kling3_0_turbo` also frame-locks\nvia `--start-image`, but has no `--end-image`, so it's architecture-A-only and can't make\nconnectors; it also takes a different flag set — no `--mode`, has `--resolution` — so it\ndoesn't drop into the pipeline as-is. It's not in the default roster; only reach for it, and\nwire it by hand, if architecture A's sequential render time is a proven bottleneck and you've\nbenchmarked it as actually faster.)\n\n**Previz first (default, not optional-extra).** Unless the run is small (≤4 scenes),\nrender the whole chain on `seedance_2_0_mini` first. It frame-locks, so everything that\nmatters — journey order, camera grammar, seam continuity, copy pacing against the scrub —\nis validated at draft cost; assemble the page from the previz clips and review it with\nthe user before a single full-model credit is spent. Then clear the draft clips, flip\n`$VMODEL`, and re-render final (stills are reused; the pipeline's idempotency makes the\nsecond pass mechanical — `references\u002Fpipeline.md`, setup block).\n\nRules:\n- **One model for all chained clips.** Each renderer has its own motion\u002Fcolor\u002Fgrain\n  character; mixing models mid-chain keeps *position* continuity (frames still hand off)\n  but the render-character shift reads as a subtle pop. The one sanctioned exception is\n  the NSFW fallback for a single stubborn clip (Gotchas) — a slight character shift on\n  one 5s connector beats a missing connector.\n- Default to `seedance_2_0`; honor a user's stated preference **only if the model\n  qualifies** (frame-locking). If it doesn't, say so and use a supported model — never\n  ship a non-seamless build to satisfy a model request.\n- The pipeline scripts take the model as `$VMODEL` with per-model flags already cased\n  out (`references\u002Fpipeline.md`).\n\n### A) Continuous forward take — RECOMMENDED for grounded \u002F realistic \u002F walkthrough\nOne camera that only ever glides **forward**, first scene through last, as a single take.\nGenerate the legs **sequentially**: leg 0 from scene-0's still (glide forward into it);\nthen each leg's `--start-image` = the **previous leg's ACTUAL last frame** (extract with\nffmpeg), prompt *\"continue gliding smoothly FORWARD into [scene i], never pulling back\"*\n(or an expressive mid-leg move under the motion-handoff contract — see **Camera grammar**\nbelow), and **no `--end-image`** — an end-image of a wide establishing shot forces the\ncamera to pull back, which is the #1 cause of stutter. Extract each leg's last frame to feed the\nnext. Result: every seam is frame-identical **and** the camera never reverses. There are\n**no connectors** (skip Step 5) — the legs ARE the journey. Wire each leg as a section\nclip with `connectors: []` and a small `crossfade` (~0.08). Even without an `--end-image`\nthe legs still arrive at distinct rooms (the prompt steers the content). Cost: strictly\n**sequential** (can't parallelize) and slower; interiors trip the NSFW filter, so build in\nre-rolls (3 attempts\u002Fleg).\n\n### B) Dive-in + aerial connector — only for diorama \u002F miniature \u002F god's-eye worlds\nA \"dive into each scene\" clip + a connector that pulls **up and out** and flies over to the\nnext scene (Step 5). The pull-out **reverses camera direction at every seam** (forward dive\n→ backward pull-out). In a miniature\u002Fdiorama world that reads as an intentional \"zoom out\nto the map, fly to the next island\"; in a grounded first-person walkthrough it reads as a\njarring **rewind\u002Fstutter**. Use B only for the map-like aesthetic. When in doubt, use A.\n\n### Camera grammar — the move should fit the concept (A is NOT \"forward only\")\n\n\"Forward only\" is the *seam* rule, not the *leg* rule. The physics of the chain:\n\n- **Position continuity** at a seam comes from the frame handoff (next leg starts from the\n  previous leg's actual last frame).\n- **Velocity continuity** at a seam means the camera must never *reverse across a seam* —\n  that's the rewind stutter.\n- **Inside a single leg the camera is free.** One leg is one continuous render — there is\n  no seam to break mid-leg, so orbits, crane-ups, lateral tracking, even a push-in that\n  eases back out are all safe *within* the clip. Reversals are only fatal *across* seams.\n\nSo give each leg an expressive move chosen from the scene's own logic, under a **motion\nhandoff contract**: every leg **ends by settling into a slow, steady forward drift** toward\nthe next destination (final ~1 s), and every leg **begins by continuing that same drift**.\nKeep both clauses in the prompts verbatim (templates in `references\u002Fprompts.md`).\n\nPick the grammar from the concept:\n\n| Concept \u002F tone | Mid-leg move |\n|---|---|\n| Product \u002F luxury retail | slow half-orbit around the hero object, then continue past it |\n| Real estate \u002F hospitality | steadicam glide through doorways; gentle crane-up in atria |\n| Industrial \u002F process \u002F logistics | low lateral track alongside the line, foreground parallax |\n| Travel \u002F outdoors \u002F campus | drone-style rise-and-reveal, then a descending swoop |\n| Food \u002F craft \u002F detail-driven | push in close to the craft moment, ease back, carry on |\n| Playful miniature (arch. B) | dives + aerial hops — the connector IS the grammar |\n\nHonest costs: expressive mid-leg moves raise re-roll odds — the model can end a fancy move\nin a state that isn't a clean forward drift. Mitigations: keep the final-second settle\nclause verbatim; **eyeball each leg's last frame before chaining the next** (it should look\nlike a frame from a gentle forward glide — if not, re-roll before wasting the next leg);\nbudget ~1 extra re-roll per expressive leg. A plain forward glide stays the zero-risk\ndefault — use it for legs where the scene itself is the show.\n\nTwo related pacing knobs live in the engine (Step 7): per-section `scroll` (more scroll\ndistance = longer dwell in that scene) and `linger` (the camera settles mid-scene exactly\nwhile the copy peaks, then picks up speed toward the seam). Prefer expressive motion in the\n*clip* and restraint in the *scrub mapping* — they compound.\n\nAnd remember scroll is a scrubber: visitors can scroll **up**, so every move also plays in\nreverse. That's free and expected — no extra work — but it's another reason seam velocity\nmust be consistent in both directions (a seam that reads fine forward reads as a stutter\nbackward too if velocity flips).\n\n**For B**, one camera flight per scene: starts high\u002Foutside, descends into the interior,\nstructure opens. Model: the chain model you picked above (default **`seedance_2_0`**),\n`--start-image = the scene still`.\n\n- Use the **solid-background still** (not the knocked-out transparent one) as the\n  start image, so the video has a full frame.\n- Prompt: \"Single continuous cinematic camera move, no cuts. Begin high and far looking\n  at the whole \u003Cscene> from outside … descend and fly inside toward \u003Cfocal point> … the\n  roof\u002Fwalls gently open to reveal the interior. \u003Cstyle>, smooth graceful slow motion.\n  No text.\" (Template in `references\u002Fprompts.md`.)\n- Params (seedance): `--mode std --resolution 1080p --aspect_ratio 16:9 --duration 8`.\n  For Kling: drop `--resolution` (no such param), add `--sound off`, `--duration 10`.\n  Do **not** pass `--generate-audio` (it errors on seedance; audio is wasted anyway —\n  you'll mute).\n- Run concurrently, detached, then download each `.result_url`. Re-roll individual\n  failures. Keep the raw 1080p sources — you need their frames next.\n\n---\n\n## Step 5 — Connectors (architecture B only)\n\nSkip this whole step for architecture **A** — the forward take has no connectors; its legs\nalready chain seamlessly. This step applies to **B** (diorama\u002Fminiature), and note the\nreversal caveat from Step 4.\n\nThe connector clips are what make the world feel *connected* instead of cut. A connector\nflies from the end of scene i out and into the start of scene i+1. **Both of its\nendpoints must be the ACTUAL RENDERED FRAMES of the neighbouring clips — never the\noriginal diorama still.**\n\nWhy: every Higgsfield generation renders slightly differently. If a connector *ends* on\na fresh render of \"the kitchen diorama,\" but the next dive clip *starts* on its own\ndifferent render of that same diorama, the two won't match and you get a pop at the seam.\nThe fix is to hand off the exact pixels:\n\n```\nFor each connector between dive_i and dive_{i+1}:\n  start-image = the LAST frame extracted from dive_i's rendered video\n  end-image   = the FIRST frame extracted from dive_{i+1}'s rendered video\n```\n\nNow every seam is frame-identical on *both* sides:\n`dive_i.end == connector.start` and `connector.end == dive_{i+1}.start`.\n\nExtract the boundary frames from the rendered dives (not the stills):\n\n```bash\nffmpeg -sseof -0.15 -i dive_i.mp4   -frames:v 1 -q:v 2 dive_i_last.png    # interior of i\nffmpeg -ss 0      -i dive_{i+1}.mp4 -frames:v 1 -q:v 2 dive_next_first.png # establishing of i+1\n```\n\nGenerate the connector (`--duration 5` is plenty). Connectors need `--end-image`, so the\nmodel must accept it — any roster model does (`seedance_2_0`, `seedance_2_0_mini`,\n`kling3_0`):\n\n```bash\nhiggsfield generate create \"$VMODEL\" \\\n  --prompt \"$(cat connector_i.txt)\" \\\n  --start-image dive_i_last.png --end-image dive_next_first.png \\\n  $VOPTS --aspect_ratio 16:9 --duration 5 --wait --json\n# seedance: VOPTS=\"--mode std --resolution 1080p\"; kling3_0: VOPTS=\"--mode std --sound off\"\n```\n\nConnector prompt: \"Single continuous camera move, no cuts. Pull up and back out of\n\u003Cscene i>, rise into the sky, glide across the connected miniature world, and arrive\nabove \u003Cscene i+1>, beginning to descend toward it. Seamless flowing aerial transition.\n\u003Cstyle>. No text.\" (Template in `references\u002Fprompts.md`.)\n\nInsurance: Seedance lands *close* to the end-image but not always pixel-perfect, so the\nengine still applies a **short crossfade** (a few frames) at each seam. Frame-matched\nendpoints + a small crossfade = no visible cut. Never skip the actual-frame handoff and\nrely on the crossfade alone; a big content jump can't be hidden by a crossfade.\n\nWhether a handoff actually held is **machine-checkable** — don't wait for the browser\nQA to find out. After encoding, run the SSIM seam check (`references\u002Fpipeline.md` §5c):\na true actual-frame handoff scores ≥0.95 across the boundary; \u003C0.75 means an endpoint\nwas a still or the wrong frame. Run it again after every re-roll — replacing one clip\nsilently touches BOTH of its seams.\n\n---\n\n## Step 6 — Encode for smooth scrubbing\n\nScrubbing = setting `video.currentTime` from scroll. Two things matter, and they are\noften gotten wrong:\n\n1. **Seekability, not keyframe density, is what makes scrubbing work.** Many static\n   hosts (and `python -m http.server`) don't serve HTTP byte-range requests, which pins\n   `video.seekable` to `[0,0]` and clamps *every* seek to frame 0 — the video looks\n   frozen. The robust fix is to **fetch each clip as a `Blob` and play it from an\n   in-memory object URL** (blobs are always fully seekable). The engine does this.\n   Because of it, you do **not** need all-intra video.\n2. **Don't shrink quality to get smooth seeks.** Encode at the **native resolution**\n   (1080p from Seedance — don't downscale), `crf ~20`, a **small GOP** (`-g 8`) rather\n   than all-intra (all-intra bloats an 8s clip to ~25 MB; GOP 8 is ~8 MB and scrubs\n   fine via blob). Strip audio, add faststart, and a light `unsharp` counters video\n   softness:\n\n```bash\nffmpeg -i src.mp4 -an -vf \"unsharp=5:5:0.8:5:5:0.0\" \\\n  -c:v libx264 -preset slow -crf 20 -pix_fmt yuv420p \\\n  -g 8 -keyint_min 8 -sc_threshold 0 -movflags +faststart out.mp4\n```\n\nEncode all 2N-1 clips (dives + connectors) with the same settings for uniform quality.\n\n**Extract posters from the ENCODED clips** (`references\u002Fpipeline.md` §5b). The still is\na 3:2 image; the clip is a 16:9 *re-render* of it — if the still is the loading poster,\nthe first video paint visibly jumps (crop + render drift) on the very first scene a\nvisitor sees. Same doctrine as the connectors, applied to seam zero: the poster must be\nthe clip's own extracted first frame. Wire it as `sections[k].poster` (Step 7); keep the\nstill as the reduced-motion artwork.\n\nThen run the **automated seam check** (`references\u002Fpipeline.md` §5c) before touching a\nbrowser — every seam SSIM ≥0.90 or you have a redo, not a QA note.\n\n**Mobile encodes (only if the user picked a tier beyond crop-safe at Step 1.6).** Phone\nvideo decoders seek far slower than a laptop's, and seek cost scales with GOP length, so\nthe 1080p `-g 8` master that scrubs smoothly on desktop can stutter on a phone. Produce a\nlighter `-m.mp4` sibling for every clip — **720p, `-g 4`** (more keyframes = cheaper\nseeks; keyframe-every-4-to-10 is the industry recipe for scrub-smooth mobile video), crf\n23 — and wire them as `clipMobile` \u002F `connectorsMobile` (Step 7). Extract each mobile\nencode's first frame as its `posterMobile` (same doctrine as §5b — the poster must match\nthe encode the device actually gets). The engine serves mobile files on phone-class\ndevices only (screen short side ≤600 CSS px — tablets and iPads get the master) and\nfalls back to the desktop clip when absent. Scripts in `references\u002Fpipeline.md` §6; for\nthe hero-reframe \u002F portrait-chain tiers see §7. If the user chose crop-safe, skip this —\nthe engine still hardens phone scrubbing regardless (seek-coalescing, iOS priming, Low\nPower Mode stills fallback), so the page degrades gracefully rather than breaking.\n\n---\n\n## Step 7 — Assemble the page\n\nCopy `references\u002Fscrub-engine.js` (and, if you want a fully standalone page, the tiny\n`references\u002Findex-template.html`) into the user's project — or adapt into their\nframework. It's config-driven and self-contained:\n\n```js\nmountScrollWorld(document.getElementById('world'), {\n  brand: { name: 'Pearl & Co.' },\n  diveScroll: 1.3, connScroll: 0.9,          \u002F\u002F viewport-heights of scroll per clip\n  sections: [\n    { id:'farm', label:'The Farms', still:'assets\u002Ffarm.webp',\n      poster:'assets\u002Ffarm-poster.webp',          \u002F\u002F encoded clip's extracted first frame (Step 6)\n      clip:'assets\u002Fvid\u002Ffarm.mp4', clipMobile:'assets\u002Fvid\u002Ffarm-m.mp4',   \u002F\u002F mobile beta only\n      scroll: 1.6, linger: 0.45,   \u002F\u002F optional pacing: longer dwell + camera settles mid-scene\n      accent:'#8FB98A', eyebrow:'From leaf to last sip', title:'It starts in the hills.',\n      body:'…', tags:['Single-origin','Hand-picked'] },\n    \u002F\u002F …one per section; last may carry a `cta`\n  ],\n  connectors:       ['assets\u002Fvid\u002Fconn1.mp4','assets\u002Fvid\u002Fconn2.mp4',   \u002F* … length = sections-1 *\u002F],\n  connectorsMobile: ['assets\u002Fvid\u002Fconn1-m.mp4','assets\u002Fvid\u002Fconn2-m.mp4' \u002F* … same length; mobile beta only *\u002F],\n});\n```\n\nThe engine handles: the ordered dive\u002Fconnector chain, scroll→currentTime with rAF\nsmoothing, blob loading, lazy prefetch of nearby clips, frame-matched crossfades, pinned\nper-section copy (first section greets on landing, last holds its CTA), a route rail,\n`prefers-reduced-motion`, and mobile. **Pacing per section:** `scroll` overrides\n`diveScroll` for that scene (more scroll = longer dwell) and `linger` (0–1, keep ≤ 0.6)\nremaps time so the camera settles mid-scene — exactly while the copy peaks — then speeds\nup toward the seam; seam frames are untouched (f(0)=0, f(1)=1). Give the hero and finale\nscenes a higher `scroll` + some `linger`; keep transit scenes brisk. Theme it with CSS variables (`--accent`,\n`--sw-bg`, `--sw-ink`, …) — the visual identity comes from the generated clips, so the\nchrome stays quiet. See the header of `scrub-engine.js` for the full config + CSS vars.\n\n**On phones the engine adapts automatically, along two separate axes.** *Clip tier*\n(which file) is decided by device class — screen short side ≤600 CSS px = phone →\n`clipMobile`\u002F`posterMobile`; tablets (iPad Pro included — coarse pointer but\ndesktop-class screen and decoder) and desktops get the master. *Behaviour hardening*\n(how it acts) keys off coarse pointer \u002F ≤860px viewport: **coalesced seeks** (never\nqueues a new `currentTime` mid-seek — what stops a fast flick freezing the clip),\nposter held until the clip paints, **video priming on first touch** (iOS\nblank-until-played fix), a longer scroll run per scene (`scrollMobileFactor`, default\n1.2 — small viewports read the same flight as faster), dropped particles, URL-bar-safe\nresizes, safe-area insets. **Automatic stills fallback:** `prefers-reduced-motion`,\nChromium data-saver, and iOS **Low Power Mode** (detected at runtime — a rejected muted\n`play()` on first touch) all flip the page to stills-with-crossfades instead of frozen\nvideo. On 2g\u002F3g (Chromium signal) the clip prefetch window shrinks. All of this is on\nby default — no config. The `clipMobile`\u002F`connectorsMobile`\u002F`posterMobile` encodes are\nthe opt-in tiers from Step 1.6: wire them only when the user picked one.\n\n**SEO copy is not optional — this is a landing page.** The engine renders all copy\nclient-side, so on its own the page has zero crawlable text. Always put a plain-markup\nmirror of the copy (h1 = hero line, one h2 + p per scene, real CTA links) inside the\ncontainer in a `data-sw-seo` block — the engine hides it on mount, crawlers\u002Flink\npreviews\u002Fno-JS visitors read it from the served HTML. `references\u002Findex-template.html`\nships the block; when adapting into a framework, server-render it.\n\nFor non-JS backends (Python\u002FRails\u002Fetc.): serve the assets and drop the engine `\u003Cscript>`\ninto the rendered HTML; nothing about it is framework-specific.\n\n---\n\n## Step 8 — QA the seams (don't skip)\n\n**First, the machine check:** the SSIM seam gate (`references\u002Fpipeline.md` §5c) must\nalready be green — every seam ≥0.90 (0.75–0.90 only where you've eyeballed the\ncrossfade and accepted it). If you skipped it, run it now; browser QA below verifies\nthe *page*, the SSIM gate verifies the *assets*, and a red asset can't be QA'd into a\ngreen page.\n\nThen drive the page in a headless browser and **verify frame continuity at the seams**\nend-to-end:\n\n- Screenshot at scroll positions just before and just after each seam. The two frames\n  must be near-identical (the dive's last frame == the connector's first frame). If they\n  pop, you used the diorama still instead of the actual rendered frame (redo Step 5), or\n  the crossfade band is too short.\n- Confirm the first paint is clean: the poster (extracted frame) shows instantly, and\n  the poster→video takeover does not shift the image (if it does, `poster` is missing\n  or points at the still — Step 6).\n- Check the console for errors, confirm `video.seekable.end(0) > 0` (blob working), and\n  that `currentTime` tracks scroll across each clip's band.\n- **Stills-mode fallbacks (every build, cheap to check):**\n  - Data-saver: emulate `navigator.connection.saveData = true` (DevTools override or an\n    init script) — page must render as stills-with-crossfades, zero clip fetches in the\n    Network panel.\n  - Low Power Mode: hardest to emulate — on a real iPhone, enable it and confirm the\n    page falls back to stills on first touch instead of frozen video. Emulated proxy:\n    stub `HTMLMediaElement.play` to return a rejected promise, tap, confirm stills mode.\n  - Tablet tier: iPad viewport (834×1194, touch) must fetch the **desktop** clip\n    (Network panel), not the `-m.mp4` — while still getting touch behaviour.\n- **Mobile — full checklist only if the user picked a mobile tier (Step 1.6).**\n  For a crop-safe build, just sanity-check a phone viewport once: page loads, still\n  posters show, nothing overlaps — the engine's hardening covers graceful degradation.\n  For the mobile tiers (do this on a real phone or an emulated one, portrait + landscape):\n  - Emulate a phone viewport **with CPU throttled 4–6×** and scroll fast — the clip should\n    track without freezing (the seek-coalescing + `-m.mp4` encodes are what make this hold).\n  - Confirm the first scene shows immediately (its still is the poster) and the video takes\n    over the instant you scroll — no blank\u002Fblack scene (the iOS priming fix). Test iOS Safari\n    specifically; it's the one that goes blank if this regresses.\n  - Verify the `-m.mp4` variant is actually served on mobile (Network panel), and the\n    heavy 1080p master on desktop.\n  - Slowly scroll so the URL bar collapses — the page must **not jump** (height-only resizes\n    are ignored on touch). Rotate the device — layout should recompose cleanly.\n  - Portrait crops a 16:9 clip to its centre; confirm the focal subject still reads. If a\n    hero scene's subject sits off-centre and gets cut, recompose it (prompts.md) or generate\n    a 9:16 variant for that scene.\n- Check reduced-motion (should fall back to the stills, no video, no particles).\n\n---\n\n## Gotchas — top 5 inline; full list in `references\u002Fgotchas.md`\n\nRead `references\u002Fgotchas.md` the moment any generation fails or any QA check reads\nwrong — it maps symptom → cause → fix for every failure seen in production (encode,\ntheming, phone, iOS, Kling flags, portrait crops, and more). The five that block runs\nmost often:\n\n- **Seam pop** → connector endpoints were the diorama stills, not the neighbouring\n  clips' actual frames. Always extract real frames (Step 5); the SSIM gate (pipeline\n  §5c) catches this before a browser ever opens.\n- **Seam stutter \u002F camera \"jumps backward\"** → camera *velocity reverses* across a seam\n  (inherent to architecture B's pull-outs). Grounded walkthroughs must use\n  architecture A (Step 4).\n- **NSFW false-positives (Seedance `status \"nsfw\"`)** → flags innocuous interiors\n  (bedroom\u002Fpool\u002Fspa; words like \"bed\", \"wine\", \"swim\"). In order: re-roll (often passes\n  2nd–3rd try) → strip trigger words + add \"empty, unoccupied, no people, architectural\"\n  → regenerate that one clip on `kling3_0` with the same start\u002Fend frames → set the\n  connector slot to `null` (engine crossfades that seam directly). Budget re-rolls on\n  interiors.\n- **Frozen video \u002F stuck at frame 0** → host doesn't serve byte ranges, `seekable=[0,0]`.\n  Blob URLs fix it (engine does this).\n- **Concurrent gens 503 \u002F \"not_enough_credits\" race** → transient under parallel launch;\n  re-roll the individual failure (verify credits with `higgsfield workspace list`).\n\n## References\n\n- `references\u002Fprompts.md` — the intake checklist, style-preamble pattern, and every\n  prompt template (scene still, dive, connector) with fill-in slots.\n- `references\u002Fpipeline.md` — copy-paste batch scripts for the whole run (anchor-gated\n  stills → previz → dives → frames → connectors → encode → posters → SSIM seam gate →\n  mobile encode), idempotent + bash-3.2-safe.\n- `references\u002Fscrub-engine.js` — the portable, config-driven scrub engine (builds DOM +\n  injects CSS; blob-seek, lazy load, seam crossfade, extracted-frame posters, hidden\n  `data-sw-seo` static-copy block, copy, route rail, reduced-motion, and phone hardening:\n  mobile encodes, seek-coalescing, iOS priming, safe-area, no-jump resize).\n- `references\u002Findex-template.html` — a minimal standalone page that mounts the engine,\n  including the crawlable `data-sw-seo` copy block.\n- `references\u002Fknockout.py` — border-connected background knockout for floating scenes.\n- `references\u002Fgotchas.md` — the full symptom → cause → fix list, plus the canvas\n  frame-sequence alternative for when video scrubbing isn't smooth enough.\n",{"name":5,"description":49,"allowed-tools":50},"Build an immersive scroll-scrubbed \"fly through the world\" landing page for any industry or brand using Higgsfield. As the visitor scrolls, a pre-rendered camera flies from outside each scene into its interior, then flows on to the next scene with NO cuts — one continuous connected flight (Emons-style isometric diorama world, or any art direction you pick). The skill interviews the user for the topic, the story beats\u002Fsections, and brand kit, then generates cohesive scenes + seamless camera clips with Higgsfield and wires a portable, framework-agnostic scroll-scrub engine. Use when the user wants a \"3D world\" \u002F \"browse-through-the-industry\" hero, a scroll cinematic, a diorama landing, or to turn a business into a scrollable world.\n","Bash, Read, Write, Edit, AskUserQuestion, Skill","main","31458d7e0e08a7b3494c27bf2b912ed41c87a138","fittings\u002Fseed\u002Fscroll-world\u002F.apm\u002Fskills\u002Fscroll-world",0,"https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison","https:\u002F\u002Fgongiskhan.github.io\u002Fagent-garrison\u002F","https:\u002F\u002Fgithub.com\u002Fgongiskhan","2026-11-07 05:27:23",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add gongiskhan\u002Fagent-garrison --skill scroll-world",{"tool":65,"command":66},"bunx","bunx skills add gongiskhan\u002Fagent-garrison --skill scroll-world",{"tool":68,"command":69},"pnpm","pnpm dlx skills add gongiskhan\u002Fagent-garrison --skill scroll-world","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fscroll-world\u002F.apm\u002Fskills\u002Fscroll-world\u002FSKILL.md",true,[73,77,83,87,93,97,101],{"path":74,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":15},"LICENSE","许可证",1060,{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fgotchas.md","REFERENCE","参考文档",7633,"https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fscroll-world\u002F.apm\u002Fskills\u002Fscroll-world\u002Freferences\u002Fgotchas.md",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Findex-template.html",3754,"https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fscroll-world\u002F.apm\u002Fskills\u002Fscroll-world\u002Freferences\u002Findex-template.html",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fknockout.py","SCRIPT","脚本",2855,"https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fscroll-world\u002F.apm\u002Fskills\u002Fscroll-world\u002Freferences\u002Fknockout.py",{"path":94,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fpipeline.md",15697,"https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fscroll-world\u002F.apm\u002Fskills\u002Fscroll-world\u002Freferences\u002Fpipeline.md",{"path":98,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fprompts.md",8876,"https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fscroll-world\u002F.apm\u002Fskills\u002Fscroll-world\u002Freferences\u002Fprompts.md",{"path":102,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fscrub-engine.js",33459,"https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fscroll-world\u002F.apm\u002Fskills\u002Fscroll-world\u002Freferences\u002Fscrub-engine.js",[106,118,128,139,151,178],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":44},"01M71RTFA0HD83YBE1TE7DCE6B","pinned-helper","An owned skill the human has pinned so the Improver must not touch it.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fpinned-helper\u002FSKILL.md",[],[113,114,115,116,117],"pinned helper","helper","human","touch","it",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":44},"01M71RTDKBG0WQHPHKFZKFWDHF","legacy-helper","A rarely used helper kept around from an earlier workflow.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Flegacy-helper\u002FSKILL.md",[],[125,114,126,127],"Legacy","legacy helper","workflow",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":44},"01M71RTCC6ZVVJ9MHHESXPHWA6","human-notes","A human-authored skill not deployed by APM (loose, not in the lock).","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fhuman-notes\u002FSKILL.md",[],[135,115,136,137,138],"notes","human notes","lock","apm",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":44},"01M71RTB83ZP6VK6XH19Z93FAC","garrison-helper","Helps compose and station Garrison Fittings into Faculty role slots.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fgarrison-helper\u002FSKILL.md",[],[114,146,147,148,149,150],"garrison","garrison helper","slots","role","compose",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":160,"publishedAt":44},"01M71RT6MBGJC4QQZBGHF4H1M8","walkthrough","Record a short, narrated, captioned video walkthrough that proves a finished coding task and shows how it behaves, then self-verify the video via vision on extracted frames and publish it as one scrubbable Tailscale link. Use after completing a change\u002Ffix\u002Ffeature on a web project (Next.js\u002FReact etc.) when the user wants visual proof of work, a demo of a user flow, or to avoid manually retesting and watching a long raw screen recording. Triggers on requests like \"record a walkthrough\", \"show me it working\", \"make a demo video of this\", \"prove the feature\", or finishing a UI\u002Froute\u002Fform\u002FAPI change worth demonstrating. Not for walking through a full from-scratch project build.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fwalkthrough\u002F.apm\u002Fskills\u002Fwalkthrough\u002FSKILL.md",[157],{"categoryNo":158,"categoryName":159,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体",[153,27,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,36,177],"project","project build","api","react","change","demo video","publish","recording","Video","show me","work","short","fix","show","route","me","self",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":44},"01M71RT54T0SQS42XEP5FVQ28K","Trello","Manage tasks via Trello REST API.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Ftrello\u002F.apm\u002Fskills\u002Ftrello\u002FSKILL.md",[],[185,186,187,163,188,189,190],"trello","tasks","REST","manage","rest api","via"]