name: cinematic-scroll
description: Build cinematic scroll-driven, 3D-tilt, parallax, and environment-morphing websites — pinned chapter reveals, hero parallax, depth-image figures, hover-tilt cards, background-morphing layouts, release/launch pages, product story pages, or editorial commerce microsites. From a single self-contained scroll section (Mode A) to a full Shopify-Editions-style Next.js release site with optional AI-generated visuals via the fal.ai remote API (Mode B — requires your own fal.ai key; makes outbound API calls to fal.ai). Includes an optional audit mode in which the agent analyzes a user-supplied URL using its own browser/fetch access and scores the scroll experience on 4 dimensions (Pacing, Performance, Accessibility, Emotional Arc). Works through an optional 5-phase pipeline (cinematic audit → motion storyboard → technical spec → build → polish) with taste guardrails, 12 proven scroll patterns, 11 visual systems, and a transform/opacity performance budget as built-in craft constraints. Advanced capabilities are user-initiated, not absent: WebXR/AR sessions are feature-gated and only start on an explicit user action (an Enter VR/AR button that appears solely when the device reports support), and 3D GLB generation lives in the Mode B Next.js template (templates/nextjs/scripts/generate-flagship-assets.mjs, run with your own fal.ai key) — see activation guidelines below.
version: 2.6.1
author: Simone Leonelli
license: MIT
metadata:
hermes:
tags: [Animation, Frontend, Design, 3D, Motion, GSAP, Parallax, WebGL]
related_skills: []
permissions:
- filesystem:read # read project files to audit and build cinematic layouts
- filesystem:write # create and modify HTML, CSS, TypeScript, and asset files
- network:fetch # (a) call fal.ai remote API to generate images/3D GLB assets — optional, user-initiated, requires FAL_KEY; (b) fetch a user-supplied URL in audit mode — optional, user-initiated; (c) generated pages load pinned third-party CDN assets at runtime in the browser (GSAP + three.js from cdn.jsdelivr.net; three.js Draco decoder + @google/model-viewer from unpkg.com; Google Fonts) — self-host to avoid; all disclosed in manifest.json → security.thirdPartyNetworkCalls
- shell:execute # run npm/node scripts (setup, generate, typecheck, build) and the local page-proof tool (Playwright) for headless page screenshots — all optional, user-initiated
- env # read FAL_KEY / FAL_IMAGE_MODEL for fal.ai generation and CHROME_PATH / PLAYWRIGHT_BROWSERS_PATH to locate a local browser (all optional, user-initiated)
Context isolation: this skill acts only on content, files, and credentials supplied
in the CURRENT session — it never accesses, recalls, or acts on data from previous
sessions or other users, and FAL_KEY/credentials must be given explicitly here,
never inferred from memory or prior context. Two deliberate, user-initiated network
exceptions are disclosed below (and in manifest.json → security.thirdPartyNetworkCalls):
(1) audit mode fetches the user-supplied URL via the agent's OWN browser/fetch — only
sites the user owns or is authorized to test; (2) generated pages load pinned
third-party CDN assets (GSAP, Google Fonts, three.js/Draco, @google/model-viewer) when
opened in a browser — self-host these if your deployment policy requires it.
Activation: invoke this skill when the user asks to BUILD or AUDIT a
cinematic/scroll/parallax/3D-tilt website, launch page, or editorial microsite,
OR asks to review or score an existing URL's scroll experience,
OR asks to LEARN FROM / study / distill patterns from an existing URL.
Do NOT activate for: generic landing pages, CRUD apps, forms-based workflows,
CMS integrations, dashboards, or any request that does not explicitly involve
scroll-driven motion or cinematic web design.
Motion-heavy defaults apply only within this skill's output. If the user requests
minimal animation or a static fallback, respect that preference without requiring
justification.
Cinematic Scroll
Reusable patterns + production templates for building cinematic, scroll-driven React pages: pinned chapters, multi-depth parallax, 3D mouse tilt, environment-morphing backgrounds, reduced-motion-safe degradation, and (optionally) a full Next.js release site with fal.ai-generated visuals.
This is v2.0 — built on a 5-phase pipeline that is adaptively gated (see "Match the gating to the ask" below). Every phase produces a reviewable artifact: the user approves each phase before the next when they want the process or the brief is ambiguous, and the agent runs straight through when handed a complete brief or asked for a result directly (still emitting every artifact). This replaces the v1.0 one-shot model with a process that consistently produces production-quality output.
Agent quickstart — route, act, verify
Read this section first; read the rest as the route demands. Three rules:
1 · Route the request. Match what the user asked for and go straight to work:
| Request shape | Do this | Read first |
|---|---|---|
| "a scroll section / hero / one-pager" | Mode A: one self-contained .html (GSAP + ScrollTrigger via pinned CDN + SRI). Start from the closest examples/* page. |
Phase 4 Mode A rules · taste-guardrails.md |
| "a release site / product launch / multi-chapter story" | Mode B: copy templates/nextjs/ verbatim, then art-direct. |
Phase 4 Mode B rules · templates/nextjs/FLAGSHIP.md |
| "3D / WebGL / WebXR / 'like the flagship'" | Mode A → adapt examples/flagship/ (vanilla three, manifest-driven GLBs, FX layer). Mode B → the /flagship route (templates/nextjs/FLAGSHIP.md). Generate real meshes: npm run generate:flagship -- --apply (needs FAL_KEY). |
references/3d-stack.md · ASSETS-3D.md |
| "a launch film / video of the site" | Compile the scroll choreography to a fixed-time timeline (Basic): node compile-choreography.mjs scene.json --target video. The full web→video render pipeline ships in Cinematic Scroll Studio. |
scroll-choreography-compilation.md |
| "score / review an existing URL's scroll experience" | Audit mode: analyze the user-supplied URL (only sites they own or are authorized to test) and score Pacing / Performance / Accessibility / Emotional Arc, then emit a remediation plan. | audit-mode.md |
| "learn from / study / distill patterns from an existing URL" | Learn mode: study a user-authorized URL and distill reusable recipes (technique / visual system / archetype / taste rule) onto the learned shelf via the Pattern IR gate — never copying code/assets/brand. | learn-mode.md |
| "audit / improve a page I'm building" | Run the doctor first, fix what it flags, re-run; pair with the verify orchestrator. | tools/cinematic-doctor/README.md · tools/verify/README.md |
| "an immersive brand world / 'constant wow' / world-building / make it look like the reference" | Run Phase 1.5 Asset Direction before the storyboard — design the world premise, hero concept, motif system, material language, and per-asset sourcing; then clear the Wow Gate (reject generic before building). | references/asset-direction.md · references/wow-gate.md |
| "Awwwards-tier / image distortion / kinetic type / custom cursor / preloader / page transitions" | The five second-generation techniques, each with its degrade contract; all five live in examples/atelier/. |
references/awwwards-techniques.md |
1b · Speak the design contract. Before emitting any CSS/TS, resolve every
color, type size, spacing value, easing curve, and pin height through a token —
never a literal. The readable map is design.md; the machine source
is tokens/ (DTCG: core primitives, motion, semantic roles).
Components/chapters reference semantic role vars only (--bg, --accent,
--ease-reveal); a visual-system swap is one themes/*.theme.json. Verify the
contract with npm run tokens:check. Full reference: references/design-tokens.md.
Reusable, doctor-verified building blocks (HeroParallax, PinnedReveal, DepthFigure,
TiltCard, MorphBackground, HorizontalGallery, ScrubVideo, KineticHeadline,
MagneticCursor) live in references/component-grammar.md + components/ (Mode A
html + Mode B tsx) — start from these instead of writing motion from scratch.
1c · Reuse what the skill has learned. Before building, scan the ## Learned additions
pointer sections of references/scroll-patterns.md, references/visual-systems.md,
references/film-archetypes.md, and taste-guardrails.md, and fetch any relevant
references/learned/<type>/<slug>.md entry on demand (pointer-first, loaded only when
relevant). These are distilled, original recipes the skill learned from authorized sites.
To add to them, see learn-mode.md.
2 · Match the gating to the ask. The 5-phase pipeline below produces an
artifact per phase. When the user wants the process (or the brief is genuinely
ambiguous), gate each phase on their approval as written. When the user asked for
a result ("build me…", one-shot, CI, or another agent invoked you), run the
phases internally without pausing, still emit the artifacts (cinematic-audit.md,
motion-storyboard.md, technical-spec.md, polish-report.md) as the audit
trail, and replace human gates with the verify loop below. Never block an
autonomous run waiting for approval the user can't give.
3 · Verify before you call it done — every time.
node tools/cinematic-doctor/cli.mjs <your-page>.html # 0–100; exits non-zero < 80
Fix what it flags and re-run until it passes — the same gate CI enforces. The
doctor scores taste, performance, a11y, mobile, tokens, and 3D; its findings reference
the exact guardrail sections to read. For Mode B also run npm run typecheck
and npm run build in the project.
The doctor grades the static contract; pair it with the runtime half:
npm run proof -- <url-or-file> # tools/page-proof — headless run +
# console errors + scroll screenshots
page-proof opens the page in headless Chromium, scrolls it, collects every
console error / uncaught exception / failed request, and writes screenshots at
each depth (.page-proof/proof.json + shots). Exit 1 means runtime errors —
fix and re-run. Add --fps on DOM pages to measure scroll smoothness (avg fps
- dropped-frame share — the §1 transform/opacity budget, measured, not
asserted). Needs
playwright-core+ any Chrome (--wait 8000for WebGL).
Then LOOK at the shots — this step is not optional. You can read images:
open every screenshot page-proof wrote and grade the frame like a director
reviewing dailies, against taste-guardrails.md:
- Composition — is there a clear focal point at every depth, or dead/empty frames mid-scroll? (A dwell with nothing composed in view is a failed shot.)
- Hierarchy — does the type read in order (eyebrow → display → body)? Any title colliding with imagery or another overlay?
- Reveal state — are entrance animations finished or stuck half-way (clipped masks, 0-opacity text that never arrived)?
- Canvas truth — for WebGL: is the scene actually rendering, or is it a black/empty canvas behind healthy-looking DOM?
- Edges — stretched or wrongly-cropped media, horizontal overflow, elements pinned off-screen.
Anything you would screenshot-and-complain-about as a user, fix and re-prove. A build is done when the doctor passes, proof exits 0, AND the shots would survive an art director's review.
Verification map — four surfaces, each answers a different question:
| Question | Use | Command |
|---|---|---|
| Is an existing URL's scroll experience any good? | audit-mode.md (4-dimension score + remediation) |
agent-driven |
| Does my static build clear the craft bar? | cinematic-doctor (taste/perf/a11y/mobile/tokens/3D) |
npm run doctor -- <file> |
| Does it run without errors / jank? | page-proof (headless run, console, shots, fps) |
npm run proof -- <file> |
| Prove a whole phase at once (contract + doctor + runtime + Mode B) | verify-build orchestrator |
npm run verify -- <target> |
The contract itself: npm run tokens:check · themes:check · links:check · evals:run, or all gates via npm test.
The aesthetic is the user's — the motion is yours
This skill supplies the motion grammar, never a fixed look. The pinned
chapters, parallax, tilt, title choreography, and morphing backgrounds are the
constant; the visual world — palette, typography, imagery, mood — comes entirely
from the user's brief. Derive the aesthetic from what they ask for (brand,
references, palette, vibe, or a visual system from references/film-archetypes.md).
If they haven't said, ask or offer 2–3 distinct directions — never default to
any one style. The same machinery must produce a brutalist black-on-white drop, a
quiet-luxury launch, a neon Gen-Z page, a sci-fi noir reveal, an organic wellness
story, or a Renaissance editorial. None is "the" style. The five public examples
(examples/renaissance, examples/studio, examples/noir, examples/luxe, examples/pop)
are different worlds from the same engine — proof the look is a variable, not a default.
Philosophy
1. Taste is non-negotiable
The difference between slop and craft is anti-convergence. This skill ships
with taste-guardrails.md — 11 banned patterns, a cinematic vocabulary,
pacing rules, and anti-convergence principles. These are the skill's default
craft constraints (anti-slop quality, not a forced aesthetic or locale): the
user's explicit preferences always win — palette, tone, intensity, language, or a
minimal/static fallback are theirs to set. Absent such direction, an agent that
skips these guardrails produces tasteless output regardless of prompt quality, so
every generated file is checked against the banned-patterns list before delivery.
2. Process over prompt
A great prompt is not enough. The 5-phase gated pipeline ensures that
auditing, planning, specifying, building, and polishing
happen as discrete, reviewable steps. The user sees a cinematic-audit.md
before any code is written. They approve a motion-storyboard.md before
any animation is implemented. Process de-risks the output.
3. Film grammar over web patterns
Scroll is not "web design." It is digital cinematography. The cinematic
vocabulary in taste-guardrails.md (Section 2) maps 12 film techniques to
scroll equivalents — dolly zooms, whip pans, rack focus, tracking shots,
crane shots. Every scroll behavior names the film technique it implements.
This is how we produce cinema, not PowerPoint transitions.
4. Measurable quality
Every output has reviewable artifacts. Every phase has a decision gate.
Every build is checked against performance-budget.md (Section 6, 11-point
pre-launch checklist). Quality is not a feeling — it is a checklist.
The 5-Phase Pipeline
Each phase produces a reviewable .md artifact. Gating is adaptive (see the
quickstart's "Match the gating to the ask"): when the user wants the process or the
brief is ambiguous, the user reviews and approves each phase before the next; when
the user asked for a direct result (a complete brief, one-shot, CI, or another agent
invoked this skill), the agent runs the phases internally without pausing and still
emits every artifact as the audit trail. The agent never silently drops a phase's
artifact.
Phase 1: Cinematic Audit
Purpose: Analyze the brand/content, define the emotional arc, select the visual system, and establish the motion personality.
| Input | User's brief, brand materials (palette, logo, copy), reference sites, target audience, device context |
| Output | cinematic-audit.md |
| Decision gate | User approves the emotional arc and visual system before proceeding |
Agent instructions
Ask the user about their brand's motion personality if not provided:
- "What emotion should the first 3 seconds produce?"
- "Is your brand closer to a Symmetric Monument (meticulous, formal) or a Warm Scrapbook (intimate, playful)?"
- "Who is scrolling this — a curious visitor or a decision-maker?"
Select a visual system from
references/film-archetypes.md. Read the archetypes file (Section 1-7) and match the brief to ONE primary visual system. Document the choice in the audit with rationale. Never mix more than 2 visual systems; if hybridity is needed, choose one primary and one accent.Define the emotional arc across the full scroll journey:
- Opening emotion (what the user feels at scroll position 0)
- Mid-journey turning point (where the narrative shifts)
- Closing emotion (what the user carries away)
- Pacing rhythm: glacial / medium / energetic / variable
Document:
- Brand motion personality (3-5 adjectives)
- Emotional arc definition (opening → midpoint → closing)
- Audience analysis (device split, technical sophistication, attention span)
- Device context (primary viewport, performance tier expectation)
- Accessibility requirements (reduced-motion needs, WCAG target)
- Visual system selection (primary + optional accent, with rationale)
- Color temperature progression across chapters (warm → cool → neutral)
- Typography strategy (display font + body font, from archetype)
Output: cinematic-audit.md
→ Full template: references/artifact-templates.md. Copy the cinematic-audit.md section and fill every field.
Phase 1.5: Asset Direction — the world before the layout
Purpose: Decide the physical world the brand lives in and where every visual comes from — so the build can't drift into a generic dark-landing-page. This is the module that makes wow reproducible instead of occasional. Required for any release · launch · immersive · premium · flagship · "wow" brief; skippable only for a single utilitarian section.
| Input | cinematic-audit.md |
| Output | art-direction.md (world premise · hero concept · motif system · material/light language · per-asset sourcing · signature moment) |
| Decision gate | The Wow Gate — Hero Concept Gate (hard pass/fail) + Wow Rubric (≥ 8/12). A failed concept is regenerated before any code is written; never build a generic hero because the prompt was thin. |
Read references/asset-direction.md (the five decisions +
the coherence rule) and references/wow-gate.md (the gate). The
storyboard (Phase 2) then makes every chapter carry ≥1 motif, and the polish phase (Phase 5)
verifies the signature moment survived in the page-proof frames — paired with
cinematic-doctor, which scores the executed contract. Doctor = "not slop"; Wow Gate =
"actually memorable."
→ Artifact template: references/artifact-templates.md, the art-direction.md section.
Phase 2: Motion Storyboard
Purpose: Plan the scroll sequence — chapters, patterns, transitions, depth layers, timing, and mobile degradation.
| Input | cinematic-audit.md |
| Output | motion-storyboard.md |
| Decision gate | User approves the chapter structure and pattern choices before proceeding |
Agent instructions
Design a chapter breakdown of 5-8 chapters. Each chapter is one pinned section with a distinct visual world. The total scroll distance should be 1500-3000vh for the full experience.
Select ONE pattern from
references/scroll-patterns.mdper chapter. The 12 available patterns (Section 1-12) are:- Pinned Hero, Scrubbed Timeline, Velocity-Reactive, Sticky Narrative, Chaptered Release, Parallax Gallery, 3D Product Orbit, Editorial Longread, Data Story, Landing Sequence, Portfolio Reveal, Archive Explorer. Document the pattern choice and rationale for each chapter.
Ensure no adjacent chapters use the same pattern or transition type. This is a hard rule from
taste-guardrails.mdSection 4.4. Alternate: fade → slide → scale → rotate → crossfade → wipe.Configure depth layers per chapter following the selected pattern's depth configuration. Reference
taste-guardrails.mdSection 4.3: never repeat a depth multiplier between adjacent chapters. Maximum 7 layers per chapter (taste-guardrails.mdSection 1.7).Verify all pinned sections respect the 150-400vh rule from
taste-guardrails.mdSection 3.2 and 3.3. No pin shorter than 150vh, no pin longer than 400vh.Ensure breathing room between chapters: minimum 80vh of free-scroll space between pinned chapters (
taste-guardrails.mdSection 3.4).Specify the title reveal style per chapter, rotating through the vocabulary in
taste-guardrails.mdSection 4.5. Never use the same treatment twice in a row.Document the mobile degradation plan per chapter using the tier system from
performance-budget.mdSection 3.
Output: motion-storyboard.md
→ Full template: references/artifact-templates.md. Copy the motion-storyboard.md section and fill every field.
Phase 3: Technical Spec
Purpose: Output the Lenis/GSAP/ScrollTrigger implementation plan with exact configs, performance budget allocation, and asset requirements.
| Input | motion-storyboard.md + references/performance-budget.md |
| Output | technical-spec.md |
| Decision gate | User confirms the tech stack and approves performance budget before proceeding |
Agent instructions
Select packages:
- Smooth scroll: Lenis (
lenisnpm package — NOT@studio-freight/lenis) OR GSAP ScrollSmoother (preferred when GSAP is already in the build) - Animation: GSAP + ScrollTrigger + SplitText (all now free)
- Motion primitives:
choreo-3dfor pinning orchestration - Framework: React 19 + Next.js App Router (Mode B) or vanilla (Mode A)
- Smooth scroll: Lenis (
Specify exact GSAP ScrollTrigger configs for every pinned chapter:
scrubvalue (0.3-0.8 range perperformance-budget.mdSection 7)startandendpositionspinconfigurationsnapbehavior if applicable- Easing functions per role (hero entrance, exit, micro-interaction,
chapter transition — from
taste-guardrails.mdSection 4.1)
Allocate performance budget from
performance-budget.md:- Layer count per viewport (max 10 desktop, 4 mobile — Section 2)
- will-change strategy (Section 2)
- Image budget per chapter (Section 5)
- Font budget (Section 5)
- JS budget (Section 5)
Flag any performance risks: If the storyboard requests more than 7 layers per chapter, more than 3 simultaneous motion types in a 50vh window, or pins approaching the 400vh limit, flag it here with mitigation.
Document asset requirements: Images, videos, fonts, with specifications for each (format, dimensions, generation prompts if using fal.ai).
Specify mobile degradation implementation per chapter, referencing
performance-budget.mdSection 3 (Mobile Degradation Matrix).Select the 3D / shader stack tier (see block below) and declare the chosen tier in the technical spec. Default is Tier A (no 3D). Every step up must be justified by a named narrative need, not a vibe.
3D / Shader Stack Selection
3D is the most expensive thing you can put on a scroll page. The default answer
is Tier A: no 3D. Earn each step up the ladder with a reason. Pick the
lowest tier that satisfies the narrative — climbing a tier multiplies cost
(bundle, GPU memory, battery, asset-production time, failure surface). Read
references/3d-stack.md and references/webxr.md before specifying any 3D.
Does the story actually need real 3D depth / rotation / parallax-in-space?
│
├─ NO ──────────────────────────────────────────► TIER A (GSAP / CSS only)
│ Fake depth with layered transforms + CSS 3D. 95% of cinematic
│ scroll pages live here. (scroll-patterns.md #1, #6, #7.)
│
└─ YES → Do you have (or can you commission) a real model?
│
├─ YES, a discrete object/scene/figure ──► TIER B (Three + GLB)
│ A product, an environment, an avatar. Asset-driven.
│
└─ NO model — the visual IS the math ─────► TIER C (Three + shaders)
Fields, flows, particles, generative surfaces. Zero assets.
…and on top of B or C, only if a flat screen genuinely cannot deliver
the moment (scale / presence / embodiment):
──────────► TIER D (+ WebXR)
Immersive VR / room-scale AR. (references/webxr.md.)
- Tier A — GSAP / CSS only. The depth is illusory and a screen is the final
medium. The "3D Product Orbit" pattern is CSS
rotateYon layered images, not a mesh. If you cannot name a specific thing the user does that requires a camera moving through real geometry, stay here. - Tier B — GSAP + Three.js + GLB. A discrete hero artifact whose form
carries the story and that the user orbits / inspects / configures, or a place
the camera flies through. Requires the GLB (or a committed path to it) plus the
ASSETS-3D.mdhand-off and a manifest. - Tier C — GSAP + Three.js + procedural shaders. The visual is the computation — a field, flow, surface, or particle system with no object to model. Zero external assets; this is the procedural backbone (and the fallback every Tier-B chapter degrades to).
- Tier D — any of B/C + WebXR. Flatness is the actual limitation (scale, presence, embodiment). XR is a session the user explicitly enters; never the default render path. The 2D page must be complete on its own.
Pin every renderer version exactly — no latest, no floating majors.
Three.js makes breaking changes between minors; an un-pinned 3D stack is a
future blank chapter. Pin vanilla Three to an exact patch (three@0.160.0) via
a versioned CDN import map; pin Three exactly in package builds (caret only on
the R3F wrappers, lockfile freezes the tree). Full pin table and import map in
references/3d-stack.md Section 2.
Declare the stack tier in the technical spec (the table in the output
template). State the chosen tier, the named narrative need that justifies it,
and the pinned versions. If two tiers both satisfy the story, ship the lower
one — "could be 3D" is not "should be 3D." Full decision criteria, performance
caps, fallback rules, and the scroll-camera pattern: references/3d-stack.md.
WebXR session setup, comfort/safety, and AR quick-look: references/webxr.md.
Output: technical-spec.md
→ Full template: references/artifact-templates.md. Copy the technical-spec.md section and fill every field.
Phase 4: Build
Purpose: Generate the code.
| Input | technical-spec.md |
| Output | Mode A (self-contained HTML) or Mode B (Next.js project) |
| Decision gate | Implicit — the code IS the deliverable |
Agent instructions
Apply ALL taste guardrails as hard constraints. Before delivering, check every output against the banned patterns list in
taste-guardrails.mdSection 1. Violating these rules is a bug, not a style choice.Ensure reduced-motion fallback for every scroll-driven effect. When
prefers-reduced-motion: reduceis active: disable pinning, disable parallax, show static compositions, set all transitions to instant. Referenceperformance-budget.mdSection 3, Tier 4.Give mobile a touch-safe cinematic experience — not a dead page. Below 768px, unpin every chapter and stack the layout, BUT keep motion scroll-coupled: a lerped/damped image parallax (one transform-only mover per section) plus scroll-linked entrance reveals (transform + opacity). A flat, motionless mobile page is a failure mode for this skill. Drive it with JS (rAF reading
scrollYin Mode A, frameruseScroll/useSpringin Mode B) — never CSSanimation-timeline, which iOS Safari reports as supported but does not actually run. No pinning/scroll-jacking on touch, no 3D tilt on touch. Referencereferences/mobile-motion.mdfor the recipe andperformance-budget.mdSection 3 (Mobile Degradation Matrix).Name the cinematic technique in code comments. Every scroll-driven animation should carry a developer comment identifying the film technique it implements (from
taste-guardrails.mdSection 2). This is a code-comment convention for maintainers — it does not dictate the page's user-facing language or locale, which follow the user's request.Only animate
transformandopacityin hot scroll paths. Neverwidth,height,top,left,filter,box-shadow. Referenceperformance-budget.mdSection 1 (Permitted Properties).Use
will-changestrategically — 200ms before animation starts, 200ms after it ends, max 3 simultaneous elements. Never globally. Referenceperformance-budget.mdSection 2.Optional accelerator — compile from a choreography document. If the technical spec is expressed as a
scroll-choreography.json, run the bundled compiler to emit the GSAP ScrollTrigger + Lenis code instead of hand-writing it:node compile-choreography.mjs my-scene.json --out scene.js. The compiler maps the schema's CSS property names to GSAP shorthand (translateX→x,rotateZ→rotation, …) — a mapping that is easy to get wrong by hand and silently no-ops in GSAP if you do. Seescroll-choreography-compilation.md.One choreography, two media. The same document also compiles to a fixed-time video timeline (Basic):
node compile-choreography.mjs my-scene.json --target video. Scroll progress maps to seconds; the DOM contract is identical, so one skeleton serves the page and its launch film. The full render-ready web→video pipeline (HyperFrames/Remotion composition,npx hyperframes render→ MP4, avatar walkthroughs) ships in Cinematic Scroll Studio.Follow the
technical-spec.mdexactly. Do not improvise animation configs that differ from the approved spec.If using fal.ai assets, follow the server-side generation pattern, never expose
FAL_KEYin client code. ReferenceMODELS.mdfor model selection and cost.
Mode A vs Mode B
This phase operates in two modes. Follow the mode specified in the
technical-spec.md.
| Mode A — Scroll artifact | Mode B — Full release site | |
|---|---|---|
| Use when | Single section / hero / pinned chapter / parallax demo | Full release / launch / product-story website |
| Output | One self-contained .html (inline CSS + JS) or .tsx component |
Next.js App Router project from templates/nextjs/ |
| Build step | None | npm install && npm run dev |
| AI assets | None (CSS/SVG/static only) | Optional fal.ai pipeline (bring your own key) |
| GSAP | GSAP + ScrollTrigger via a pinned CDN + SRI (vanilla rAF fallback for no-CDN sandboxes) | Full GSAP + plugins (now free), via npm |
| Smooth scroll | ScrollTrigger scrub + rAF-throttled handlers | Lenis or ScrollSmoother |
If the request is ambiguous, default to Mode A for a single section and Mode B when the user says "site", "page", "release", "launch", or "landing".
Mode A build rules
- Single self-contained HTML file:
<!DOCTYPE html>...</html>, inline CSS + JS, renders immediately with no build step and no npm packages. - Keep it truly single-file and
file://-safe (guardrail 1.13): inline all JS — no sibling<script src="./x.js">— and avoid JS-loaded local assets (runtime-fetched textures/images), since the browser'sfile://cross-origin policy blocks both and the page would fail off a double-click. If a build genuinely needs external modules or texture files it is a served page (tell the user to "runpython3 -m http.server"), not afile://one. Ship no dead code (guardrail 1.12): every CSS selector must match an element, every attribute-branch must fire.cinematic-doctor's advisory hygiene pass flags external local scripts, dead selectors, and dead attribute-branches — drive it to zero. - Load GSAP + ScrollTrigger from a pinned CDN with SRI (exact version, integrity
hash,
crossorigin— as everyexamples/*page does). Third-party CDN disclosure: generated Mode A pages load GSAP fromunpkg.com, fonts fromfonts.googleapis.com/fonts.gstatic.com, and@google/model-viewerfromcdn.jsdelivr.net. These are outbound network requests made by the browser when the page is opened. If the user's deployment policy restricts third-party origins, self-host these assets and replace the CDN URLs — mention this proactively. For sandboxes where the CDN is unreachable, fall back torequestAnimationFrame-throttled scroll handlers: identical motion grammar, zero dependencies. Either way there is no bundler and nothing tonpm install. (Lenis is Mode B only.) perspective: 1200pxon chapter wrapper. 3D transforms on at least one layer (rotateX±4deg max,rotateY±2deg max).- Minimum 5 depth layers per chapter.
- Type reveal: use one of mask reveal, word stagger, letter stagger, vertical mask, or scrub letter-spacing.
clamp()for all typography. No fixedpxforfont-size.- Progress HUD in top-right for sandbox/iframe environments.
- Reduced-motion check:
prefers-reduced-motion: reduce→ static composition, no scroll binding.
Mode B build rules
- Scaffold from
templates/nextjs/— copy bundled files verbatim. Do NOT regeneratepackage.json,ChapterScene.tsx,fal-models.ts,fal-generate.ts, or API routes from memory. The templates contain tested, production-safe code. choreo-3dfor motion primitives:ScrollChoreography,ScrollLayer,ScrollDepthImage,ScrollBackgroundMorph,useTilt3D,useMouseSpring.- GSAP plugins (all free):
ScrollTrigger,SplitText,ScrollSmoother. Register once:gsap.registerPlugin(ScrollTrigger, SplitText, ScrollSmoother). @gsap/react'suseGSAP()hook with ascopefor cleanup.- Lenis (
lenispackage — NOT@studio-freight/lenis) for smooth scroll. Forward Lenis RAF tick toScrollTrigger.update. lib/editions-manifest.ts— 6-12 chapters, each with:id,eyebrow,title,summary,features,accent,background,foreground,poster,video.ChapterScene.tsx— the 7-layer cinematic scene. Do NOT downgrade it: never collapse to 2 layers, never removeperspective: 1200px, never replace word-stagger with plain opacity fade, never drop mobile fallback.lib/fal-models.tsadapter for all image generation — never inlineimage_size,aspect_ratio, ornegative_prompt.- fal.ai key stays server-side only. Never in client components or
.env.
3D / WebGL / XR build rules (Tier B/C/D only)
These apply only when the technical spec declared Tier B, C, or D. Tier A
(GSAP/CSS) ships none of this. examples/flagship/ is the worked 4-chapter
reference; references/3d-stack.md (renderer + caps) and references/webxr.md
(Tier D sessions) are the authority. Each rule below is enforceable — a miss is
a bug, not a style choice.
- Cap
devicePixelRatiolow for live scenes —Math.min(devicePixelRatio, isMobile ? 1.0 : 1.5)(raymarchers/fullscreen shaders can go 0.85–1.3; the blur hides it). Uncapped or a flat2is a Retina GPU tax — a 4K display renders 4–9× the pixels and is the #1 cause of 3D scroll jank. One renderer per page — never a second WebGL context per chapter. Seeperformance-budget.md§9. (doctor-enforced)
1b. Light budget: ~2–4 dynamic lights — prefer emissive + IBL. Every
real-time PointLight/SpotLight/DirectionalLight costs per-fragment on
every lit mesh; one light per object (e.g. a spotlight per painting) is a
frame-rate cliff. Get the look from scene.environment (an equirectangular
HDRI via PMREMGenerator — image-based fill + real reflections), emissive
materials/emissiveMap for self-lit art, and a couple of camera-following
lights. Keep MSAA off on fog/fill-heavy scenes. performance-budget.md §9.
(doctor-enforced)
Feature-detect WebGL before creating a context. Probe for a context; if it fails, render the permanent poster / CSS fallback — never a blank canvas. The fallback is a first-class deliverable, not an afterthought.
Handle context loss. Add a
webglcontextlostlistener that callse.preventDefault(), plus awebglcontextrestoredhandler that rebuilds the scene. WithoutpreventDefault()the context never comes back.prefers-reduced-motion: reduce→ render a single static frame. Draw once, then stop. No continuous rAF loop, no auto-rotate, no idle animation.Gate the rAF loop. Run frames only when the document is visible (
document.visibilityState) AND the canvas is on-screen (IntersectionObserver). Stop the loop otherwise. On teardown, dispose every geometry, material, and texture (and the renderer) — leaked GPU resources accumulate per chapter.All runtime 3D asset paths come from a manifest — never hardcode model, USDZ, or poster paths in code. Read them from
examples/flagship/assets-3d/manifest.json(shape:version(2),basePath,chapters.{id}.{label, runtime, iosAr, fallbackPoster, height, lift, spin, pivot, cameraNodes, shader, scale, animations, stripRootMotion}—runtimeis the glb path or"procedural",iosArthe optional.usdz).XR (Tier D) is feature-gated. Check
navigator.xrandawait navigator.xr.isSessionSupported('immersive-vr' | 'immersive-ar')before rendering any Enter-VR / Enter-AR button. If unsupported, the button never appears. The 2D page must be complete and shippable without XR — XR is a session the user explicitly enters, never the default render path.
Output: Mode A (single file) or Mode B (project directory)
Phase 5: Polish
Purpose: Performance audit, accessibility check, mobile verification, and final quality gate.
| Input | The built code (Mode A HTML or Mode B project) |
| Output | polish-report.md |
| Decision gate | All 11 pre-launch checks must pass. User reviews the polish report. |
Agent instructions
Run the performance-budget.md monitoring checklist (Section 6). All 11 pre-launch checks must be verified:
- Chrome DevTools Performance: 10s scroll recording, < 5% red frames
- Lighthouse Performance score > 90
- WebPageTest filmstrip: smooth visual progression during scroll
- iPhone 12 Safari: no visible stutter during fast scroll
- iPhone SE: content accessible, no broken layout on budget tier
- Reduced-motion test: all content visible, no broken layout
- Battery test: 5min continuous scrolling drains < 3% battery
- Memory test: tab memory does not grow > 50MB after 5min scrolling
- Layer count: < 10 layers desktop, < 4 on mobile
- No layout thrashing: no purple "Layout" bars during scroll
- Network: no images load during scroll animation
Verify no banned patterns survived. Re-check the code against
taste-guardrails.mdSection 1 (Banned Patterns).Confirm emotional arc matches Phase 1 audit. Scroll through the entire experience and verify the emotional progression matches the
cinematic-audit.mddefinition.Verify all reduced-motion fallbacks. Test with macOS → Accessibility → Reduce Motion ON. All content must be visible and usable.
Verify mobile degradation. Test at 375px viewport. All pinned sections must be converted to stacked layout. No broken tap targets.
Verify accessibility: All images have meaningful
alttext (oralt=""if decorative). All interactive elements have focus states.aria-labelon visual navigation controls. Keyboard navigation works.Measure scroll jank using the protocol from
performance-budget.mdSection 4 (Scroll Jank Measurement Protocol).3D / XR polish checks (Tier B/C/D only). Skip for Tier A. Verify:
- Context loss tested — force a
webglcontextlost, confirme.preventDefault()fires andwebglcontextrestoredrebuilds the scene. - Fallback verified — disable WebGL (or block the context) and confirm the permanent poster / CSS fallback renders, never a blank canvas.
- Mobile
devicePixelRatiolowered (≤ 2, lower on phones) and a single renderer is used for the whole page. - No per-frame allocation — no
newgeometries/materials/vectors inside the rAF loop; no raycasting or heavy work every frame. - Teardown disposes all geometries/materials/textures (no GPU leak across chapters); rAF is gated on visibility + on-screen.
-
prefers-reduced-motionrenders a single static frame (no loop). - XR feature-gated — Enter-VR/AR only appears after
navigator.xr.isSessionSupported(...); the 2D page is complete without XR. Seereferences/3d-stack.mdandreferences/webxr.mdfor the authority.
- Context loss tested — force a
Run the cinematic-doctor quality gate — the polish phase is not complete until it passes. Every build SHOULD pass this executable gate before shipping:
npm run doctor -- examples/your-build/index.html # equivalently (the gate's direct entry point): node tools/cinematic-doctor/cli.mjs examples/your-build/index.htmlIt statically scores the build 0–100 across taste, performance, a11y, mobile, tokens, and (when 3D is detected) 3D categories, prints a scorecard, writes
cinematic-report.json, and exits non-zero below the default threshold of 80 — so it is CI-blockable / pre-commit-hook ready. Treat a failing score as a list of concrete fixes to apply, then re-run until it passes. Do not call the build polished while cinematic-doctor is red.
Output: polish-report.md
→ Full template: references/artifact-templates.md. Copy the polish-report.md section and fill every field.
Mandatory Motion + Craft Requirements
Every artifact MUST satisfy ALL of these. No exceptions for "demo simplicity" — the demo IS the product.
1. Multi-depth field — minimum 5 layers
Two-layer parallax is amateur. A real depth field uses 5-7 layers at distinct depth multipliers. Pick at least 5 of these 7 slots:
| Depth | Role | Examples |
|---|---|---|
| 0.15 | Atmospheric far | Sky gradient, distant fog, soft glow |
| 0.30 | Mid-far | Distant props, blurred shapes, horizon |
| 0.50 | Mid | Subject background, atmospheric texture |
| 0.75 | Subject | Main figure / image / 3D object |
| 1.00 | UI text | Title, body copy, eyebrow label |
| 1.20 | Foreground accents | Floating numbers, edge labels, brackets |
| 1.40 | Closest overlays | Cursor highlights, badges, scroll cue |
2. 3D perspective camera
Set perspective: 1200px on the chapter wrapper. Use scroll-driven 3D
transforms on at least one layer: rotateX(±4deg max), rotateY(±2deg max),
translateZ(0px → -80px). Disable all 3D rotation on touch devices AND
when prefers-reduced-motion: reduce.
3. Type reveal patterns
Plain opacity: 0 → 1 on oversized titles is lazy. Use one of:
word stagger, letter stagger, mask reveal (clip-path: inset), vertical mask,
scrub letter-spacing. Combine with translateY() and opacity.
4. Smooth scrolling — mandatory in production
- Mode A:
requestAnimationFrame-throttled scroll handlers (not rawscrollevents). No packages — dependency-free by design. - Mode B: Lenis (
lenisnpm — NOT@studio-freight/lenis) OR GSAPScrollSmoother(preferred when GSAP is already in the build). Forward Lenis RAF tick toScrollTrigger.updateif using both.
5. GSAP is now free — use the premium plugins in Mode B
As of the Webflow acquisition (2025), GSAP is 100% free including every former Club plugin. In Mode B, prefer:
| Want | Use the free plugin | Instead of |
|---|---|---|
| Per-word/per-char reveals | SplitText (gsap/SplitText) |
Manual word <span> wrapping |
| Pinned chapters + scroll-scrub | ScrollTrigger (gsap/ScrollTrigger) |
Custom IntersectionObserver pinning |
| Smooth scroll | ScrollSmoother (gsap/ScrollSmoother) |
Lenis + RAF forwarding |
| Layout transitions | Flip (gsap/Flip) |
Manual FLIP math |
Register once: gsap.registerPlugin(ScrollTrigger, SplitText, ScrollSmoother).
6. Mobile-responsive — mandatory
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">- Typography in
clamp(min, fluid, max)— never fixedpxforfont-size - Disable pinning below 768px, but keep motion scroll-coupled and touch-safe:
lerped image parallax (one transform-only mover per section) + scroll-linked
entrance reveals (transform + opacity). JS-driven, NOT CSS
animation-timeline(iOS Safari reports support but doesn't run it). Seereferences/mobile-motion.md. env(safe-area-inset-*)padding on fixed nav / overlays- Tap targets ≥ 44px square
- Mobile-first: design at 375px viewport FIRST, then scale up
7. Loading sequence
- Preload critical backgrounds with
<link rel="preload" as="image"> - Show poster / blurred LQIP placeholder during decode
- First paint readable within ~1.5s on simulated 4G
- In Next.js,
<Image>withpriorityon above-the-fold imagery
8. Performance — compositor-only paths, designed for 60fps (benchmark your targets)
- Only
transformandopacitymutate per scroll frame will-change: transformon animated layers ONLY (never globally)translate3d(0,0,0)to force GPU compositing where needed- Cache
getBoundingClientRect()once on init + resize, never per frame - No layout reads in scroll handlers
- Chrome DevTools Performance flame chart = all green (composite only)
- Lighthouse Performance ≥ 90
9. Component rules
- Every full-screen chapter:
id+ single<section>wrapper +eyebrow,title,summary,features,asset,accent - All text overlays = selectable HTML, never baked into images
aria-labelon visual navigation controls- Avoid scroll hijacking — pin per chapter, not the whole page
- On mobile: collapse pinned scenes into stacked vertical cards
- Prefer 16:9 backgrounds, 4:5 foreground figures
Core Principles
Reduced motion first. Every effect degrades gracefully when
prefers-reduced-motion: reduceis set. Pin hooks skip GSAP, layers snap to stable mid-keyframe, tilt returns zeros.iOS WebKit video safety. Safari freezes
<video>frames inside atransform-style: preserve-3dancestor that updates. Detect touch and bypass the 3D wrapper for video.Animate transform + opacity only in hot scroll paths.
Pin chapters, not the page. Each cinematic block opts into pinning. The rest of the document scrolls normally.
Deterministic motion. Any procedural value must be stable across re-renders so SSR and resize don't shift layout.
Quality Bar
Output must compete with:
- Shopify Editions (Winter/Summer drops) — multi-chapter release worlds
- Apple product launch pages — pinned cinematic sequences
- Linear release notes — editorial typography + restraint
- Stripe Sessions — depth-of-field + atmospheric morphing
- Awwwards SOTD nominees in Editorial + Product Launch categories
"Looks like a Bootstrap landing page" or "looks like a Tailwind UI template" = failure. Output should look studio-crafted. If constraints prevent this tier, say so explicitly and deliver the highest-quality fallback the constraints allow — never ship mid-tier silently.
fal.ai Integration (Mode B)
This skill includes NO keys or credits. Every user creates their own fal.ai
account. The page works without fal.ai — ChapterDemoVisual renders
stunning CSS-only chapter visuals at $0.
Setup
- Walk new users through
examples/GETTING_STARTED.md - Sign up at fal.ai, create API key, add
FAL_KEYto.env.local - Restart dev server after adding env vars
- Never put
FAL_KEYin client components or committed.envfiles - Mention they can skip fal.ai and use static images
Technical rules
- Never expose
FAL_KEYin browser code - Use
@fal-ai/server-proxy/nextjs— exportGET,POST, andPUT - Always go through
lib/fal-models.ts— never inlineimage_sizeornegative_prompt - Use server routes for production asset generation
- Use
fal.subscribefor ≤5 chapters;fal.queue.submit+ webhook for >5 - Set
allowedEndpointson the proxy +allowUnauthorizedRequests: false - Model IDs configurable via environment variables
See MODELS.md for the full model menu, cost table, and per-model parameter
differences. Default: fal-ai/flux-2-pro (~$0.06/img, ~4s).
Quick-Start (For Expert Users)
Experienced users can skip the full pipeline by providing a complete brief upfront. The agent runs all 5 phases internally and delivers the final output in one shot. Use these prompts as templates.
Quick-Start A: Single scroll section (Mode A)
Build a cinematic-scroll pinned hero chapter for my [brand/product]. Visual system: [Symmetric Monument / Clinical Noir / Storybook Geometry / Temporal Monument / Atmospheric Sublime / Warm Scrapbook / Naturalistic Drift]. [N] chapters, [color palette], [typography feel]. Pin duration [X]vh. Output: single self-contained HTML file.
The agent internally runs Phase 1-3 assumptions, builds (Phase 4), and delivers a performance-annotated file with inline polish notes (Phase 5 lightweight).
Quick-Start B: Full release site (Mode B)
Scaffold a complete Shopify-Editions-tier cinematic release page for [product]. Visual system: [name]. [N] chapters. Demo mode first — no fal.ai key required. Copy templates verbatim from
templates/nextjs/.
The agent runs the full pipeline internally: cinematic audit (assumed), storyboard (assumed), technical spec (assumed), build (Mode B), and delivers with a lightweight polish checklist.
Quick-Start C: Existing project upgrade
Add a cinematic-scroll pinned chapter to my existing [React/Next.js] project. Use choreo-3d primitives. Pattern: [Pinned Hero/Chaptered Release/etc from scroll-patterns.md]. Pin [X]vh, [N] layers. Match my existing [palette/typography].
The agent runs Phase 2-4 only, integrating with the existing codebase.
Example Prompts — Full Pipeline (5-Phase)
These examples show how the complete gated pipeline works end-to-end.
Example 1: Fintech Trust Page (Clinical Noir system)
Phase 1: We're a fintech app that needs to communicate trust and precision. Our brand is clinical, data-driven, restrained. Audience: decision-makers on desktop. Build a cinematic-scroll experience using the Clinical Noir visual system from
references/film-archetypes.mdSection 2. Output:cinematic-audit.md.Phase 2: Based on the audit, design a 6-chapter motion storyboard. Chapters: Authority, Problem, Solution, Product, Proof, CTA. Use Chaptered Release pattern for chapters 1 and 5, Sticky Narrative for chapter 2, Data Story for chapter 4. Reference
references/scroll-patterns.mdSections 5, 4, and 9. Output:motion-storyboard.md.Phase 3: Produce the technical spec. Use GSAP ScrollTrigger + Lenis + choreo-3d. Scrub 0.5, pin spacing true. Reference
performance-budget.mdSections 1, 2, and 7 for all constraints. Output:technical-spec.md.Phase 4: Build Mode B — Next.js project from templates. 6 chapters, Clinical Noir palette (ash grey, steel blue, sickly yellow-green, black). CSS-only demo mode for first run. Output: project directory.
Phase 5: Run the full polish checklist. Verify all 11 pre-launch checks from
performance-budget.mdSection 6. Confirm no banned patterns fromtaste-guardrails.mdSection 1 survived. Output:polish-report.md.
Example 2: Wellness Brand (Warm Scrapbook + Naturalistic Drift)
Phase 1: We're a longevity science company. We want warmth, approachability, and land-connection. Primary system: Warm Scrapbook (
references/film-archetypes.mdSection 6). Accent system: Naturalistic Drift (Section 7) for the landscape chapters. Output:cinematic-audit.md.Phase 2: Design a 5-chapter storyboard. Chapters: Welcome, Science, Nature, Product, Community. Use Pinned Hero for ch1, Editorial Longread for ch2, Parallax Gallery for ch3, Chaptered Release for ch4, Landing Sequence for ch5. Reference
references/scroll-patterns.mdSections 1, 8, 6, 5, and 10. Output:motion-storyboard.md.Phase 3: Technical spec with warm palette progression (rose → peach → amber → sage → cream). GSAP + Lenis. Mobile (≤768px): keep touch-safe scroll-coupled motion — lerped image parallax + scroll-linked entrance reveals (no pinning, no 3D tilt); see references/mobile-motion.md. Reference
performance-budget.mdSection 3 (Mobile Degradation Matrix). Output:technical-spec.md.Phase 4: Build Mode B. 5 chapters, organic editorial aesthetic. fal.ai for chapter images:
historicalLayer: 'atelier', painterly botanical subjects. Demo mode for first run. Output: project directory.Phase 5: Polish. Verify emotional arc matches Phase 1: welcome (warmth) → science (curiosity) → nature (awe) → product (trust) → community (belonging). Run 11-point checklist. Output:
polish-report.md.
Example 3: Sci-Fi Game Reveal (Temporal Monument, Mode A)
Phase 1: We're launching a sci-fi game expansion. We want cosmic scale, event-level drama, layered realities. Visual system: Temporal Monument (
references/film-archetypes.mdSection 4). Audience: gamers, 70% desktop. Output:cinematic-audit.md.Phase 2: Design a 7-chapter storyboard. Chapters: Teaser, World, Lore, Characters, Gameplay, Release, CTA. Use Pinned Hero for ch1, Chaptered Release for ch2 and ch3, 3D Product Orbit for ch5, Landing Sequence for ch7. Reference
references/scroll-patterns.mdSections 1, 5, 5, 7, and 10. Max 7 layers in ch2 (the deepest chapter). Output:motion-storyboard.md.Phase 3: Technical spec. Mode A output (single HTML). rAF-throttled scroll, no packages. 5-7 depth layers per chapter. 3D camera:
rotateX(±4deg),translateZ(0 → -80px). Performance budget: alltransform+opacityonly,will-changeon 3 elements max. Referenceperformance-budget.mdSections 1 and 2. Output:technical-spec.md.Phase 4: Build Mode A. Single self-contained HTML. Near-black backgrounds, deep teal and crimson accents, heavy grain overlay. 7 chapters, each pinned 200-300vh. Title reveals: mask wipe, word stagger, letter-spacing scrub, scale-down entrance — varied per chapter per
taste-guardrails.mdSection 4.5. Reduced-motion fallback: static compositions. Progress HUD included. Output:index.html.Phase 5: Polish the HTML. Verify: compositor-only scroll paths, < 5% dropped frames on 10s recording, reduced-motion shows all content, mobile <768px stacks with no pinning. No banned patterns from
taste-guardrails.mdSection 1. Output:polish-report.md.
What's in the Box
cinematic-scroll-skill/
├── SKILL.md # Agent contract (5-phase pipeline) [this file]
├── taste-guardrails.md # Quality enforcement system (11 banned patterns,
│ # cinematic vocabulary, pacing rules,
│ # anti-convergence principles)
├── design.md # Design contract (token roles, motion, banned patterns)
├── tokens/ # DTCG design tokens (core / motion / semantic) + build/
├── themes/ # 11 per-visual-system theme overlays
├── manifest.json # Skill manifest (v2.3.5)
├── MODELS.md # fal.ai model menu and cost table
├── README.md # Human-facing overview
├── LICENSE # MIT
├── references/
│ ├── scroll-patterns.md # 12 proven scroll patterns (Sections 1-12),
│ │ # each with use case, depth config, transition,
│ │ # mobile strategy, performance budget
│ ├── film-archetypes.md # 11 visual systems (Sections 1-11):
│ │ # Symmetric Monument, Clinical Noir,
│ │ # Storybook Geometry, Temporal Monument,
│ │ # Atmospheric Sublime, Warm Scrapbook,
│ │ # Naturalistic Drift, Brutalist Kinetic,
│ │ # Liquid Chrome, Botanical Editorial,
│ │ # Data Cinematic — each → a themes/*.theme.json
│ ├── performance-budget.md # 60fps production contract:
│ │ # frame budget, permitted/forbidden properties,
│ │ # will-change strategy, mobile degradation matrix
│ │ # (4 tiers), benchmark targets, asset budgets,
│ │ # 11-point pre-launch monitoring checklist,
│ │ # GSAP-specific rules, failure modes
│ └── mobile-motion.md # Touch-safe mobile motion recipe:
│ # scroll-coupled lerped parallax + entrance
│ # reveals, the iOS Safari animation-timeline
│ # gotcha, vanilla (Mode A) + framer (Mode B)
│ # sketches, reduced-motion gating
├── examples/
│ ├── PROMPTS.md # 20+ trigger prompts (Mode A and B)
│ ├── GETTING_STARTED.md # fal.ai setup walkthrough
│ └── KNOWN_ISSUES.md # QA log of known issues and fixes
├── templates/nextjs/ # Next.js App Router template:
│ # package.json, ChapterScene.tsx (7-layer scene),
│ # ChapterDemoVisual.tsx (CSS-only fallback),
│ # EditionsPage.tsx (orchestrator),
│ # fal proxy routes, fal client/lib/scripts,
│ # SmoothScrollProvider, use-device hooks,
│ # globals.css with fluid type scale,
│ # tailwind.config.ts, tsconfig.json
└── assets/ # Shared static assets
Legal and Originality Rules
- Do not reproduce the Shopify logo, screenshots, copy, proprietary illustrations, exact section design, or exact visual scene.
- Do not generate images that imitate a living artist by name.
- Do not bake readable UI copy into generated images unless the user specifically asks and the target model supports reliable text.
- Build UI text, labels, nav, cards, numbers, and feature lists as HTML/CSS so they remain editable, accessible, and crisp.
- Use references only as art-direction benchmarks — chaptered release storytelling, not clone targets.
- If the user asks to clone a proprietary site exactly, respond by making an original system that uses the reference as inspiration.
Anti-Patterns
Do NOT use this skill for:
- "Build a basic hero + features + pricing landing page."
- "Generate a WordPress theme."
- Ordinary SaaS landing pages, CRUD dashboards, or simple brochure sites — unless the user explicitly asks for a cinematic / editorial treatment.
- "Regenerate all templates from scratch without reading bundled files."
- "Give me motion ideas only, no code." (The skill must output runnable artifacts.)