Ztc product storytelling

From Realjustawall/Perfect-AI · View interactive version

Ztc product storytelling is an AI agent skill from the GitHub repository Realjustawall/Perfect-AI. Tie a cinematic product reveal to scroll progress using decoded frame sequences, responsive crops, prefetch, chapter beats and 3D alternatives.

How to use this skill

Skill file

Apple-Style Product Storytelling

Mission

Tie a cinematic product reveal to scroll progress using decoded frame sequences, responsive crops, prefetch, chapter beats and 3D alternatives.

Integration order (MUST follow)

  1. Inspect package.json, framework/router, existing Motion/GSAP/Anime/Three versions, asset ownership, installed plugins and media-query breakpoints; never install libraries speculatively.
  2. Record baseline screenshot and layout measurements at 390px and 1440px, reduced-motion off/on, with a reversible change plan. Preserve every existing feature.
  3. Read the accompanying module ../../src/product-story.mjs and relevant ../../examples/showcase fixture. The module is importable ESM and contains pure primitives; integrate rather than replacing existing app architecture.
  4. Select a single source of truth for time/scroll/transform. Map ownership in a table (property, owner, initialization, cleanup), avoiding GSAP/Motion/CSS double transforms.
  5. Implement the smallest supported path first, then optional advanced renderer/library adapter only if project dependencies and measured benefits justify it.
  6. Execute node --test tests/*.test.mjs in this extension and run a browser test in the destination app. Do not equate unit tests with WebGL, physical-device or accessibility certification.
  7. Capture evidence before/after, browser console, load error handling, cleanup after repeated navigation, keyboard, resize, and bidirectional scroll.

Engineering disciplines

  1. Scroll Frame Mapping — Map scroll region to clamped 0..1 progress and to exact frame indexes, including reverse scroll.
  2. Priority Frame Loading — Load first frame and near-future frames first, progressive precache ahead/behind scroll direction, track promise in-flight, bound cache.
  3. Image Sequence Vs Video — Choose AVIF/WebP frames, video seek or GLB camera animation based on file budget, responsiveness, alpha support and decoded memory.
  4. Product Chapters — Set narrative chapter starts, labels and subtitles; ensure no content is available only via motion.
  5. Pinned Story — Use CSS sticky or ScrollTrigger pin with measured scene height and stable safe areas; avoid unbounded blocking during scroll.
  6. Asset Failure Recovery — On missing frames show nearest decoded frame or static poster; reject error loops, disclose reduced-motion version.

Subskills (load only needed ones)

Concrete acceptance gate

120-frame storyboard maps exact first/mid/last frames, supports reverse scroll, bounds cache, renders a static poster on 404.

Runtime / dependencies

Native Canvas/Image, IntersectionObserver, optional GSAP ScrollTrigger or video/Three.js. No MCP and no network/CDN at runtime. All new assets must have license/provenance. Preserve existing files by default.

Failure modes & honesty

The package contains a procedural frame demo, not licensed Apple product assets or a finished 120-frame photo sequence.

Authoritative references

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.