@mevdragon/vidfarm-devcli 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/embedded-captions/CATALOG.md +93 -0
- package/.agents/skills/embedded-captions/SKILL.md +286 -0
- package/.agents/skills/embedded-captions/assets/brand/CDPR-fankit-terms.txt +35 -0
- package/.agents/skills/embedded-captions/assets/brand/cyberpunk-widths.json +115 -0
- package/.agents/skills/embedded-captions/assets/fonts/char-widths.json +2211 -0
- package/.agents/skills/embedded-captions/assets/strokefonts/HersheyScript1.svg +242 -0
- package/.agents/skills/embedded-captions/assets/strokefonts/HersheyScriptMed.svg +242 -0
- package/.agents/skills/embedded-captions/dna/README.md +148 -0
- package/.agents/skills/embedded-captions/dna/chrome.json +68 -0
- package/.agents/skills/embedded-captions/dna/cream.json +69 -0
- package/.agents/skills/embedded-captions/dna/documentary.json +62 -0
- package/.agents/skills/embedded-captions/dna/editorial.json +70 -0
- package/.agents/skills/embedded-captions/dna/glitch.json +82 -0
- package/.agents/skills/embedded-captions/dna/ink.json +65 -0
- package/.agents/skills/embedded-captions/dna/keynote.json +62 -0
- package/.agents/skills/embedded-captions/dna/loud.json +75 -0
- package/.agents/skills/embedded-captions/dna/neon.json +58 -0
- package/.agents/skills/embedded-captions/dna/velocity.json +89 -0
- package/.agents/skills/embedded-captions/modes/cinematic/README.md +48 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/champion/spec.md +98 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/champion/template.html +188 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/memory-wall/spec.md +134 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/memory-wall/template.html +179 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/portrait-header/spec.md +81 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/portrait-header/template.html +170 -0
- package/.agents/skills/embedded-captions/modes/cinematic/cinematic-cream/spec.md +16 -0
- package/.agents/skills/embedded-captions/modes/cinematic/cinematic-cream/template.html +226 -0
- package/.agents/skills/embedded-captions/modes/cinematic/engine.html +355 -0
- package/.agents/skills/embedded-captions/modes/standard/_anatomy.md +233 -0
- package/.agents/skills/embedded-captions/modes/standard/_motion.md +192 -0
- package/.agents/skills/embedded-captions/modes/standard/fonts/build-fonts-css.cjs +97 -0
- package/.agents/skills/embedded-captions/references/aesthetic-principles.md +168 -0
- package/.agents/skills/embedded-captions/references/anti-patterns.md +188 -0
- package/.agents/skills/embedded-captions/references/bespoke-vs-presets.md +178 -0
- package/.agents/skills/embedded-captions/references/caption-grouping.md +130 -0
- package/.agents/skills/embedded-captions/references/composition-craft.md +522 -0
- package/.agents/skills/embedded-captions/references/direction-catalog.md +138 -0
- package/.agents/skills/embedded-captions/references/example-renders/champion.html +371 -0
- package/.agents/skills/embedded-captions/references/example-renders/memory-wall.html +334 -0
- package/.agents/skills/embedded-captions/references/failure-modes.md +145 -0
- package/.agents/skills/embedded-captions/references/layout-heuristics.md +238 -0
- package/.agents/skills/embedded-captions/references/motion-vocabulary.md +148 -0
- package/.agents/skills/embedded-captions/references/rail.md +68 -0
- package/.agents/skills/embedded-captions/references/reference-bar.md +47 -0
- package/.agents/skills/embedded-captions/references/scene-types.md +94 -0
- package/.agents/skills/embedded-captions/references/test-set.md +66 -0
- package/.agents/skills/embedded-captions/references/typographic-moves.md +266 -0
- package/.agents/skills/embedded-captions/references/typography-presets.md +63 -0
- package/.agents/skills/embedded-captions/scripts/audio-envelope.cjs +95 -0
- package/.agents/skills/embedded-captions/scripts/check-occlusion.cjs +250 -0
- package/.agents/skills/embedded-captions/scripts/check-overflow.cjs +194 -0
- package/.agents/skills/embedded-captions/scripts/check-rail-climax.cjs +233 -0
- package/.agents/skills/embedded-captions/scripts/check-timing.cjs +173 -0
- package/.agents/skills/embedded-captions/scripts/fill-timings.cjs +124 -0
- package/.agents/skills/embedded-captions/scripts/fit-fonts.cjs +158 -0
- package/.agents/skills/embedded-captions/scripts/gen-stroke-path.py +46 -0
- package/.agents/skills/embedded-captions/scripts/inject-fonts.cjs +169 -0
- package/.agents/skills/embedded-captions/scripts/lib-dna.cjs +201 -0
- package/.agents/skills/embedded-captions/scripts/make-cinematic.cjs +1205 -0
- package/.agents/skills/embedded-captions/scripts/make-composition.cjs +404 -0
- package/.agents/skills/embedded-captions/scripts/make-theme.cjs +8781 -0
- package/.agents/skills/embedded-captions/scripts/matte.cjs +294 -0
- package/.agents/skills/embedded-captions/scripts/measure-layout.cjs +293 -0
- package/.agents/skills/embedded-captions/scripts/prepare.sh +39 -0
- package/.agents/skills/embedded-captions/scripts/preview-frames.cjs +268 -0
- package/.agents/skills/embedded-captions/scripts/render-and-composite.sh +509 -0
- package/.agents/skills/embedded-captions/scripts/render-theme.sh +34 -0
- package/.agents/skills/embedded-captions/scripts/safe-zones.cjs +813 -0
- package/.agents/skills/embedded-captions/scripts/transcribe.cjs +349 -0
- package/.agents/skills/embedded-captions/themes/PORTING.md +49 -0
- package/.agents/skills/embedded-captions/themes/README.md +244 -0
- package/.agents/skills/embedded-captions/themes/anchor.json +27 -0
- package/.agents/skills/embedded-captions/themes/arcade.json +51 -0
- package/.agents/skills/embedded-captions/themes/aurora.json +41 -0
- package/.agents/skills/embedded-captions/themes/biolume.json +35 -0
- package/.agents/skills/embedded-captions/themes/brush.json +74 -0
- package/.agents/skills/embedded-captions/themes/chalkboard.json +52 -0
- package/.agents/skills/embedded-captions/themes/dossier.json +56 -0
- package/.agents/skills/embedded-captions/themes/graffiti.json +62 -0
- package/.agents/skills/embedded-captions/themes/hologram.json +41 -0
- package/.agents/skills/embedded-captions/themes/inkwater.json +43 -0
- package/.agents/skills/embedded-captions/themes/laser.json +46 -0
- package/.agents/skills/embedded-captions/themes/lastpage.json +33 -0
- package/.agents/skills/embedded-captions/themes/neonsign.json +53 -0
- package/.agents/skills/embedded-captions/themes/nightcity.json +56 -0
- package/.agents/skills/embedded-captions/themes/ordnance.json +54 -0
- package/.agents/skills/embedded-captions/themes/papercut.json +37 -0
- package/.agents/skills/embedded-captions/themes/popup.json +46 -0
- package/.agents/skills/embedded-captions/themes/ransom.json +62 -0
- package/.agents/skills/embedded-captions/themes/scoreboard.json +54 -0
- package/.agents/skills/embedded-captions/themes/spectrum.json +46 -0
- package/.agents/skills/embedded-captions/themes/stardust.json +29 -0
- package/.agents/skills/embedded-captions/themes/stomp.json +43 -0
- package/.agents/skills/embedded-captions/themes/terminal.json +49 -0
- package/.agents/skills/embedded-captions/themes/thunder.json +44 -0
- package/.agents/skills/embedded-captions/themes/transit.json +44 -0
- package/.agents/skills/embedded-captions/themes/vhs.json +47 -0
- package/.agents/skills/faceless-explainer/SKILL.md +209 -0
- package/.agents/skills/faceless-explainer/references/cut-catalog.md +215 -0
- package/.agents/skills/faceless-explainer/references/motion-language.md +156 -0
- package/.agents/skills/faceless-explainer/references/story-design.md +248 -0
- package/.agents/skills/faceless-explainer/references/visual-design.md +146 -0
- package/.agents/skills/faceless-explainer/scripts/assemble-index.mjs +570 -0
- package/.agents/skills/faceless-explainer/scripts/audio.mjs +260 -0
- package/.agents/skills/faceless-explainer/scripts/build-frame.mjs +536 -0
- package/.agents/skills/faceless-explainer/scripts/captions.mjs +508 -0
- package/.agents/skills/faceless-explainer/scripts/lib/assets.mjs +55 -0
- package/.agents/skills/faceless-explainer/scripts/lib/dimensions.mjs +45 -0
- package/.agents/skills/faceless-explainer/scripts/lib/storyboard.mjs +249 -0
- package/.agents/skills/faceless-explainer/scripts/lib/tokens.mjs +204 -0
- package/.agents/skills/faceless-explainer/scripts/lib/transition-registry.mjs +38 -0
- package/.agents/skills/faceless-explainer/scripts/lib/transitions.json +71 -0
- package/.agents/skills/faceless-explainer/scripts/transitions.mjs +320 -0
- package/.agents/skills/faceless-explainer/sub-agents/frame-worker.md +75 -0
- package/.agents/skills/flockposter/LICENSE +17 -0
- package/.agents/skills/flockposter/README.md +72 -0
- package/.agents/skills/flockposter/SKILL.md +562 -0
- package/.agents/skills/flockposter/examples/cli-instagram-reel.sh +21 -0
- package/.agents/skills/flockposter/examples/cli-multi-platform.json +69 -0
- package/.agents/skills/flockposter/examples/cli-tiktok-upload-only.sh +22 -0
- package/.agents/skills/flockposter/examples/cli-x-thread.sh +17 -0
- package/.agents/skills/flockposter/examples/cli-youtube-short.sh +21 -0
- package/.agents/skills/flockposter/examples/public-api-instagram-reel.json +28 -0
- package/.agents/skills/general-video/SKILL.md +143 -0
- package/.agents/skills/hyperframes/SKILL.md +160 -0
- package/.agents/skills/hyperframes-animation/SKILL.md +84 -0
- package/.agents/skills/hyperframes-animation/adapters/animate-text.md +64 -0
- package/.agents/skills/hyperframes-animation/adapters/animejs.md +114 -0
- package/.agents/skills/hyperframes-animation/adapters/css-animations.md +143 -0
- package/.agents/skills/hyperframes-animation/adapters/gsap-easing-and-stagger.md +118 -0
- package/.agents/skills/hyperframes-animation/adapters/gsap-timeline-and-labels.md +96 -0
- package/.agents/skills/hyperframes-animation/adapters/gsap-transforms-and-perf.md +96 -0
- package/.agents/skills/hyperframes-animation/adapters/gsap.md +105 -0
- package/.agents/skills/hyperframes-animation/adapters/html-in-canvas-patterns.md +507 -0
- package/.agents/skills/hyperframes-animation/adapters/lottie.md +117 -0
- package/.agents/skills/hyperframes-animation/adapters/three.md +131 -0
- package/.agents/skills/hyperframes-animation/adapters/typegpu.md +178 -0
- package/.agents/skills/hyperframes-animation/adapters/waapi.md +101 -0
- package/.agents/skills/hyperframes-animation/blueprints/comparison-split.md +27 -0
- package/.agents/skills/hyperframes-animation/blueprints/constellation-hub.md +44 -0
- package/.agents/skills/hyperframes-animation/blueprints/cta-morph-press.md +28 -0
- package/.agents/skills/hyperframes-animation/blueprints/cursor-ui-demo.md +57 -0
- package/.agents/skills/hyperframes-animation/blueprints/dataviz-countup.md +46 -0
- package/.agents/skills/hyperframes-animation/blueprints/device-surface-showcase.md +53 -0
- package/.agents/skills/hyperframes-animation/blueprints/grid-card-assemble.md +66 -0
- package/.agents/skills/hyperframes-animation/blueprints/kinetic-type-beats.md +78 -0
- package/.agents/skills/hyperframes-animation/blueprints/logo-assemble-lockup.md +69 -0
- package/.agents/skills/hyperframes-animation/blueprints/overwhelm-surround.md +28 -0
- package/.agents/skills/hyperframes-animation/blueprints/spatial-pan-stations.md +37 -0
- package/.agents/skills/hyperframes-animation/blueprints/ticker-takeover.md +29 -0
- package/.agents/skills/hyperframes-animation/blueprints/titlecard-reveal.md +42 -0
- package/.agents/skills/hyperframes-animation/blueprints/typewriter-reveal.md +51 -0
- package/.agents/skills/hyperframes-animation/blueprints/video-text-pivot.md +30 -0
- package/.agents/skills/hyperframes-animation/blueprints-index.md +146 -0
- package/.agents/skills/hyperframes-animation/examples/assets/avatars/02.avif +0 -0
- package/.agents/skills/hyperframes-animation/examples/assets/brands/github.avif +0 -0
- package/.agents/skills/hyperframes-animation/examples/assets/brands/nvidia.avif +0 -0
- package/.agents/skills/hyperframes-animation/examples/assets/brands/visa.avif +0 -0
- package/.agents/skills/hyperframes-animation/examples/assets/brands/zoominfo.avif +0 -0
- package/.agents/skills/hyperframes-animation/examples/brand-reveal-assemble-zoom.html +382 -0
- package/.agents/skills/hyperframes-animation/examples/comparison-split-cards.html +649 -0
- package/.agents/skills/hyperframes-animation/examples/concept-demo-decode-pan.html +520 -0
- package/.agents/skills/hyperframes-animation/examples/cta-morph-press.html +468 -0
- package/.agents/skills/hyperframes-animation/examples/cta-orbit-collapse.html +1298 -0
- package/.agents/skills/hyperframes-animation/examples/demo-page-scroll-spotlight.html +759 -0
- package/.agents/skills/hyperframes-animation/examples/hook-counter-burst.html +729 -0
- package/.agents/skills/hyperframes-animation/examples/messaging-multi-phrase.html +352 -0
- package/.agents/skills/hyperframes-animation/examples/metric-video-text-pivot.html +779 -0
- package/.agents/skills/hyperframes-animation/examples/problem-mockup-overwhelm.html +1374 -0
- package/.agents/skills/hyperframes-animation/examples/proof-logo-chain.html +861 -0
- package/.agents/skills/hyperframes-animation/examples/takeover-ticker-displace.html +347 -0
- package/.agents/skills/hyperframes-animation/examples/workflow-approve-press.html +606 -0
- package/.agents/skills/hyperframes-animation/rules/3d-page-scroll.md +227 -0
- package/.agents/skills/hyperframes-animation/rules/3d-text-depth-layers.md +297 -0
- package/.agents/skills/hyperframes-animation/rules/ai-tracking-box.md +382 -0
- package/.agents/skills/hyperframes-animation/rules/ambient-glow-bloom.md +305 -0
- package/.agents/skills/hyperframes-animation/rules/asr-keyword-glow.md +286 -0
- package/.agents/skills/hyperframes-animation/rules/avatar-cloud-network.md +371 -0
- package/.agents/skills/hyperframes-animation/rules/camera-cursor-tracking.md +246 -0
- package/.agents/skills/hyperframes-animation/rules/card-morph-anchor.md +267 -0
- package/.agents/skills/hyperframes-animation/rules/center-outward-expansion.md +227 -0
- package/.agents/skills/hyperframes-animation/rules/context-sensitive-cursor.md +257 -0
- package/.agents/skills/hyperframes-animation/rules/coordinate-target-zoom.md +332 -0
- package/.agents/skills/hyperframes-animation/rules/counting-dynamic-scale.md +283 -0
- package/.agents/skills/hyperframes-animation/rules/css-marker-patterns.md +373 -0
- package/.agents/skills/hyperframes-animation/rules/cursor-click-ripple.md +262 -0
- package/.agents/skills/hyperframes-animation/rules/depth-of-field-blur.md +313 -0
- package/.agents/skills/hyperframes-animation/rules/depth-scatter-assemble.md +303 -0
- package/.agents/skills/hyperframes-animation/rules/discrete-text-sequence.md +273 -0
- package/.agents/skills/hyperframes-animation/rules/dynamic-content-sequencing.md +307 -0
- package/.agents/skills/hyperframes-animation/rules/gsap-effects.md +299 -0
- package/.agents/skills/hyperframes-animation/rules/hacker-flip-3d.md +223 -0
- package/.agents/skills/hyperframes-animation/rules/kinetic-beat-slam.md +183 -0
- package/.agents/skills/hyperframes-animation/rules/motion-blur-streak.md +328 -0
- package/.agents/skills/hyperframes-animation/rules/multi-phase-camera.md +273 -0
- package/.agents/skills/hyperframes-animation/rules/orbit-3d-entry.md +301 -0
- package/.agents/skills/hyperframes-animation/rules/physics-press-reaction.md +350 -0
- package/.agents/skills/hyperframes-animation/rules/press-release-spring.md +296 -0
- package/.agents/skills/hyperframes-animation/rules/reactive-displacement.md +277 -0
- package/.agents/skills/hyperframes-animation/rules/scale-swap-transition.md +298 -0
- package/.agents/skills/hyperframes-animation/rules/sine-wave-loop.md +278 -0
- package/.agents/skills/hyperframes-animation/rules/split-tilt-cards.md +277 -0
- package/.agents/skills/hyperframes-animation/rules/spring-pop-entrance.md +273 -0
- package/.agents/skills/hyperframes-animation/rules/stat-bars-and-fills.md +156 -0
- package/.agents/skills/hyperframes-animation/rules/svg-icon-enrichment.md +329 -0
- package/.agents/skills/hyperframes-animation/rules/svg-path-draw.md +274 -0
- package/.agents/skills/hyperframes-animation/rules/vertical-spring-ticker.md +239 -0
- package/.agents/skills/hyperframes-animation/rules/viewport-change.md +349 -0
- package/.agents/skills/hyperframes-animation/rules-index.md +86 -0
- package/.agents/skills/hyperframes-animation/scripts/animation-map.mjs +606 -0
- package/.agents/skills/hyperframes-animation/scripts/package-loader.mjs +288 -0
- package/.agents/skills/hyperframes-animation/scripts/package-loader.test.mjs +62 -0
- package/.agents/skills/hyperframes-animation/techniques.md +507 -0
- package/.agents/skills/hyperframes-animation/transitions/TRANSITION-REGISTRY.md +167 -0
- package/.agents/skills/hyperframes-animation/transitions/catalog.md +127 -0
- package/.agents/skills/hyperframes-animation/transitions/css-3d.md +12 -0
- package/.agents/skills/hyperframes-animation/transitions/css-blur.md +51 -0
- package/.agents/skills/hyperframes-animation/transitions/css-cover.md +43 -0
- package/.agents/skills/hyperframes-animation/transitions/css-destruction.md +95 -0
- package/.agents/skills/hyperframes-animation/transitions/css-dissolve.md +66 -0
- package/.agents/skills/hyperframes-animation/transitions/css-distortion.md +45 -0
- package/.agents/skills/hyperframes-animation/transitions/css-grid.md +10 -0
- package/.agents/skills/hyperframes-animation/transitions/css-light.md +49 -0
- package/.agents/skills/hyperframes-animation/transitions/css-mechanical.md +30 -0
- package/.agents/skills/hyperframes-animation/transitions/css-other.md +25 -0
- package/.agents/skills/hyperframes-animation/transitions/css-push.md +41 -0
- package/.agents/skills/hyperframes-animation/transitions/css-radial.md +37 -0
- package/.agents/skills/hyperframes-animation/transitions/css-scale.md +24 -0
- package/.agents/skills/hyperframes-animation/transitions/overview.md +153 -0
- package/.agents/skills/hyperframes-cli/SKILL.md +113 -0
- package/.agents/skills/hyperframes-cli/references/doctor-browser.md +45 -0
- package/.agents/skills/hyperframes-cli/references/init-and-scaffold.md +55 -0
- package/.agents/skills/hyperframes-cli/references/lambda.md +132 -0
- package/.agents/skills/hyperframes-cli/references/lint-validate-inspect.md +121 -0
- package/.agents/skills/hyperframes-cli/references/preview-render.md +149 -0
- package/.agents/skills/hyperframes-cli/references/upgrade-info-misc.md +75 -0
- package/.agents/skills/hyperframes-core/SKILL.md +78 -0
- package/.agents/skills/hyperframes-core/references/composition-patterns.md +263 -0
- package/.agents/skills/hyperframes-core/references/data-attributes.md +70 -0
- package/.agents/skills/hyperframes-core/references/determinism-rules.md +68 -0
- package/.agents/skills/hyperframes-core/references/full-screen-motion.md +62 -0
- package/.agents/skills/hyperframes-core/references/minimal-composition.md +66 -0
- package/.agents/skills/hyperframes-core/references/script-format.md +49 -0
- package/.agents/skills/hyperframes-core/references/storyboard-format.md +95 -0
- package/.agents/skills/hyperframes-core/references/sub-compositions.md +237 -0
- package/.agents/skills/hyperframes-core/references/subagent-dispatch.md +41 -0
- package/.agents/skills/hyperframes-core/references/tailwind.md +125 -0
- package/.agents/skills/hyperframes-core/references/tracks-and-clips.md +76 -0
- package/.agents/skills/hyperframes-core/references/variables-and-media.md +90 -0
- package/.agents/skills/hyperframes-creative/SKILL.md +70 -0
- package/.agents/skills/hyperframes-creative/frame-presets/biennale-yellow/FRAME.md +289 -0
- package/.agents/skills/hyperframes-creative/frame-presets/biennale-yellow/caption-skin.html +221 -0
- package/.agents/skills/hyperframes-creative/frame-presets/biennale-yellow/frame-showcase.html +1214 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blockframe/FRAME.md +275 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blockframe/caption-skin.html +224 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blockframe/frame-showcase.html +1347 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blue-professional/FRAME.md +307 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blue-professional/caption-skin.html +223 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blue-professional/frame-showcase.html +1372 -0
- package/.agents/skills/hyperframes-creative/frame-presets/bold-poster/FRAME.md +275 -0
- package/.agents/skills/hyperframes-creative/frame-presets/bold-poster/caption-skin.html +230 -0
- package/.agents/skills/hyperframes-creative/frame-presets/bold-poster/frame-showcase.html +1140 -0
- package/.agents/skills/hyperframes-creative/frame-presets/broadside/FRAME.md +284 -0
- package/.agents/skills/hyperframes-creative/frame-presets/broadside/caption-skin.html +225 -0
- package/.agents/skills/hyperframes-creative/frame-presets/broadside/frame-showcase.html +1166 -0
- package/.agents/skills/hyperframes-creative/frame-presets/capsule/FRAME.md +284 -0
- package/.agents/skills/hyperframes-creative/frame-presets/capsule/caption-skin.html +224 -0
- package/.agents/skills/hyperframes-creative/frame-presets/capsule/frame-showcase.html +1465 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cartesian/FRAME.md +278 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cartesian/caption-skin.html +222 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cartesian/frame-showcase.html +1263 -0
- package/.agents/skills/hyperframes-creative/frame-presets/claude/FRAME.md +277 -0
- package/.agents/skills/hyperframes-creative/frame-presets/claude/caption-skin.html +224 -0
- package/.agents/skills/hyperframes-creative/frame-presets/claude/frame-showcase.html +1439 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cobalt-grid/FRAME.md +265 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cobalt-grid/caption-skin.html +238 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cobalt-grid/frame-showcase.html +1468 -0
- package/.agents/skills/hyperframes-creative/frame-presets/coral/FRAME.md +314 -0
- package/.agents/skills/hyperframes-creative/frame-presets/coral/caption-skin.html +226 -0
- package/.agents/skills/hyperframes-creative/frame-presets/coral/frame-showcase.html +1268 -0
- package/.agents/skills/hyperframes-creative/frame-presets/creative-mode/FRAME.md +333 -0
- package/.agents/skills/hyperframes-creative/frame-presets/creative-mode/caption-skin.html +227 -0
- package/.agents/skills/hyperframes-creative/frame-presets/creative-mode/frame-showcase.html +1330 -0
- package/.agents/skills/hyperframes-creative/frame-presets/daisy-days/FRAME.md +274 -0
- package/.agents/skills/hyperframes-creative/frame-presets/daisy-days/caption-skin.html +230 -0
- package/.agents/skills/hyperframes-creative/frame-presets/daisy-days/frame-showcase.html +1444 -0
- package/.agents/skills/hyperframes-creative/frame-presets/editorial-forest/FRAME.md +265 -0
- package/.agents/skills/hyperframes-creative/frame-presets/editorial-forest/caption-skin.html +223 -0
- package/.agents/skills/hyperframes-creative/frame-presets/editorial-forest/frame-showcase.html +1273 -0
- package/.agents/skills/hyperframes-creative/palettes/bold-energetic.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/clean-corporate.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/dark-premium.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/jewel-rich.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/monochrome.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/nature-earth.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/neon-electric.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/pastel-soft.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/warm-editorial.md +14 -0
- package/.agents/skills/hyperframes-creative/references/audio-reactive.md +76 -0
- package/.agents/skills/hyperframes-creative/references/beat-direction.md +164 -0
- package/.agents/skills/hyperframes-creative/references/composition-patterns.md +199 -0
- package/.agents/skills/hyperframes-creative/references/data-in-motion.md +19 -0
- package/.agents/skills/hyperframes-creative/references/design-adherence.md +19 -0
- package/.agents/skills/hyperframes-creative/references/design-picker.md +123 -0
- package/.agents/skills/hyperframes-creative/references/design-spec.md +55 -0
- package/.agents/skills/hyperframes-creative/references/house-style.md +73 -0
- package/.agents/skills/hyperframes-creative/references/motion-principles.md +150 -0
- package/.agents/skills/hyperframes-creative/references/narration.md +92 -0
- package/.agents/skills/hyperframes-creative/references/prompt-expansion.md +68 -0
- package/.agents/skills/hyperframes-creative/references/typography.md +218 -0
- package/.agents/skills/hyperframes-creative/references/video-composition.md +63 -0
- package/.agents/skills/hyperframes-creative/references/visual-styles.md +457 -0
- package/.agents/skills/hyperframes-creative/scripts/contrast-report.mjs +353 -0
- package/.agents/skills/hyperframes-creative/scripts/extract-audio-data.py +188 -0
- package/.agents/skills/hyperframes-creative/scripts/package-loader.mjs +288 -0
- package/.agents/skills/hyperframes-creative/scripts/package-loader.test.mjs +62 -0
- package/.agents/skills/hyperframes-creative/templates/design-picker.html +1432 -0
- package/.agents/skills/hyperframes-keyframes/SKILL.md +237 -0
- package/.agents/skills/hyperframes-keyframes/agents/openai.yaml +4 -0
- package/.agents/skills/hyperframes-keyframes/references/keyframe-patterns.md +106 -0
- package/.agents/skills/motion-graphics/SKILL.md +172 -0
- package/.agents/skills/motion-graphics/agents/builder.md +40 -0
- package/.agents/skills/motion-graphics/agents/director.md +53 -0
- package/.agents/skills/motion-graphics/agents/finalize.md +17 -0
- package/.agents/skills/motion-graphics/catalog-map.md +40 -0
- package/.agents/skills/motion-graphics/categories/asset-fusion/module.md +37 -0
- package/.agents/skills/motion-graphics/categories/charts/module.md +21 -0
- package/.agents/skills/motion-graphics/categories/kinetic-type/module.md +19 -0
- package/.agents/skills/motion-graphics/categories/logo-reveal/module.md +17 -0
- package/.agents/skills/motion-graphics/categories/lower-thirds/module.md +16 -0
- package/.agents/skills/motion-graphics/categories/maps/bake-basemap.mjs +273 -0
- package/.agents/skills/motion-graphics/categories/maps/module.md +61 -0
- package/.agents/skills/motion-graphics/categories/news/module.md +56 -0
- package/.agents/skills/motion-graphics/categories/stat/module.md +21 -0
- package/.agents/skills/motion-graphics/categories/tweet/module.md +16 -0
- package/.agents/skills/motion-graphics/categories/webpage/module.md +21 -0
- package/.agents/skills/motion-graphics/grounding/PROTOCOL.md +64 -0
- package/.agents/skills/motion-graphics/grounding/locate.mjs +227 -0
- package/.agents/skills/motion-graphics/phases/source/guide.md +21 -0
- package/.agents/skills/motion-graphics/references/builder-contract.md +38 -0
- package/.agents/skills/motion-graphics/references/motion-vocabulary.md +43 -0
- package/.agents/skills/motion-graphics/references/shot-plan-ir.md +54 -0
- package/.agents/skills/motion-graphics/samples/asset-fusion/_ref-circle-highlight.html +306 -0
- package/.agents/skills/product-launch-video/SKILL.md +208 -0
- package/.agents/skills/product-launch-video/references/cut-catalog.md +220 -0
- package/.agents/skills/product-launch-video/references/motion-language.md +156 -0
- package/.agents/skills/product-launch-video/references/story-design.md +373 -0
- package/.agents/skills/product-launch-video/references/visual-design.md +126 -0
- package/.agents/skills/product-launch-video/scripts/assemble-index.mjs +570 -0
- package/.agents/skills/product-launch-video/scripts/audio.mjs +260 -0
- package/.agents/skills/product-launch-video/scripts/build-frame.mjs +536 -0
- package/.agents/skills/product-launch-video/scripts/captions.mjs +508 -0
- package/.agents/skills/product-launch-video/scripts/lib/assets.mjs +55 -0
- package/.agents/skills/product-launch-video/scripts/lib/dimensions.mjs +45 -0
- package/.agents/skills/product-launch-video/scripts/lib/pad-frame-duration.mjs +36 -0
- package/.agents/skills/product-launch-video/scripts/lib/pad-frame-duration.test.mjs +76 -0
- package/.agents/skills/product-launch-video/scripts/lib/storyboard.mjs +249 -0
- package/.agents/skills/product-launch-video/scripts/lib/tokens.mjs +204 -0
- package/.agents/skills/product-launch-video/scripts/lib/transition-registry.mjs +38 -0
- package/.agents/skills/product-launch-video/scripts/lib/transitions.json +71 -0
- package/.agents/skills/product-launch-video/scripts/stage-assets.mjs +39 -0
- package/.agents/skills/product-launch-video/scripts/transitions.mjs +327 -0
- package/.agents/skills/product-launch-video/sub-agents/frame-worker.md +75 -0
- package/.agents/skills/slideshow/SKILL.md +550 -0
- package/.agents/skills/slideshow/references/standalone-harness.md +1020 -0
- package/.agents/skills/talking-head-recut/NOTICE.md +39 -0
- package/.agents/skills/talking-head-recut/SKILL.md +1195 -0
- package/.agents/skills/talking-head-recut/assets/vendor/gsap.min.js +10 -0
- package/.agents/skills/talking-head-recut/references/DESIGN_INDEX.md +145 -0
- package/.agents/skills/talking-head-recut/references/frames/clean.html +92 -0
- package/.agents/skills/talking-head-recut/references/frames/hairline.html +171 -0
- package/.agents/skills/talking-head-recut/references/frames/polaroid.html +131 -0
- package/.agents/skills/talking-head-recut/references/layouts/overlay.html +164 -0
- package/.agents/skills/talking-head-recut/references/layouts/pip.html +143 -0
- package/.agents/skills/talking-head-recut/references/layouts/split.html +121 -0
- package/.agents/skills/talking-head-recut/references/layouts/stack.html +109 -0
- package/.agents/skills/talking-head-recut/references/styles/academic.html +172 -0
- package/.agents/skills/talking-head-recut/references/styles/audit.html +170 -0
- package/.agents/skills/talking-head-recut/references/styles/editorial.html +189 -0
- package/.agents/skills/talking-head-recut/references/styles/geom.html +181 -0
- package/.agents/skills/talking-head-recut/references/styles/minimal.html +130 -0
- package/.agents/skills/talking-head-recut/references/styles/spotlight.html +142 -0
- package/.agents/skills/talking-head-recut/references/styles/swiss.html +188 -0
- package/.agents/skills/talking-head-recut/references/styles/terminal.html +196 -0
- package/.agents/skills/talking-head-recut/references/styles/whiteboard.html +170 -0
- package/.agents/skills/talking-head-recut/references/styles/xhs.html +206 -0
- package/.agents/skills/vidfarm-media/SKILL.md +85 -0
- package/.agents/skills/vidfarm-media/references/tts.md +54 -0
- package/.agents/skills/vidfarm-media/scripts/audio.mjs +628 -0
- package/.agents/skills/vidfarm-media/scripts/wait-bgm.mjs +31 -0
- package/.agents/skills/website-to-video/SKILL.md +145 -0
- package/.agents/skills/website-to-video/assets/sfx/CREDITS.md +35 -0
- package/.agents/skills/website-to-video/assets/sfx/manifest.json +97 -0
- package/.agents/skills/website-to-video/references/beat-builder-guide.md +263 -0
- package/.agents/skills/website-to-video/references/capabilities.md +713 -0
- package/.agents/skills/website-to-video/references/step-0-capture.md +55 -0
- package/.agents/skills/website-to-video/references/step-1-design.md +333 -0
- package/.agents/skills/website-to-video/references/step-2-brief.md +178 -0
- package/.agents/skills/website-to-video/references/step-3-storyboard.md +572 -0
- package/.agents/skills/website-to-video/references/step-4-vo.md +225 -0
- package/.agents/skills/website-to-video/references/step-5-build.md +483 -0
- package/.agents/skills/website-to-video/references/step-6-validate.md +341 -0
- package/.agents/skills/website-to-video/scripts/w2h-verify.mjs +759 -0
- package/SKILL.director.md +60 -4
- package/SKILL.platform.md +7 -2
- package/demo/dist/app.css +1 -1
- package/demo/dist/app.js +485 -86
- package/dist/src/account-pages-legacy.js +9 -14
- package/dist/src/app.js +659 -159
- package/dist/src/cli.js +618 -17
- package/dist/src/composition-runtime.js +286 -6
- package/dist/src/devcli/composition-edit.js +176 -8
- package/dist/src/devcli/doctor.js +192 -0
- package/dist/src/devcli/hyperframes-cli.js +118 -0
- package/dist/src/devcli/skills.js +476 -0
- package/dist/src/devcli/stills.js +249 -0
- package/dist/src/devcli/transitions.js +205 -0
- package/dist/src/editor-chat.js +260 -4
- package/dist/src/frontend/template-editor-chat.js +6 -5
- package/dist/src/homepage.js +2 -48
- package/dist/src/hyperframes/composition.js +188 -7
- package/dist/src/services/composition-lint.js +199 -0
- package/dist/src/services/hyperframes.js +127 -28
- package/dist/src/services/serverless-records.js +7 -0
- package/dist/src/template-editor-shell.js +87 -48
- package/package.json +2 -1
- package/public/assets/page-runtime-client-app.js +31 -31
|
@@ -0,0 +1,1195 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: talking-head-recut
|
|
3
|
+
description: Package an existing talking-head / interview / podcast video by layering timed, designed GRAPHIC OVERLAY cards onto the playing video — titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript. The source video plays in full; the agent designs and writes each card's HTML in conversation, then renders to MP4 via hyperframes. Use when the user asks for graphic overlays, on-screen graphics / lower-thirds / data callouts / kinetic titles on a video, "package / dress up my video", "add overlay cards / graphic cards", or AI-composed graphic packaging of an existing video. NOT for plain subtitles (→ embedded-captions) or building a video from scratch (→ the creation workflows); when unsure overlays-vs-captions, see /hyperframes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Talking Head Recut
|
|
7
|
+
|
|
8
|
+
Talking Head Recut takes a local video that **plays in full** and layers a sequence of
|
|
9
|
+
timed, designed **graphic cards** onto it — titles, lower-thirds, data callouts,
|
|
10
|
+
quotes, side panels, picture-in-picture — synced to what's being said. The agent
|
|
11
|
+
designs the cards (timing + content) and **writes each card's HTML directly in the
|
|
12
|
+
conversation**, then assembles a single composition HTML and renders it to MP4 via
|
|
13
|
+
`hyperframes`. There is no fixed archetype list and no prescribed card structure —
|
|
14
|
+
the overlays emerge from what the transcript actually says.
|
|
15
|
+
|
|
16
|
+
> **Confirm the route before you build.** This skill packages an **existing talking-head clip** with **designed graphic cards** (titles, lower-thirds, data callouts, quotes, side panels, PiP). If the user wants **plain captions / subtitles** (the spoken words as text) → `/embedded-captions`; a **single short unnarrated** element (one logo sting / lower-third) → `/motion-graphics`. **The clip plays untouched** — re-timing, recoloring, reframing, reordering, or audio is NLE editing and **out of scope**. Building from a URL / topic / PR → the creation workflows. Unsure overlays-vs-captions? **Read `/hyperframes` first.**
|
|
17
|
+
|
|
18
|
+
> **Graphic-packaging sibling of `embedded-captions`.** Captions add the _spoken words_
|
|
19
|
+
> as a readable subtitle; this adds _designed graphics_ on top of the playing video.
|
|
20
|
+
> Plain subtitles → `embedded-captions`. Build a video from scratch → the creation
|
|
21
|
+
> workflows (`product-launch-video` / `faceless-explainer` / …).
|
|
22
|
+
|
|
23
|
+
Inspectable intermediate files in the work directory:
|
|
24
|
+
|
|
25
|
+
- `metadata.json` — duration / width / height / fps
|
|
26
|
+
- `audio.mp3` — extracted audio
|
|
27
|
+
- `transcript.json` — a flat **word array** `[{ text, start, end }, …]` (Whisper; no `segments`, no `words` wrapper)
|
|
28
|
+
- `storyboard.json` — lightweight card outline (the agent's plan)
|
|
29
|
+
- `public/cards/card-XX.html` — one HTML fragment per card
|
|
30
|
+
- `public/index.html` — final assembled composition
|
|
31
|
+
- `output.mp4` — rendered video
|
|
32
|
+
|
|
33
|
+
## CLI Resolution
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# hyperframes — transcription (local Whisper) + rendering the assembled HTML to MP4
|
|
37
|
+
npx hyperframes --help
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
This skill runs entirely on the **hyperframes** CLI plus system `ffmpeg` / `ffprobe`.
|
|
41
|
+
Transcription is local **Whisper** via `hyperframes transcribe` — no third-party
|
|
42
|
+
service, API key, or rate-limited proxy.
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
### 1. Check Environment
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npx hyperframes doctor # ffmpeg, headless browser, render deps
|
|
50
|
+
# confirm bundled assets:
|
|
51
|
+
ls "<SKILL_DIR>/assets/fonts" "<SKILL_DIR>/assets/vendor/gsap.min.js"
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Required:
|
|
55
|
+
|
|
56
|
+
- `ffmpeg` / `ffprobe` (system)
|
|
57
|
+
- `<SKILL_DIR>/assets/fonts/*.woff2`, `<SKILL_DIR>/assets/vendor/gsap.min.js` (bundled inside this skill, staged to work dir in Step 9)
|
|
58
|
+
|
|
59
|
+
Transcription needs no key — `hyperframes transcribe` runs Whisper locally (Step 4).
|
|
60
|
+
|
|
61
|
+
Strongly recommended on macOS for `hyperframes render`:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
export PRODUCER_BROWSER_GPU_MODE=hardware
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 2. Create a Work Directory
|
|
68
|
+
|
|
69
|
+
All artifacts live under `videos/<project-name>/` — the same convention as the other
|
|
70
|
+
video workflows (`product-launch-video` / `faceless-explainer` / `pr-to-video`). Keep
|
|
71
|
+
the cwd at the workspace root; everything below writes under this one subdirectory.
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
VIDEO_PATH="/absolute/path/input.mp4"
|
|
75
|
+
WORK_DIR="videos/$(basename "$VIDEO_PATH" | sed 's/\.[^.]*$//')"
|
|
76
|
+
mkdir -p "$WORK_DIR"
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### 3. Extract Audio and Metadata
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# metadata — duration / width / height / fps
|
|
83
|
+
ffprobe -v error -select_streams v:0 \
|
|
84
|
+
-show_entries stream=width,height,r_frame_rate \
|
|
85
|
+
-show_entries format=duration -of json "$VIDEO_PATH" > "$WORK_DIR/metadata.json"
|
|
86
|
+
# audio
|
|
87
|
+
ffmpeg -y -i "$VIDEO_PATH" -vn -acodec libmp3lame -q:a 2 "$WORK_DIR/audio.mp3"
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Outputs: `metadata.json` (read `width`/`height`/`duration`; fps = the `r_frame_rate`
|
|
91
|
+
fraction evaluated, e.g. `30000/1001 → 29.97`) + `audio.mp3`.
|
|
92
|
+
|
|
93
|
+
### 4. Transcribe
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npx hyperframes transcribe "$WORK_DIR/audio.mp3" -d "$WORK_DIR" --json --model small.en
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Local **Whisper** — no API key, no proxy, no rate limit. Writes a word-level
|
|
100
|
+
`transcript.json` into the work dir (word `text` + `start` / `end` timestamps).
|
|
101
|
+
Read it for the word / sentence timings that drive card timing in Step 6; group
|
|
102
|
+
words into sentences yourself at punctuation / pauses if you need segment-level
|
|
103
|
+
chunks.
|
|
104
|
+
|
|
105
|
+
**Clamp to media duration.** Whisper can return the final word's `end` a hair past the
|
|
106
|
+
actual clip length — clamp every card `endSec` and `composition.durationSeconds` to the
|
|
107
|
+
`metadata.json` duration, or the render will show a black tail past the video.
|
|
108
|
+
|
|
109
|
+
### 5. Correct Transcript
|
|
110
|
+
|
|
111
|
+
`transcript.json` is a **flat array of word objects** — `[{ "text": "...", "start": s, "end": s }, …]` (no `segments` array, no `words` wrapper; the per-word key is **`text`**). Read it and fix obvious ASR errors:
|
|
112
|
+
|
|
113
|
+
- Homophones, product names, technical terms, punctuation
|
|
114
|
+
- Edit a word's `text` in place; **preserve its `start` / `end`** timestamps
|
|
115
|
+
- There is no pre-grouped `segments` array — **group words into sentences yourself** (split at terminal punctuation / pauses) when you need segment-level chunks for card timing
|
|
116
|
+
|
|
117
|
+
### 6. Draft a Lightweight Storyboard (in chat)
|
|
118
|
+
|
|
119
|
+
**No CLI involved.** Read `transcript.json` + `metadata.json` and design
|
|
120
|
+
cards directly. `storyboard.json` is an agent-internal planning artifact
|
|
121
|
+
— no CLI command consumes it; it exists so you can think clearly
|
|
122
|
+
about timing and content before writing each card's HTML. Keep the
|
|
123
|
+
shape consistent with the example below so the same outline can drive
|
|
124
|
+
the composition you author in Step 9:
|
|
125
|
+
|
|
126
|
+
```json
|
|
127
|
+
{
|
|
128
|
+
"schemaVersion": 3,
|
|
129
|
+
"composition": {
|
|
130
|
+
"fps": 30,
|
|
131
|
+
"width": 1080,
|
|
132
|
+
"height": 1920,
|
|
133
|
+
"durationSeconds": 121.2,
|
|
134
|
+
"layout": "portrait",
|
|
135
|
+
"themeId": "noir",
|
|
136
|
+
"seed": 42
|
|
137
|
+
},
|
|
138
|
+
"videoTrack": {
|
|
139
|
+
"sourcePath": "input-video.mp4",
|
|
140
|
+
"startSec": 0,
|
|
141
|
+
"endSec": 121.2,
|
|
142
|
+
"bounds": { "x": 0, "y": 0, "width": 1080, "height": 1920 }
|
|
143
|
+
},
|
|
144
|
+
"subtitles": { "enabled": false },
|
|
145
|
+
"cards": [
|
|
146
|
+
{
|
|
147
|
+
"id": "card-01",
|
|
148
|
+
"intent": "Hook with the speaker's anxious midnight question",
|
|
149
|
+
"startSec": 0.5,
|
|
150
|
+
"endSec": 13.0,
|
|
151
|
+
"accentIndex": 0,
|
|
152
|
+
"zone": "fullscreen",
|
|
153
|
+
"contentHints": {
|
|
154
|
+
"kicker": "AN HONEST QUESTION",
|
|
155
|
+
"title": "The soul-searching question at 11 PM",
|
|
156
|
+
"detail": "Client's 60-second voice message: 'If the RMB appreciates, does that mean my USD policy is a terrible loss?'"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Required Card fields:**
|
|
164
|
+
|
|
165
|
+
| field | type | purpose |
|
|
166
|
+
| ----------------------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------- |
|
|
167
|
+
| `id` | string | stable id used in card HTML & GSAP selectors |
|
|
168
|
+
| `intent` | string | natural-language description; fed to card synthesis |
|
|
169
|
+
| `startSec` / `endSec` | number | times in seconds (endSec > startSec) |
|
|
170
|
+
| `accentIndex` | 0 \| 1 \| 2 \| 3 \| 4 | which of the 5 theme accent colors this card pulls |
|
|
171
|
+
| `zone` | enum (see below) | where on the canvas the card lives |
|
|
172
|
+
| `contentHints` | object | free-form bag; agent puts kicker/title/detail/data/quote here |
|
|
173
|
+
| `archetype` (optional) | string | free-form label you may attach to remember a card's pattern; absent = free-form, which is the default |
|
|
174
|
+
| `transition` (optional) | enum: `cut` \| `fade` \| `slide` \| `wipe` | declarative card-to-card transition |
|
|
175
|
+
|
|
176
|
+
**Five `zone` values:**
|
|
177
|
+
|
|
178
|
+
| zone | resolved bounds | when to use |
|
|
179
|
+
| ----------------- | ---------------------------------------------- | --------------------------------------- |
|
|
180
|
+
| `fullscreen` | covers whole canvas | hero moments, big numbers, mantras |
|
|
181
|
+
| `whiteboard-area` | inset 40px margin (or 45% of portrait height) | dense data / annotated content |
|
|
182
|
+
| `lower-third` | bottom 30% band | annotation over visible video |
|
|
183
|
+
| `side-panel` | right 42% (landscape) or bottom 40% (portrait) | data side, video other side |
|
|
184
|
+
| `video-overlay` | full canvas, expects mostly-transparent card | annotation overlays on full-bleed video |
|
|
185
|
+
|
|
186
|
+
When you assemble the composition in Step 9, resolve each card's `zone`
|
|
187
|
+
into pixel bounds on the card-host wrapper following the table above.
|
|
188
|
+
Video bounds are set **once** at composition level (`videoTrack.bounds`);
|
|
189
|
+
to make video appear to "move between cards", author GSAP tweens against
|
|
190
|
+
`#video-wrap` in the composition's `<script>` (see Step 9).
|
|
191
|
+
|
|
192
|
+
**No prescribed card roles, no prescribed narrative arc.** Cards emerge
|
|
193
|
+
from what the video actually says — could be all quotes or all data,
|
|
194
|
+
could open with a number or with a story. Let the transcript drive the
|
|
195
|
+
rhythm.
|
|
196
|
+
|
|
197
|
+
**How many takeaways? — auto-infer from duration + density.** No fixed
|
|
198
|
+
upper limit. Pick a **base pace** from the video duration, then adjust
|
|
199
|
+
by **information density**. Only **floor is fixed: minimum 5 cards** so
|
|
200
|
+
even short videos have rhythm.
|
|
201
|
+
|
|
202
|
+
**Step 1 — base pace by duration** (the natural sec/card for medium density):
|
|
203
|
+
|
|
204
|
+
| video duration | base pace (sec per card) | rationale |
|
|
205
|
+
| ------------------ | ------------------------ | ------------------------------------------- |
|
|
206
|
+
| < 60s (short reel) | **6–8s** | viewers expect fast cuts in short-form |
|
|
207
|
+
| 60s – 3 min | **8–12s** | normal social pace |
|
|
208
|
+
| 3 – 10 min | **12–20s** | give breathing room; each card carries more |
|
|
209
|
+
| 10 – 30 min | **20–35s** | long-form lecture / interview rhythm |
|
|
210
|
+
| > 30 min | **30–60s** | episodic, near-chapter feel |
|
|
211
|
+
|
|
212
|
+
**Step 2 — density multiplier** (multiplies the base pace):
|
|
213
|
+
|
|
214
|
+
| signal in the transcript | multiplier | effect |
|
|
215
|
+
| --------------------------------------------------------------------------------------------------------------------------- | ---------- | ------------------------ |
|
|
216
|
+
| **High density** — many numbers, distinct claims, staccato pacing, list-like enumeration, every 1–2 sentences is a new idea | **× 0.7** | cuts faster, more cards |
|
|
217
|
+
| **Medium density** — mixed flow with both data and narrative | **× 1.0** | base pace |
|
|
218
|
+
| **Low density** — one extended story, repeated reframing, slow reflective pacing, single argument unfolding | **× 1.5** | cuts slower, fewer cards |
|
|
219
|
+
|
|
220
|
+
**Step 3 — compute:**
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
secPerCard = basePace × densityMultiplier
|
|
224
|
+
cardCount = max(5, round(videoDurationSec / secPerCard))
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
Examples (notice — **no upper clamp**; long videos naturally produce more cards):
|
|
228
|
+
|
|
229
|
+
- **30s reel, single punchline (low density)** → 7 × 1.5 = 10.5s/card → round(30/10.5)=3 → floor to **5** cards
|
|
230
|
+
- **60s reflective monologue (low density)** → 10 × 1.5 = 15s/card → **4** → floor to **5** cards
|
|
231
|
+
- **121s talking-head with rich data (high density)** → 10 × 0.7 = 7s/card → **17** cards
|
|
232
|
+
- **5 min interview, mixed density** → 16 × 1.0 = 16s/card → **19** cards
|
|
233
|
+
- **10 min deep-dive, high density** → 16 × 0.7 = 11s/card → **55** cards
|
|
234
|
+
- **30 min lecture, medium density** → 28 × 1.0 = 28s/card → **64** cards
|
|
235
|
+
- **1 hr podcast, low density** → 45 × 1.5 = 67.5s/card → **53** cards
|
|
236
|
+
|
|
237
|
+
When a card holds longer than ~15s, plan for a richer card (data block,
|
|
238
|
+
multi-step reveal, several sub-points unfolding with staggered
|
|
239
|
+
animations) — a static one-liner gets boring past 8s. For long pieces
|
|
240
|
+
where many cards exceed 30s, consider **chunking the timeline into
|
|
241
|
+
sub-compositions** (one .html per chapter, mounted with
|
|
242
|
+
`data-composition-src`) so the GSAP timeline per file stays manageable
|
|
243
|
+
— see the `timeline_track_too_dense` HyperFrames lint warning.
|
|
244
|
+
|
|
245
|
+
`content` can be a plain string ("Title: annualized 5.69%\nNotes: ...") or any JSON
|
|
246
|
+
shape that captures the data. The agent decides the shape per card.
|
|
247
|
+
|
|
248
|
+
**Optional outro.** This skill ships **no fixed brand outro**. If the user wants a closing card, design a neutral one yourself (wordmark + one-line tagline, ~1.5-2s, fade in -> short hold -> fade out), append it to `cards[]`, and extend `composition.durationSeconds` to its `endSec`. Otherwise end on the last content card.
|
|
249
|
+
|
|
250
|
+
### 7. Decide Render Strategy
|
|
251
|
+
|
|
252
|
+
#### Confirm Visual Direction with User (DO THIS FIRST)
|
|
253
|
+
|
|
254
|
+
Before you start designing cards or deciding bounds, **ask the user to
|
|
255
|
+
pick the output ratio, the layout, the style, and the card-density
|
|
256
|
+
preset**. Frames are auto-selected from the chosen layout × style
|
|
257
|
+
combination (see "Auto-pick frame" table below). Before sending the
|
|
258
|
+
question, **precompute two things**:
|
|
259
|
+
|
|
260
|
+
1. **`recommendedRatio`** from the source video's aspect ratio
|
|
261
|
+
(`metadata.json` width / height):
|
|
262
|
+
- `sourceAspect = width / height`
|
|
263
|
+
- `sourceAspect ≥ 1.5` (≥ ~3:2 wide) → recommend **`16:9`**
|
|
264
|
+
- `sourceAspect ≤ 0.7` (≤ ~9:13 tall) → recommend **`9:16`**
|
|
265
|
+
- `0.7 < sourceAspect < 1.5` (near-square) → recommend **`4:5`**
|
|
266
|
+
|
|
267
|
+
Mark the recommended option's label with " (recommended · matches source video X:Y)"
|
|
268
|
+
so the user sees why it's recommended.
|
|
269
|
+
|
|
270
|
+
2. **`autoCount`** from Step 6 (`max(5, round(videoSec / (basePace ×
|
|
271
|
+
densityMultiplier)))`) so the "auto" option's label can show the
|
|
272
|
+
concrete number.
|
|
273
|
+
|
|
274
|
+
**Environment compatibility — pick the best available question channel.**
|
|
275
|
+
Not every runtime exposes the same structured-question tool. Apply this
|
|
276
|
+
order:
|
|
277
|
+
|
|
278
|
+
1. **`AskUserQuestion`** (Claude Code, Anthropic Console) — use the
|
|
279
|
+
structured 4-question call below.
|
|
280
|
+
2. **Other native clarification tool** (e.g. `ask_question`,
|
|
281
|
+
`request_user_input`, IDE-specific prompt) — use that tool with the
|
|
282
|
+
same 4 question texts and option lists. Preserve the recommendation
|
|
283
|
+
markers and the precomputed values.
|
|
284
|
+
3. **No native tool** (Codex CLI, plain text-only runtimes) — **ask
|
|
285
|
+
directly in normal conversation**. Use the plain-text template at the
|
|
286
|
+
end of this section. Keep it to **one message, 4 numbered questions**
|
|
287
|
+
(the global cap is 2–5 questions per round; we stay inside it).
|
|
288
|
+
|
|
289
|
+
Rules that apply to every channel:
|
|
290
|
+
|
|
291
|
+
- Ask **at most 2–5 questions per round**. Our 4 here fits.
|
|
292
|
+
- Even if missing info doesn't block rendering, **ask once to confirm
|
|
293
|
+
the parameters that materially affect the final output** (ratio,
|
|
294
|
+
layout, style, cardCount).
|
|
295
|
+
- If the user has already pre-approved defaults ("just use defaults",
|
|
296
|
+
"no need to ask", "auto-pick everything") or asked you not to ask — **skip
|
|
297
|
+
the question entirely** and use: `recommendedRatio`, `layout="stack"`
|
|
298
|
+
(safest cross-ratio default), `style` chosen from transcript tone in
|
|
299
|
+
the most neutral group (editorial/data), `autoCount`. Tell the user
|
|
300
|
+
what you picked in one sentence and continue.
|
|
301
|
+
|
|
302
|
+
**Channel A — native `AskUserQuestion`:**
|
|
303
|
+
|
|
304
|
+
```
|
|
305
|
+
// Precompute before the call:
|
|
306
|
+
// recommendedRatio = "16:9" | "9:16" | "4:5"
|
|
307
|
+
// autoCount = integer (from Step 6)
|
|
308
|
+
|
|
309
|
+
AskUserQuestion({
|
|
310
|
+
questions: [
|
|
311
|
+
{
|
|
312
|
+
question: "Output video aspect ratio (canvas):",
|
|
313
|
+
header: "Aspect ratio",
|
|
314
|
+
multiSelect: false,
|
|
315
|
+
// Reorder so the recommended option appears FIRST (per AskUserQuestion convention).
|
|
316
|
+
// Append " (recommended · matches source video W×H)" to the recommended option's label.
|
|
317
|
+
options: [
|
|
318
|
+
{ label: "16:9 (1920×1080) landscape", description: "TV / YouTube / desktop playback. Most natural when the source video is already landscape; widest canvas." },
|
|
319
|
+
{ label: "9:16 (1080×1920) portrait", description: "TikTok / Reels / short-form mobile. Most natural for portrait source; native mobile experience." },
|
|
320
|
+
{ label: "4:5 (1080×1350) near-portrait", description: "Instagram feed / WeChat Moments. Best when source is near-square or you want to cover both platforms." }
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
question: "Choose the overall layout: how should the video and cards coexist on the canvas?",
|
|
325
|
+
header: "Layout",
|
|
326
|
+
multiSelect: false,
|
|
327
|
+
options: [
|
|
328
|
+
{ label: "side-by-side (split)", description: "Video and card each take half the canvas. Most stable for interview / data side-by-side; clear visual separation." },
|
|
329
|
+
{ label: "top-bottom (stack)", description: "Video on top (~52%), card below. Classic combo of speaker face + summary card; works well in portrait too." },
|
|
330
|
+
{ label: "picture-in-picture (pip)", description: "Card fills the canvas, video shrinks to a rounded corner window. Use when content is primary and speaker is secondary." },
|
|
331
|
+
{ label: "full-screen overlay (overlay)", description: "Video plays full-bleed, card floats as a glass layer on top. Strong cinematic / emotional feel." }
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
question: "Choose the card visual style (style):",
|
|
336
|
+
header: "Style group",
|
|
337
|
+
multiSelect: false,
|
|
338
|
+
// NOTE: these 3 groups intentionally match the frame auto-pick matrix
|
|
339
|
+
// rows below, so picking a group resolves both `style` group AND the
|
|
340
|
+
// frame matrix column in one step. Memberships are mutually exclusive.
|
|
341
|
+
options: [
|
|
342
|
+
{ label: "warm paper (warm-paper)", description: "academic notebook · editorial big-type · whiteboard hand-drawn · xhs social. Best for interview reflections, product launches, lifestyle, emotional stories." },
|
|
343
|
+
{ label: "clinical / cold (clinical)", description: "audit magazine · swiss grid · terminal CLI · minimal modern. Best for financial analysis, investigative reports, technical tutorials, serious presentations." },
|
|
344
|
+
{ label: "experimental / avant-garde (experimental)", description: "geom color-clash geometry · spotlight dark-background. Best for short-form highlights, product launches, strong emotion, cinematic feel." }
|
|
345
|
+
]
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
question: "Card count (takeaway pacing): how many cards to cut?",
|
|
349
|
+
header: "Card count",
|
|
350
|
+
multiSelect: false,
|
|
351
|
+
options: [
|
|
352
|
+
{ label: "Auto (recommended) · approx N cards", description: "Inferred automatically from video duration and information density (see Step 6 rules). This run estimates approx N cards. Substitute the real N (your autoCount) into the label." },
|
|
353
|
+
{ label: "Fewer · approx round(N × 0.6) cards", description: "Sparser cuts, each card holds longer — suits reflective / slow-paced content." },
|
|
354
|
+
{ label: "More · approx round(N × 1.5) cards", description: "Tighter cuts, faster rhythm — suits staccato / data-dense / short-form highlight content." }
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
]
|
|
358
|
+
})
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
**About "Other"** — `AskUserQuestion` automatically adds an "Other" option to the card count question. The user can type a number directly (e.g. "8", "20") as the cardCount target. Parse the input as an integer: if parsing succeeds → use that value (minimum 5 as a floor); if parsing fails → fall back to "auto".
|
|
362
|
+
|
|
363
|
+
**Channel B — plain-text fallback** (Codex CLI, runtimes without a
|
|
364
|
+
native question tool). Post this as one normal message, then wait for
|
|
365
|
+
the reply. Bullet-style 1/2/3/4 keeps the reply parseable:
|
|
366
|
+
|
|
367
|
+
```
|
|
368
|
+
I need to confirm four visual decisions with you before I start cutting cards:
|
|
369
|
+
|
|
370
|
+
1) Output aspect ratio (canvas):
|
|
371
|
+
A. 16:9 landscape (1920×1080) — TV / YouTube / desktop playback
|
|
372
|
+
B. 9:16 portrait (1080×1920) — TikTok / Reels / short-form mobile
|
|
373
|
+
C. 4:5 near-portrait (1080×1350) — Instagram feed / works for both platforms
|
|
374
|
+
▸ My recommendation: <recommendedRatio> (matches source video W×H = <sourceW>×<sourceH>)
|
|
375
|
+
|
|
376
|
+
2) Overall layout (how video & card coexist):
|
|
377
|
+
A. split side-by-side (50/50)
|
|
378
|
+
B. stack top-bottom (video top, card bottom)
|
|
379
|
+
C. pip picture-in-picture (card full canvas, video rounded corner window)
|
|
380
|
+
D. overlay full-screen glass overlay (video full-bleed, card glass layer)
|
|
381
|
+
|
|
382
|
+
3) Card style group (maps to frame auto-pick matrix, pick 1 of 3):
|
|
383
|
+
A. warm paper (warm-paper) (academic / editorial / whiteboard / xhs)
|
|
384
|
+
B. clinical / cold (clinical) (audit / swiss / terminal / minimal)
|
|
385
|
+
C. experimental (experimental) (geom / spotlight)
|
|
386
|
+
|
|
387
|
+
4) Card count (takeaway pacing):
|
|
388
|
+
A. Auto (recommended) — approx <autoCount> cards
|
|
389
|
+
B. Fewer — approx round(<autoCount> × 0.6) cards
|
|
390
|
+
C. More — approx round(<autoCount> × 1.5) cards
|
|
391
|
+
D. Give me a specific number (e.g. "8", "20")
|
|
392
|
+
|
|
393
|
+
Reply format: "1A 2C 3B 4A" or natural language is fine.
|
|
394
|
+
If you want all recommended defaults, reply "default" / "auto" / "use all recommendations".
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
Parsing the plain-text reply:
|
|
398
|
+
|
|
399
|
+
- Accept loose formats: `"1A 2C 3B 4A"`, `"A C B A"`, `"16:9 / pip /
|
|
400
|
+
data / auto"`, full sentences, or `default`.
|
|
401
|
+
- If any answer is ambiguous → re-ask only the ambiguous ones (still
|
|
402
|
+
inside the 2–5 cap).
|
|
403
|
+
- If the user says "default / auto / use all recommendations" → skip without re-asking.
|
|
404
|
+
|
|
405
|
+
After the user answers (any channel):
|
|
406
|
+
|
|
407
|
+
1. **Resolve the output canvas** from the ratio answer — these are the
|
|
408
|
+
exact `storyboard.composition.width / height` values to write:
|
|
409
|
+
|
|
410
|
+
| user choice | composition.width × height | storyboard.layout field |
|
|
411
|
+
| ----------- | -------------------------- | ------------------------------------------------------------- |
|
|
412
|
+
| `16:9` | **1920 × 1080** | `"landscape"` |
|
|
413
|
+
| `9:16` | **1080 × 1920** | `"portrait"` |
|
|
414
|
+
| `4:5` | **1080 × 1350** | `"portrait"` (schema treats 4:5 as portrait — height > width) |
|
|
415
|
+
|
|
416
|
+
For **4:5 bounds inside `references/layouts/*.html`** — those files
|
|
417
|
+
only document landscape (1920×1080) and portrait (1080×1920). For
|
|
418
|
+
4:5 (1080×1350) derive bounds by **proportional scaling from
|
|
419
|
+
portrait**: keep horizontal values, scale vertical values by
|
|
420
|
+
`1350/1920 ≈ 0.703`. Example: `overlay` portrait card =
|
|
421
|
+
`{ x: 24, y: 1280, w: 1032, h: 564 }` → 4:5 card =
|
|
422
|
+
`{ x: 24, y: round(1280 × 0.703), w: 1032, h: round(564 × 0.703) }`
|
|
423
|
+
= `{ x: 24, y: 900, w: 1032, h: 397 }`.
|
|
424
|
+
|
|
425
|
+
2. **Map the style group to a specific style** by looking at the
|
|
426
|
+
transcript tone — pick the one that best fits, but stay inside the
|
|
427
|
+
user's chosen group. If you're unsure between two specific styles
|
|
428
|
+
inside the group, send a second `AskUserQuestion` with those 2–4
|
|
429
|
+
specific style options.
|
|
430
|
+
|
|
431
|
+
3. **Resolve final cardCount** from the density answer:
|
|
432
|
+
|
|
433
|
+
| user choice | final cardCount |
|
|
434
|
+
| ----------------------- | ----------------------------------------- |
|
|
435
|
+
| Auto (recommended) | the `autoCount` you already computed |
|
|
436
|
+
| Fewer | `max(5, round(autoCount × 0.6))` |
|
|
437
|
+
| More | `round(autoCount × 1.5)` (no upper clamp) |
|
|
438
|
+
| Other = "<n>" (integer) | `max(5, parseInt(n))` |
|
|
439
|
+
| Other = anything else | fall back to `autoCount` |
|
|
440
|
+
|
|
441
|
+
4. **Auto-pick the video frame** from this table (frames don't ask the
|
|
442
|
+
user — they follow from layout × style):
|
|
443
|
+
|
|
444
|
+
| layout | warm-paper styles (academic / whiteboard / editorial / xhs) | clinical styles (audit / swiss / terminal / minimal) | experimental styles (geom / spotlight) |
|
|
445
|
+
| --------- | ----------------------------------------------------------- | ---------------------------------------------------- | -------------------------------------- |
|
|
446
|
+
| `split` | `polaroid` | `hairline` | `clean` |
|
|
447
|
+
| `stack` | `polaroid` | `hairline` | `clean` |
|
|
448
|
+
| `pip` | `clean` (pip pill already has chrome) | `clean` | `clean` |
|
|
449
|
+
| `overlay` | `clean` (full-bleed forbids deco frames) | `clean` | `clean` |
|
|
450
|
+
|
|
451
|
+
5. **Tell the user what you chose** in one sentence — ratio (+ canvas
|
|
452
|
+
size), layout, specific style, frame, and final cardCount — then
|
|
453
|
+
proceed with the rest of Step 7 (per-card layouts, motion patterns).
|
|
454
|
+
6. Record the five values (ratio / layout / style / frame / cardCount)
|
|
455
|
+
in working memory (no schema field needed); you'll reference them
|
|
456
|
+
while writing each card's HTML in Step 8 and while reading the
|
|
457
|
+
matching `references/<dim>/<key>.html` for tokens and structure.
|
|
458
|
+
|
|
459
|
+
If the user picks an answer via "Other" with a free-text style name not
|
|
460
|
+
in the 10-style library, treat it as a hint to design a fresh card
|
|
461
|
+
visual yourself, but still anchor on the chosen layout's bounds.
|
|
462
|
+
|
|
463
|
+
#### Render Strategy Inputs
|
|
464
|
+
|
|
465
|
+
With ratio / layout / style / cardCount / frame locked from Step 7.0,
|
|
466
|
+
the remaining per-card decisions are:
|
|
467
|
+
|
|
468
|
+
- **Source-video fit inside the GSAP target**: video element has
|
|
469
|
+
`object-fit: cover` and is clipped to `#video-wrap`'s tween bounds.
|
|
470
|
+
If you want NO cropping (e.g. portrait source on landscape canvas
|
|
471
|
+
shouldn't get its top/bottom chopped), aim the tween at a rect that
|
|
472
|
+
matches the source's aspect ratio and let surrounding canvas show
|
|
473
|
+
through (or fill with the card / a backdrop).
|
|
474
|
+
- **`card.zone` per card**: derive from your chosen composition layout
|
|
475
|
+
(split → side-panel, stack → lower-third, pip → fullscreen, overlay
|
|
476
|
+
→ video-overlay), OR pick a different zone for one-off variants
|
|
477
|
+
(fullscreen for hero / quote, whiteboard-area for dense data).
|
|
478
|
+
- **`accentIndex` per card**: each card pulls one of the 5 theme accent
|
|
479
|
+
colors. Vary across cards for rhythm; reuse the same index when two
|
|
480
|
+
cards belong to the same narrative beat.
|
|
481
|
+
- **Motion vocabulary**: pick 2–3 repeatable patterns from
|
|
482
|
+
`data-anim` kinds (see the table later) and stick to them so the
|
|
483
|
+
composition feels coherent.
|
|
484
|
+
|
|
485
|
+
Pick from these `themeId` palettes (use them as `--accent-N` /
|
|
486
|
+
`--bg` / `--text` CSS variables in your composition `<style>` block):
|
|
487
|
+
|
|
488
|
+
| themeId | accent palette (5 colors) | board bg | text |
|
|
489
|
+
| ------- | ----------------------------------------- | ----------------- | --------- |
|
|
490
|
+
| classic | `#1971c2 #e03131 #2f9e44 #e8590c #9c36b5` | `#FFF9E3` (paper) | `#1e1e1e` |
|
|
491
|
+
| noir | `#4cc9f0 #f72585 #4ade80 #fb923c #a78bfa` | `#1a1a1a` | `#f1f1f1` |
|
|
492
|
+
| mint | `#0077b6 #d62828 #2d6a4f #e76f51 #7209b7` | `#e8faf0` | `#1b4332` |
|
|
493
|
+
| craft | `#bf5700 #d62728 #6c757d #e9b54a #3d5a80` | `#f6efe1` | `#2d2d2d` |
|
|
494
|
+
| slate | `#0ea5e9 #ef4444 #22c55e #f97316 #a855f7` | `#1e293b` | `#f1f5f9` |
|
|
495
|
+
| mono | `#000 #555 #888 #aaa #ccc` | `#fff` | `#000` |
|
|
496
|
+
|
|
497
|
+
Available fonts (woff2 in `<SKILL_DIR>/assets/fonts/`, staged to work dir in Step 9): `Caveat` (handwriting),
|
|
498
|
+
`LXGW WenKai TC` (Chinese hand-script), `Inter` (modern sans), `Virgil`
|
|
499
|
+
(geometric hand). Reference via `@font-face` or `font-family` directly.
|
|
500
|
+
|
|
501
|
+
For inspiration on visual patterns, `<SKILL_DIR>/references/styles/`
|
|
502
|
+
ships 10 self-contained reference cards (academic / editorial / minimal
|
|
503
|
+
/ spotlight / geom / whiteboard / audit / terminal / swiss / xhs) that
|
|
504
|
+
you can copy as starting points — but **do not feel constrained to
|
|
505
|
+
match any of these**. Each card is your own design.
|
|
506
|
+
|
|
507
|
+
#### Visual Design Library (<SKILL_DIR>/references/)
|
|
508
|
+
|
|
509
|
+
Beyond the composition-level `themeId`, the skill ships a richer **reference
|
|
510
|
+
library** at `<SKILL_DIR>/references/` covering three **orthogonal**
|
|
511
|
+
visual dimensions you can freely mix:
|
|
512
|
+
|
|
513
|
+
```
|
|
514
|
+
Style × Layout × VideoFrame
|
|
515
|
+
(10) (4) (3)
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
| dimension | keys | what it decides |
|
|
519
|
+
| ---------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
|
520
|
+
| **style** | `academic` `editorial` `minimal` `spotlight` `geom` `whiteboard` `audit` `terminal` `swiss` `xhs` | the card's visual language — fonts, colors, ornament, layout-within-card |
|
|
521
|
+
| **layout** | `split` `stack` `pip` `overlay` | how the source video and the card share the canvas |
|
|
522
|
+
| **frame** | `clean` `hairline` `polaroid` | the decorative chrome around the video element |
|
|
523
|
+
|
|
524
|
+
Read `<SKILL_DIR>/references/DESIGN_INDEX.md`
|
|
525
|
+
for the full matrix and a loose decision guide (interview / product launch / data analysis /
|
|
526
|
+
social clip / technical tutorial / emotional story …). When you decide to use a specific
|
|
527
|
+
style / layout / frame, Read the corresponding file:
|
|
528
|
+
|
|
529
|
+
- `references/styles/<key>.html` — self-contained card fragment with that
|
|
530
|
+
style's CSS tokens (colors, fonts, padding, ornament) and a placeholder
|
|
531
|
+
takeaway. Copy the `.card[data-card-id="ref-<key>"]` style block, rename
|
|
532
|
+
the data-card-id to your card's id, swap the placeholder content for the
|
|
533
|
+
real takeaway, and you're done.
|
|
534
|
+
- `references/layouts/<key>.html` — exact `videoBounds` + `cardBounds` for
|
|
535
|
+
both landscape and portrait, with a copy-paste JSON snippet for
|
|
536
|
+
`storyboard.json`'s per-card `layout` field.
|
|
537
|
+
- `references/frames/<key>.html` — decorative HTML to add as a sibling of
|
|
538
|
+
`#video-wrap`, plus placement instructions for the composition CSS.
|
|
539
|
+
|
|
540
|
+
Pick `style × layout × frame` **per card** — you can change all three
|
|
541
|
+
between cards as long as the transitions read smoothly. A common rhythm:
|
|
542
|
+
open `editorial × overlay × clean`, switch to `audit × split × hairline`
|
|
543
|
+
for the data card, close on `whiteboard × pip × polaroid`.
|
|
544
|
+
|
|
545
|
+
The 10 styles are skill-side design tokens, **not composition-level themes** —
|
|
546
|
+
they don't need to be declared in `storyboard.composition`; they live
|
|
547
|
+
inside each card's HTML. The `themeId` field can still pick a
|
|
548
|
+
composition-level palette (table above) that controls page-body background
|
|
549
|
+
and video border chrome.
|
|
550
|
+
|
|
551
|
+
#### Layout Compositions (Card + Video)
|
|
552
|
+
|
|
553
|
+
Two coordinated decisions per card define how it shares the canvas with
|
|
554
|
+
the source video:
|
|
555
|
+
|
|
556
|
+
- **`card.zone`** (declared in `storyboard.json`) — one of the 5 schema
|
|
557
|
+
values; resolve it into pixel bounds (per the table in Step 6) when
|
|
558
|
+
you write the card-host wrapper's inline `style` in Step 9.
|
|
559
|
+
- **`#video-wrap` bounds at this card's time window** (declared
|
|
560
|
+
imperatively in the composition's GSAP timeline) — the agent tweens
|
|
561
|
+
`#video-wrap` to a target rect for each layout transition.
|
|
562
|
+
|
|
563
|
+
Schema does NOT store per-card video bounds. `videoTrack.bounds` is
|
|
564
|
+
**one-time** at composition level (defaults to full canvas). Video
|
|
565
|
+
"moving" between cards is purely a GSAP animation authored in
|
|
566
|
+
`index.html`. There is no `card.layout` field — earlier versions of this
|
|
567
|
+
doc invented one; the real schema only has `card.zone`.
|
|
568
|
+
|
|
569
|
+
**4 composition layouts** (from `references/layouts/`) — each is a
|
|
570
|
+
recipe pairing a `zone` with a `#video-wrap` tween target:
|
|
571
|
+
|
|
572
|
+
| composition layout | recommended `card.zone` | GSAP target for `#video-wrap` (landscape 1920×1080) | GSAP target for `#video-wrap` (portrait 1080×1920) | when to use |
|
|
573
|
+
| ------------------ | ----------------------- | ------------------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------- |
|
|
574
|
+
| `split` | `side-panel` | `{ left: 960, top: 0, width: 960, height: 1080 }` | `{ left: 0, top: 960, width: 1080, height: 960 }` (bottom half) | speaker + data side-by-side / 50:50 weight |
|
|
575
|
+
| `stack` | `lower-third` | `{ left: 14, top: 14, width: 1892, height: 548 }` (top 52%) | `{ left: 0, top: 0, width: 1080, height: 844 }` (top 44%) | speaker on top + summary card below |
|
|
576
|
+
| `pip` | `fullscreen` | `{ left: 1480, top: 760, width: 400, height: 300 }` + add `.framed` class | `{ left: 690, top: 28, width: 360, height: 203 }` + add `.framed` | content-heavy card + corner pip |
|
|
577
|
+
| `overlay` | `video-overlay` | `{ left: 0, top: 0, width: 1920, height: 1080 }` (full-bleed) | `{ left: 0, top: 0, width: 1080, height: 1920 }` | cinematic / dramatic / glass card on full video |
|
|
578
|
+
|
|
579
|
+
For 4:5 (1080×1350), scale portrait y/h values by `1350/1920 ≈ 0.703`
|
|
580
|
+
(see Step 7.0 Channel A / Channel B `recommendedRatio` resolution
|
|
581
|
+
table).
|
|
582
|
+
|
|
583
|
+
**Other zone values for one-off variants** (still uses `card.zone`; no
|
|
584
|
+
fake "layout" field):
|
|
585
|
+
|
|
586
|
+
| `zone` | resolved bounds | common use |
|
|
587
|
+
| ----------------- | ------------------------------------------------------ | ------------------------------------- |
|
|
588
|
+
| `fullscreen` | covers whole canvas | hero card, video tweens to hidden/pip |
|
|
589
|
+
| `whiteboard-area` | inset 40px margin (landscape) or bottom 45% (portrait) | dense data card, free margins |
|
|
590
|
+
| `lower-third` | bottom 30% band | talking-head annotation |
|
|
591
|
+
| `side-panel` | right 42% (landscape) or bottom 40% (portrait) | sidebar / "split" recipe |
|
|
592
|
+
| `video-overlay` | full canvas; expect transparent card root | glass overlay on full-bleed video |
|
|
593
|
+
|
|
594
|
+
You can mix recipes per card — choose `card.zone` based on what suits
|
|
595
|
+
the moment, then write the GSAP tween for `#video-wrap` between cards.
|
|
596
|
+
|
|
597
|
+
#### Storyboard Render Contract
|
|
598
|
+
|
|
599
|
+
`storyboard.json` is an agent-internal planning artifact — no CLI
|
|
600
|
+
command parses it. It exists to keep your timing and content decisions
|
|
601
|
+
explicit before you write each card's HTML. Stick to the v3-style
|
|
602
|
+
shape below so the same outline drives the composition you assemble in
|
|
603
|
+
Step 9.
|
|
604
|
+
|
|
605
|
+
Required structure (see Step 6 for the full example):
|
|
606
|
+
|
|
607
|
+
- `schemaVersion: 3`
|
|
608
|
+
- `composition: { fps, width, height, durationSeconds, layout, themeId, seed }` — note `durationSeconds`/`fps`/`themeId`/`layout` live **inside** `composition`, NOT at top level
|
|
609
|
+
- `videoTrack: { sourcePath, startSec, endSec, bounds? }` — video bounds default to full canvas
|
|
610
|
+
- `subtitles: { enabled, ... }`
|
|
611
|
+
- `cards[]` — each card has the 6 required fields: `id`, `intent`, `startSec`, `endSec`, `accentIndex`, `zone`, `contentHints`
|
|
612
|
+
|
|
613
|
+
Rules:
|
|
614
|
+
|
|
615
|
+
- Card times stay inside `composition.durationSeconds` and should not overlap unless intentional (use `data-track-index` to control z-order when they do).
|
|
616
|
+
- Visual details live in card HTML fragments (Step 8), NOT in `contentHints`. `contentHints` is your own structured prompt for designing the card; the rendered look is the HTML.
|
|
617
|
+
- Keep the storyboard shape stable — even though nothing parses it, you read it back while authoring Step 8/9, and consistency keeps card IDs and timing in sync.
|
|
618
|
+
- Agent-side decisions like "I picked overlay × geom × clean" do NOT belong in `storyboard.json` — keep them in working memory and use them when authoring card HTML + GSAP tweens.
|
|
619
|
+
|
|
620
|
+
**Transparent card backgrounds for cards that share canvas with video.**
|
|
621
|
+
When the GSAP tween leaves video visible behind/beside the card (overlay
|
|
622
|
+
recipe, pip recipe, or any `card.zone = 'lower-third' | 'video-overlay'`
|
|
623
|
+
moment), the card's `.root` MUST NOT paint a full opaque background —
|
|
624
|
+
otherwise it occludes the video. Two patterns:
|
|
625
|
+
|
|
626
|
+
```css
|
|
627
|
+
/* Pattern A: transparent root, page body provides the cream backdrop */
|
|
628
|
+
html,
|
|
629
|
+
body {
|
|
630
|
+
background: var(--bg);
|
|
631
|
+
}
|
|
632
|
+
.card[data-card-id="card-X"] .root {
|
|
633
|
+
background: transparent;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/* Pattern B: explicit per-card background ONLY for fullscreen cards */
|
|
637
|
+
.card[data-card-id="card-hero"] .root {
|
|
638
|
+
background: var(--bg);
|
|
639
|
+
}
|
|
640
|
+
.card[data-card-id="card-overlay"] .root {
|
|
641
|
+
background: transparent;
|
|
642
|
+
}
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
For `side-panel`-zone cards (split recipe), the card-host is already
|
|
646
|
+
only half the canvas, so an opaque card bg is fine — it only covers its
|
|
647
|
+
half.
|
|
648
|
+
|
|
649
|
+
### 8. Write Each Card's HTML
|
|
650
|
+
|
|
651
|
+
Create `$WORK_DIR/public/cards/{card-id}.html` for each card. Each file
|
|
652
|
+
contains a single rooted HTML fragment that follows this contract:
|
|
653
|
+
|
|
654
|
+
#### Card HTML Contract
|
|
655
|
+
|
|
656
|
+
```html
|
|
657
|
+
<div class="card" data-card-id="{cardId}">
|
|
658
|
+
<style>
|
|
659
|
+
/* MUST: every rule starts with .card[data-card-id="{cardId}"] */
|
|
660
|
+
.card[data-card-id="card-01"] .root {
|
|
661
|
+
width: 100%; height: 100%;
|
|
662
|
+
display: flex; ...;
|
|
663
|
+
font-family: 'Caveat', 'LXGW WenKai TC', serif;
|
|
664
|
+
color: var(--text);
|
|
665
|
+
background: var(--bg);
|
|
666
|
+
}
|
|
667
|
+
.card[data-card-id="card-01"] .title { font-size: 84px; ... }
|
|
668
|
+
</style>
|
|
669
|
+
|
|
670
|
+
<div class="root">
|
|
671
|
+
<h1
|
|
672
|
+
id="card-01-title"
|
|
673
|
+
data-anim="kinetic-chars"
|
|
674
|
+
data-anim-at="0.3"
|
|
675
|
+
data-anim-duration="0.5"
|
|
676
|
+
data-anim-stagger="0.04"
|
|
677
|
+
data-anim-pattern="pop"
|
|
678
|
+
>
|
|
679
|
+
<span class="char">S</span>
|
|
680
|
+
<span class="char">u</span>
|
|
681
|
+
</h1>
|
|
682
|
+
<div
|
|
683
|
+
id="card-01-line"
|
|
684
|
+
data-anim="grow-x"
|
|
685
|
+
data-anim-at="0.65"
|
|
686
|
+
data-anim-duration="0.5"
|
|
687
|
+
data-anim-target-w="420"
|
|
688
|
+
style="width:0;height:8px;background:var(--accent-0);border-radius:4px;"
|
|
689
|
+
></div>
|
|
690
|
+
</div>
|
|
691
|
+
</div>
|
|
692
|
+
```
|
|
693
|
+
|
|
694
|
+
**Hard rules** (`hyperframes` lint will reject violations):
|
|
695
|
+
|
|
696
|
+
- Single root `<div class="card" data-card-id="{cardId}">`
|
|
697
|
+
- Inline `<style>` rules MUST be prefixed with the scope selector above
|
|
698
|
+
- **No `<script>` tags**
|
|
699
|
+
- **No external URLs** in `src=` / `href=` (no CDN, no remote fonts)
|
|
700
|
+
- **No inline event handlers** (`onclick=` etc.)
|
|
701
|
+
- All assets via relative paths into the same `public/` directory
|
|
702
|
+
- Colors via `var(--accent-N)` etc. for portability across themes
|
|
703
|
+
|
|
704
|
+
**Animations are declared, not coded.** Use `data-anim-*` attributes
|
|
705
|
+
only; never write `<script>` to animate. You compile every `data-anim-*`
|
|
706
|
+
declaration into the single master GSAP timeline in Step 9.
|
|
707
|
+
|
|
708
|
+
#### Card Sizing — Mobile-First in Portrait
|
|
709
|
+
|
|
710
|
+
The 10 `references/styles/*.html` are sized for a **1920×1080 landscape**
|
|
711
|
+
preview. When `storyboard.layout = "portrait"` (1080×1920, the dominant
|
|
712
|
+
case for social / mobile), **scale every visual size up** — phones hold
|
|
713
|
+
the screen close, and the same pixel count reads smaller than on a
|
|
714
|
+
landscape TV-style canvas.
|
|
715
|
+
|
|
716
|
+
| token | landscape baseline | **portrait target** | scale |
|
|
717
|
+
| ------------------------- | ------------------ | ------------------- | ------------- |
|
|
718
|
+
| title (h1/h2 hero) | 64–96px | **88–132px** | ×1.35 |
|
|
719
|
+
| detail / body | 24–30px | **30–40px** | ×1.30 |
|
|
720
|
+
| kicker / chip label | 14–16px | **18–22px** | ×1.30 |
|
|
721
|
+
| timecode / meta | 12–14px | **16–18px** | ×1.30 |
|
|
722
|
+
| data block primary number | 48–60px | **64–88px** | ×1.40 |
|
|
723
|
+
| line-height multiplier | 1.05–1.5 | same | (don't scale) |
|
|
724
|
+
|
|
725
|
+
**Rule of thumb:** `portraitPx = round(landscapePx × 1.3)`, then floor
|
|
726
|
+
to a nearby 4px multiple for visual rhythm. Hero headlines may go up to
|
|
727
|
+
×1.4; small meta text stays at ×1.2 to avoid crowding.
|
|
728
|
+
|
|
729
|
+
Padding **shrinks slightly** in portrait — the card is narrower so big
|
|
730
|
+
landscape padding (40–64px) eats too much width. Use 24–36px horizontal
|
|
731
|
+
padding in portrait.
|
|
732
|
+
|
|
733
|
+
If you're producing a single card that must work in **both** layouts,
|
|
734
|
+
prefer a `@container` query on the card root over hard-coding sizes:
|
|
735
|
+
|
|
736
|
+
```css
|
|
737
|
+
.card[data-card-id="X"] .root {
|
|
738
|
+
container-type: inline-size;
|
|
739
|
+
}
|
|
740
|
+
.card[data-card-id="X"] .title {
|
|
741
|
+
font-size: clamp(64px, 8.5cqi, 132px);
|
|
742
|
+
}
|
|
743
|
+
.card[data-card-id="X"] .detail {
|
|
744
|
+
font-size: clamp(24px, 3.2cqi, 40px);
|
|
745
|
+
}
|
|
746
|
+
```
|
|
747
|
+
|
|
748
|
+
But for most cards, a single layout choice is fine — just pick the size
|
|
749
|
+
table column that matches the storyboard's `layout` field.
|
|
750
|
+
|
|
751
|
+
#### Available `data-anim` Kinds
|
|
752
|
+
|
|
753
|
+
| kind | use for | key params |
|
|
754
|
+
| --------------- | ------------------- | ----------------------------------------------------------------------------------------------- |
|
|
755
|
+
| `fade-in` | enter | `at`, `duration`, `ease?` |
|
|
756
|
+
| `fade-out` | exit | `at`, `duration`, `ease?` |
|
|
757
|
+
| `slide-in` | slide enter | `at`, `duration`, `from=left\|right\|top\|bottom`, `distance` |
|
|
758
|
+
| `kinetic-chars` | per-char pop | `at`, `duration`, `stagger`, `pattern=pop\|fade` — element needs `<span class="char">` children |
|
|
759
|
+
| `typewriter` | per-char fade | same as kinetic-chars but slower default stagger |
|
|
760
|
+
| `count-up` | animate number | `at`, `duration`, `from`, `to`, `format=.0f\|.1f\|.2f\|,d` |
|
|
761
|
+
| `draw-path` | SVG path reveal | `at`, `duration` — element should be a `<path>` |
|
|
762
|
+
| `grow-y` | bar height | `at`, `duration`, `target-h` (px) — element starts `height:0` |
|
|
763
|
+
| `grow-x` | bar width | `at`, `duration`, `target-w` (px) — element starts `width:0` |
|
|
764
|
+
| `scale-pop` | pop entrance | `at`, `duration` |
|
|
765
|
+
| `blur-in` | unfocused → focused | `at`, `duration` |
|
|
766
|
+
| `mask-reveal` | clip reveal | `at`, `duration`, `direction=left\|right\|top\|bottom` |
|
|
767
|
+
| `morph-to` | tween any CSS | `at`, `duration`, `props='{...JSON...}'` |
|
|
768
|
+
|
|
769
|
+
`data-anim-at` is **seconds relative to the card's startSec** — when you
|
|
770
|
+
compile each declaration into the GSAP timeline in Step 9, add the
|
|
771
|
+
card's `startSec` to get the absolute time and quantize to 1/fps.
|
|
772
|
+
|
|
773
|
+
### 9. Assemble the Composition HTML
|
|
774
|
+
|
|
775
|
+
Stage the assets and write `$WORK_DIR/public/index.html`:
|
|
776
|
+
|
|
777
|
+
```bash
|
|
778
|
+
# SKILL_DIR is injected by the host ("Base directory for this skill: …")
|
|
779
|
+
SKILL_DIR="<SKILL_DIR>"
|
|
780
|
+
|
|
781
|
+
mkdir -p "$WORK_DIR/public/fonts" "$WORK_DIR/public/vendor" "$WORK_DIR/public/cards"
|
|
782
|
+
cp -n "$SKILL_DIR/assets/fonts/"* "$WORK_DIR/public/fonts/"
|
|
783
|
+
cp -n "$SKILL_DIR/assets/vendor/gsap.min.js" "$WORK_DIR/public/vendor/"
|
|
784
|
+
# stage the input video — RE-ENCODE with dense keyframes. Sources with a sparse GOP
|
|
785
|
+
# (keyframe interval > ~1s) freeze on seek in the renderer (a frozen frame under the
|
|
786
|
+
# overlays); -g / -keyint_min set to your composition fps make every frame seekable.
|
|
787
|
+
# (Set both to your fps — 30 shown; use 24/25/60 to match.)
|
|
788
|
+
ffmpeg -y -i "$VIDEO_PATH" -c:v libx264 -crf 18 -g 30 -keyint_min 30 \
|
|
789
|
+
-pix_fmt yuv420p -movflags +faststart -c:a aac "$WORK_DIR/public/input-video.mp4"
|
|
790
|
+
```
|
|
791
|
+
|
|
792
|
+
#### Composition Template
|
|
793
|
+
|
|
794
|
+
```html
|
|
795
|
+
<!doctype html>
|
|
796
|
+
<html lang="en">
|
|
797
|
+
<head>
|
|
798
|
+
<meta charset="utf-8" />
|
|
799
|
+
<style>
|
|
800
|
+
@font-face {
|
|
801
|
+
font-family: "Caveat";
|
|
802
|
+
src: url("fonts/Caveat-400-latin.woff2") format("woff2");
|
|
803
|
+
font-weight: 400;
|
|
804
|
+
font-display: block;
|
|
805
|
+
}
|
|
806
|
+
@font-face {
|
|
807
|
+
font-family: "Caveat";
|
|
808
|
+
src: url("fonts/Caveat-700-latin.woff2") format("woff2");
|
|
809
|
+
font-weight: 700;
|
|
810
|
+
font-display: block;
|
|
811
|
+
}
|
|
812
|
+
@font-face {
|
|
813
|
+
font-family: "LXGW WenKai TC";
|
|
814
|
+
src: url("fonts/LXGWWenKaiTC-400-latin.woff2") format("woff2");
|
|
815
|
+
font-weight: 400;
|
|
816
|
+
font-display: block;
|
|
817
|
+
}
|
|
818
|
+
@font-face {
|
|
819
|
+
font-family: "Inter";
|
|
820
|
+
src: url("fonts/Inter-400-latin.woff2") format("woff2");
|
|
821
|
+
font-weight: 400;
|
|
822
|
+
font-display: block;
|
|
823
|
+
}
|
|
824
|
+
@font-face {
|
|
825
|
+
font-family: "Inter";
|
|
826
|
+
src: url("fonts/Inter-700-latin.woff2") format("woff2");
|
|
827
|
+
font-weight: 700;
|
|
828
|
+
font-display: block;
|
|
829
|
+
}
|
|
830
|
+
@font-face {
|
|
831
|
+
font-family: "Virgil";
|
|
832
|
+
src: url("fonts/Virgil.woff2") format("woff2");
|
|
833
|
+
font-display: block;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
:root {
|
|
837
|
+
/* Pick from the themeId palette table in Step 7 — example: classic */
|
|
838
|
+
--bg: #fff9e3;
|
|
839
|
+
--text: #1e1e1e;
|
|
840
|
+
--accent-0: #1971c2;
|
|
841
|
+
--accent-1: #e03131;
|
|
842
|
+
--accent-2: #2f9e44;
|
|
843
|
+
--accent-3: #e8590c;
|
|
844
|
+
--accent-4: #9c36b5;
|
|
845
|
+
--font-family: "Caveat", "LXGW WenKai TC", serif;
|
|
846
|
+
}
|
|
847
|
+
* {
|
|
848
|
+
box-sizing: border-box;
|
|
849
|
+
}
|
|
850
|
+
/* Body font-family MUST list concrete font names (not just var(--font-family)) —
|
|
851
|
+
the HyperFrames renderer's static analyzer doesn't expand CSS variables when
|
|
852
|
+
resolving fonts, so a var-only chain triggers `font_family_without_font_face`
|
|
853
|
+
lint and falls back to a generic. Use the concrete chain here; cards that
|
|
854
|
+
want the theme font can still reference var(--font-family) internally. */
|
|
855
|
+
html,
|
|
856
|
+
body {
|
|
857
|
+
margin: 0;
|
|
858
|
+
padding: 0;
|
|
859
|
+
width: 100%;
|
|
860
|
+
height: 100%;
|
|
861
|
+
overflow: hidden;
|
|
862
|
+
background: #000;
|
|
863
|
+
font-family: "Inter", "Caveat", "LXGW WenKai TC", ui-sans-serif, system-ui, sans-serif;
|
|
864
|
+
}
|
|
865
|
+
#stage {
|
|
866
|
+
position: relative;
|
|
867
|
+
width: 100%;
|
|
868
|
+
height: 100%;
|
|
869
|
+
overflow: hidden;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/* video-wrapper holds the source video. Its position / size are animated
|
|
873
|
+
over time by the master timeline (one tween per layout transition). */
|
|
874
|
+
.video-wrapper {
|
|
875
|
+
position: absolute;
|
|
876
|
+
left: 0;
|
|
877
|
+
top: 0;
|
|
878
|
+
width: 1920px;
|
|
879
|
+
height: 1080px;
|
|
880
|
+
overflow: hidden;
|
|
881
|
+
border-radius: 0;
|
|
882
|
+
box-shadow: none;
|
|
883
|
+
}
|
|
884
|
+
.video-wrapper video {
|
|
885
|
+
width: 100%;
|
|
886
|
+
height: 100%;
|
|
887
|
+
object-fit: cover;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
.card-host {
|
|
891
|
+
position: absolute;
|
|
892
|
+
pointer-events: none;
|
|
893
|
+
overflow: hidden;
|
|
894
|
+
}
|
|
895
|
+
.card-host .card {
|
|
896
|
+
position: relative;
|
|
897
|
+
width: 100%;
|
|
898
|
+
height: 100%;
|
|
899
|
+
overflow: hidden;
|
|
900
|
+
}
|
|
901
|
+
.card-host .char {
|
|
902
|
+
display: inline-block;
|
|
903
|
+
visibility: visible;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
/* Subtle drop shadow + rounded corners for non-fullscreen video framings */
|
|
907
|
+
.video-wrapper.framed {
|
|
908
|
+
border-radius: 16px;
|
|
909
|
+
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
|
|
910
|
+
}
|
|
911
|
+
</style>
|
|
912
|
+
</head>
|
|
913
|
+
<body>
|
|
914
|
+
<div
|
|
915
|
+
id="stage"
|
|
916
|
+
data-composition-id="talking-head-recut"
|
|
917
|
+
data-start="0"
|
|
918
|
+
data-duration="121.2"
|
|
919
|
+
data-fps="30"
|
|
920
|
+
data-width="1920"
|
|
921
|
+
data-height="1080"
|
|
922
|
+
>
|
|
923
|
+
<!-- Layer 1: source video — initial position matches card-01's layout -->
|
|
924
|
+
<div class="video-wrapper" id="video-wrap">
|
|
925
|
+
<video
|
|
926
|
+
id="bg-video"
|
|
927
|
+
src="input-video.mp4"
|
|
928
|
+
muted
|
|
929
|
+
playsinline
|
|
930
|
+
data-start="0"
|
|
931
|
+
data-duration="121.2"
|
|
932
|
+
data-track-index="1"
|
|
933
|
+
></video>
|
|
934
|
+
</div>
|
|
935
|
+
|
|
936
|
+
<!-- Layer 2: each card-host sits at the bounds dictated by its layout. -->
|
|
937
|
+
<!-- IMPORTANT: every card-host MUST carry BOTH "card-host" and "clip" classes. -->
|
|
938
|
+
<!-- - "card-host" → our positioning + pointer-events styles -->
|
|
939
|
+
<!-- - "clip" → HyperFrames runtime uses this to enforce visibility -->
|
|
940
|
+
<!-- only during data-start … data-start+data-duration. -->
|
|
941
|
+
<!-- Without "clip" the host stays visible the whole video -->
|
|
942
|
+
<!-- (lint: timed_element_missing_clip_class). -->
|
|
943
|
+
<!-- Example: card-01 with zone="fullscreen" → card-host covers (0,0,1920,1080) -->
|
|
944
|
+
<div
|
|
945
|
+
class="card-host clip"
|
|
946
|
+
data-card-id="card-01"
|
|
947
|
+
data-start="1.0000"
|
|
948
|
+
data-duration="6.5000"
|
|
949
|
+
data-track-index="2"
|
|
950
|
+
style="left:0;top:0;width:1920px;height:1080px;visibility:hidden;opacity:0;"
|
|
951
|
+
>
|
|
952
|
+
<!-- paste the contents of public/cards/card-01.html here -->
|
|
953
|
+
</div>
|
|
954
|
+
|
|
955
|
+
<!-- Example: card-02 with zone="side-panel" (split composition layout) → card on left half -->
|
|
956
|
+
<div
|
|
957
|
+
class="card-host clip"
|
|
958
|
+
data-card-id="card-02"
|
|
959
|
+
data-start="8.0000"
|
|
960
|
+
data-duration="12.0000"
|
|
961
|
+
data-track-index="2"
|
|
962
|
+
style="left:0;top:0;width:960px;height:1080px;visibility:hidden;opacity:0;"
|
|
963
|
+
>
|
|
964
|
+
<!-- card-02 HTML -->
|
|
965
|
+
</div>
|
|
966
|
+
|
|
967
|
+
<!-- ...one "card-host clip" per card with inline bounds matching resolveZoneBounds(card.zone)... -->
|
|
968
|
+
|
|
969
|
+
<script src="vendor/gsap.min.js"></script>
|
|
970
|
+
<script>
|
|
971
|
+
(function () {
|
|
972
|
+
// count-up formatter helper
|
|
973
|
+
window.__fmt = function (v, fmt) {
|
|
974
|
+
if (typeof fmt === "string" && /^\.[0-9]+f$/.test(fmt)) {
|
|
975
|
+
return Number(v).toFixed(Number(fmt.slice(1, -1)));
|
|
976
|
+
}
|
|
977
|
+
if (fmt === ",d") return Math.round(v).toLocaleString();
|
|
978
|
+
return String(Math.round(v));
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
const tl = window.gsap.timeline({ paused: true });
|
|
982
|
+
|
|
983
|
+
// ── Card lifecycle (one block per card) ──
|
|
984
|
+
// Example for card-01 [1.0, 7.5] with kinetic-chars at +0.3, grow-x at +0.65:
|
|
985
|
+
|
|
986
|
+
// Enter (fade in over 0.4s)
|
|
987
|
+
tl.set('.card-host[data-card-id="card-01"]', { visibility: "visible" }, 1.0);
|
|
988
|
+
tl.fromTo(
|
|
989
|
+
'.card-host[data-card-id="card-01"]',
|
|
990
|
+
{ opacity: 0 },
|
|
991
|
+
{ opacity: 1, duration: 0.4, ease: "power2.out" },
|
|
992
|
+
1.0,
|
|
993
|
+
);
|
|
994
|
+
|
|
995
|
+
// Card-internal anims (compile each data-anim-* declaration here)
|
|
996
|
+
tl.from(
|
|
997
|
+
'.card[data-card-id="card-01"] #card-01-title .char',
|
|
998
|
+
{ opacity: 0, y: 8, scale: 0.8, duration: 0.5, ease: "power2.out", stagger: 0.04 },
|
|
999
|
+
1.3,
|
|
1000
|
+
);
|
|
1001
|
+
tl.fromTo(
|
|
1002
|
+
'.card[data-card-id="card-01"] #card-01-line',
|
|
1003
|
+
{ width: 0 },
|
|
1004
|
+
{ width: 420, duration: 0.5, ease: "power2.out" },
|
|
1005
|
+
1.65,
|
|
1006
|
+
);
|
|
1007
|
+
|
|
1008
|
+
// Exit (fade out over 0.35s, ending at endSec)
|
|
1009
|
+
tl.to(
|
|
1010
|
+
'.card-host[data-card-id="card-01"]',
|
|
1011
|
+
{ opacity: 0, duration: 0.35, ease: "power2.in" },
|
|
1012
|
+
7.15,
|
|
1013
|
+
);
|
|
1014
|
+
tl.set('.card-host[data-card-id="card-01"]', { visibility: "hidden" }, 7.5);
|
|
1015
|
+
|
|
1016
|
+
// ── Video framing transitions ──
|
|
1017
|
+
// When the next card uses a different composition layout, animate the
|
|
1018
|
+
// video-wrapper to its new bounds. Example: card-01 = fullscreen
|
|
1019
|
+
// (video hidden behind), card-02 = split composition (zone="side-panel"
|
|
1020
|
+
// → video on right, card on left).
|
|
1021
|
+
|
|
1022
|
+
// Card-02 enters at 8.0s with the split composition. Animate video to
|
|
1023
|
+
// the right half during the card-01 → card-02 gap (between 7.5 and 8.0s).
|
|
1024
|
+
tl.set("#video-wrap", { className: "video-wrapper framed" }, 7.5);
|
|
1025
|
+
tl.to(
|
|
1026
|
+
"#video-wrap",
|
|
1027
|
+
{ left: 960, top: 0, width: 960, height: 1080, duration: 0.6, ease: "power2.inOut" },
|
|
1028
|
+
7.5,
|
|
1029
|
+
);
|
|
1030
|
+
|
|
1031
|
+
// Card-02 enter — same pattern as card-01
|
|
1032
|
+
tl.set('.card-host[data-card-id="card-02"]', { visibility: "visible" }, 8.0);
|
|
1033
|
+
tl.fromTo(
|
|
1034
|
+
'.card-host[data-card-id="card-02"]',
|
|
1035
|
+
{ opacity: 0 },
|
|
1036
|
+
{ opacity: 1, duration: 0.4, ease: "power2.out" },
|
|
1037
|
+
8.0,
|
|
1038
|
+
);
|
|
1039
|
+
// ...card-02 internal anims...
|
|
1040
|
+
|
|
1041
|
+
// ── repeat for each card; if the NEXT card's layout differs,
|
|
1042
|
+
// insert another tl.to('#video-wrap', ...) tween before its enter ──
|
|
1043
|
+
|
|
1044
|
+
window.__timelines = window.__timelines || {};
|
|
1045
|
+
window.__timelines["talking-head-recut"] = tl;
|
|
1046
|
+
})();
|
|
1047
|
+
</script>
|
|
1048
|
+
</div>
|
|
1049
|
+
</body>
|
|
1050
|
+
</html>
|
|
1051
|
+
```
|
|
1052
|
+
|
|
1053
|
+
#### GSAP Statement Cheat Sheet
|
|
1054
|
+
|
|
1055
|
+
Compile each `data-anim` attribute into a GSAP statement. Times are
|
|
1056
|
+
**absolute seconds** = card.startSec + data-anim-at, quantized to 1/fps.
|
|
1057
|
+
Selector is `.card[data-card-id="X"] #elementId`.
|
|
1058
|
+
|
|
1059
|
+
| data-anim | GSAP statement template |
|
|
1060
|
+
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1061
|
+
| `fade-in` | `tl.fromTo(SEL, { opacity: 0 }, { opacity: 1, duration: D, ease: 'power2.out' }, T);` |
|
|
1062
|
+
| `fade-out` | `tl.to(SEL, { opacity: 0, duration: D, ease: 'power2.in' }, T);` |
|
|
1063
|
+
| `slide-in` (from=left, dist=80) | `tl.fromTo(SEL, { opacity: 0, x: -80 }, { opacity: 1, x: 0, duration: D, ease: 'power2.out' }, T);` |
|
|
1064
|
+
| `kinetic-chars` (pop) | `tl.from(SEL + ' .char', { opacity: 0, y: 8, scale: 0.8, duration: D, ease: 'power2.out', stagger: S }, T);` |
|
|
1065
|
+
| `count-up` | `(function(){const o={v:FROM};tl.to(o,{v:TO,duration:D,ease:'power2.out',onUpdate:function(){const el=document.querySelector(SEL);if(el)el.textContent=__fmt(o.v,'FMT');}},T);})();` |
|
|
1066
|
+
| `draw-path` | `(function(){const el=document.querySelector(SEL);if(el){const L=el.getTotalLength();tl.set(SEL,{strokeDasharray:L,strokeDashoffset:L},T);tl.to(SEL,{strokeDashoffset:0,duration:D,ease:'power2.inOut'},T);}})();` |
|
|
1067
|
+
| `grow-x` (target-w=W) | `tl.fromTo(SEL, { width: 0 }, { width: W, duration: D, ease: 'power2.out' }, T);` |
|
|
1068
|
+
| `grow-y` (target-h=H) | `tl.fromTo(SEL, { height: 0 }, { height: H, duration: D, ease: 'power2.out' }, T);` |
|
|
1069
|
+
| `scale-pop` | `tl.fromTo(SEL, { opacity: 0, scale: 0.6 }, { opacity: 1, scale: 1, duration: D, ease: 'back.out(1.6)' }, T);` |
|
|
1070
|
+
| `mask-reveal` (direction=left) | `tl.fromTo(SEL, { clipPath: 'inset(0 100% 0 0)' }, { clipPath: 'inset(0 0 0 0)', duration: D, ease: 'power2.inOut' }, T);` |
|
|
1071
|
+
|
|
1072
|
+
Quantize: `T = Math.round(absSec * fps) / fps`. At 30fps the smallest
|
|
1073
|
+
step is `1/30 ≈ 0.0333s`; rounding to 4 decimals (`.toFixed(4)`) is fine
|
|
1074
|
+
inside the JS literal.
|
|
1075
|
+
|
|
1076
|
+
#### Video Framing Reference (per `layout` value)
|
|
1077
|
+
|
|
1078
|
+
The selector for the video container is `#video-wrap`. Animate its
|
|
1079
|
+
bounds between cards using `tl.to('#video-wrap', { ...bounds }, T)`.
|
|
1080
|
+
Initial bounds should be set inline on the element to match card-01's
|
|
1081
|
+
layout. Pick a transition duration of 0.5–0.7s with `ease: 'power2.inOut'`.
|
|
1082
|
+
|
|
1083
|
+
**Decorative frames** (`clean` / `hairline` / `polaroid`) sit as a
|
|
1084
|
+
**sibling** of `#video-wrap` and follow it through layout transitions.
|
|
1085
|
+
See
|
|
1086
|
+
[`references/frames/`](references/frames/) for each frame's placement
|
|
1087
|
+
HTML, suggested CSS, and which layouts it pairs with. Quick rule:
|
|
1088
|
+
`overlay` layout suppresses decorative frames (the full-bleed video
|
|
1089
|
+
clashes with chrome); PiP layouts already have their own pill treatment
|
|
1090
|
+
(border-radius + white ring + shadow), so add a decorative frame only on
|
|
1091
|
+
top of `split` / `stack`.
|
|
1092
|
+
|
|
1093
|
+
**GSAP target lookup table** for `#video-wrap` per composition layout
|
|
1094
|
+
(landscape 1920×1080 — for portrait & 4:5 see `references/layouts/*.html`
|
|
1095
|
+
which list all three ratios):
|
|
1096
|
+
|
|
1097
|
+
| composition layout | typical card.zone | `#video-wrap` GSAP target | extra css class |
|
|
1098
|
+
| ------------------------------------ | ----------------- | ------------------------------------------------------------------------- | ------------------------------------------ |
|
|
1099
|
+
| `split` | `side-panel` | `{ left: 960, top: 0, width: 960, height: 1080 }` | — |
|
|
1100
|
+
| `stack` | `lower-third` | `{ left: 14, top: 14, width: 1892, height: 548 }` (top 52%) | — |
|
|
1101
|
+
| `pip` (bottom-right) | `fullscreen` | `{ left: 1480, top: 760, width: 400, height: 300 }` | `pip-pill` (border-radius + ring + shadow) |
|
|
1102
|
+
| `pip` (top-left) | `fullscreen` | `{ left: 40, top: 40, width: 400, height: 300 }` | `pip-pill` |
|
|
1103
|
+
| `overlay` (video full-bleed) | `video-overlay` | `{ left: 0, top: 0, width: 1920, height: 1080 }` (no change from default) | — |
|
|
1104
|
+
| **hide video** (pure-graphic moment) | `fullscreen` | `{ opacity: 0 }` (or move off-canvas) | — |
|
|
1105
|
+
|
|
1106
|
+
To toggle the pip-pill chrome (border-radius + white ring + drop shadow)
|
|
1107
|
+
when entering or leaving a pip moment:
|
|
1108
|
+
|
|
1109
|
+
```js
|
|
1110
|
+
// Enter pip — add chrome
|
|
1111
|
+
tl.set("#video-wrap", { className: "video-wrapper pip-pill" }, T);
|
|
1112
|
+
tl.to(
|
|
1113
|
+
"#video-wrap",
|
|
1114
|
+
{ left: 1480, top: 760, width: 400, height: 300, duration: 0.6, ease: "power2.inOut" },
|
|
1115
|
+
T,
|
|
1116
|
+
);
|
|
1117
|
+
|
|
1118
|
+
// Leave pip — back to clean full-bleed
|
|
1119
|
+
tl.set("#video-wrap", { className: "video-wrapper" }, T_NEXT);
|
|
1120
|
+
tl.to(
|
|
1121
|
+
"#video-wrap",
|
|
1122
|
+
{ left: 0, top: 0, width: 1920, height: 1080, duration: 0.6, ease: "power2.inOut" },
|
|
1123
|
+
T_NEXT,
|
|
1124
|
+
);
|
|
1125
|
+
```
|
|
1126
|
+
|
|
1127
|
+
**Card-host bounds match the zone**. Resolve the card's `zone` into
|
|
1128
|
+
pixel bounds using the table at the top of Step 6, then write those
|
|
1129
|
+
into the card-host's inline `style="left:Xpx;top:Ypx;width:Wpx;
|
|
1130
|
+
height:Hpx;..."`. For `video-overlay` zone (overlay recipe), the
|
|
1131
|
+
card-host fills the full canvas — your CSS inside `.card .root`
|
|
1132
|
+
decides where the actual visible card sits.
|
|
1133
|
+
|
|
1134
|
+
#### HyperFrames Layout / Animation QA Rules
|
|
1135
|
+
|
|
1136
|
+
- Build each card's static hero frame first: the moment where the card is fully visible and readable.
|
|
1137
|
+
- Confirm video, cards, subtitles/captions, and diagrams do not unintentionally overlap.
|
|
1138
|
+
- Confirm hidden video areas are clipped by the frame and not visible outside intended bounds.
|
|
1139
|
+
- Register one paused master timeline as `window.__timelines["talking-head-recut"]`.
|
|
1140
|
+
- Build timelines synchronously at page load; no `async`, `setTimeout`, Promises, or media `play()` calls.
|
|
1141
|
+
- Do not use `Math.random()` or `Date.now()` in render paths.
|
|
1142
|
+
- Do not use `repeat: -1`; calculate finite repeats from the video duration.
|
|
1143
|
+
- Prefer GSAP transforms and opacity (`x`, `y`, `scale`, `rotation`, `opacity`) over layout properties (`top`, `left`, `width`, `height`) for motion.
|
|
1144
|
+
- Animate wrappers such as `#video-wrap`, not the video element dimensions directly.
|
|
1145
|
+
- Avoid animating the same property on the same element from multiple timelines at the same time.
|
|
1146
|
+
- Use `data-track-index`, not `data-layer`; use `data-duration`, not `data-end`.
|
|
1147
|
+
- Every timed element (`card-host`, sub-composition, etc.) MUST include `class="clip"` alongside its own classes — e.g. `class="card-host clip"`. The HyperFrames runtime uses `.clip` to gate visibility to the `data-start … data-start+data-duration` window. Without it the element is visible for the whole video (lint: `timed_element_missing_clip_class`).
|
|
1148
|
+
- For body / global `font-family`, list **concrete font names** (`'Inter', 'Caveat', …`) — not a CSS variable like `var(--font-family)`. The HyperFrames font resolver doesn't expand CSS vars during static analysis (lint: `font_family_without_font_face`). Cards may still use `var(--font-family)` internally since their `@font-face` declarations are loaded.
|
|
1149
|
+
|
|
1150
|
+
### 10. Render to MP4
|
|
1151
|
+
|
|
1152
|
+
```bash
|
|
1153
|
+
cd "$WORK_DIR"
|
|
1154
|
+
PRODUCER_BROWSER_GPU_MODE=hardware npx hyperframes render public \
|
|
1155
|
+
--skill=talking-head-recut \
|
|
1156
|
+
-o output.mp4 \
|
|
1157
|
+
--fps 30
|
|
1158
|
+
```
|
|
1159
|
+
|
|
1160
|
+
`hyperframes render <dir>` reads `<dir>/index.html` and produces the MP4.
|
|
1161
|
+
The flag `PRODUCER_BROWSER_GPU_MODE=hardware` (or `--browser-gpu`) is
|
|
1162
|
+
strongly recommended on macOS — software-only Chrome rendering times out
|
|
1163
|
+
on most laptops.
|
|
1164
|
+
|
|
1165
|
+
For a sanity check before the full render, capture a single frame at a
|
|
1166
|
+
specific timestamp:
|
|
1167
|
+
|
|
1168
|
+
```bash
|
|
1169
|
+
npx hyperframes snapshot public --at 5 # → public/snapshots/frame-00-at-5s.png (a single --at ignores --out)
|
|
1170
|
+
```
|
|
1171
|
+
|
|
1172
|
+
### 11. Report Results
|
|
1173
|
+
|
|
1174
|
+
Tell the user:
|
|
1175
|
+
|
|
1176
|
+
- Work directory path
|
|
1177
|
+
- `storyboard.json` (the card outline you designed)
|
|
1178
|
+
- `public/cards/*.html` (one HTML per card)
|
|
1179
|
+
- `public/index.html` (the assembled composition)
|
|
1180
|
+
- `output.mp4` (the final video)
|
|
1181
|
+
- ASR provider used
|
|
1182
|
+
- Card count + how you chose them (in 1 sentence)
|
|
1183
|
+
- Any missing keys or quality caveats
|
|
1184
|
+
|
|
1185
|
+
**Optional live preview (on request only).** The clip plays unchanged inside `public/index.html` with the overlays on top, so it previews faithfully. **Don't open it during the run.** When the user asks, start a long-lived server **after** render and report the URL:
|
|
1186
|
+
|
|
1187
|
+
```bash
|
|
1188
|
+
(cd "$WORK_DIR/public" && npx hyperframes preview) # local server, no upload
|
|
1189
|
+
```
|
|
1190
|
+
|
|
1191
|
+
To share a finished result, render locally and approve the MP4 —
|
|
1192
|
+
`vidfarm approve --video "$WORK_DIR/output.mp4" --caption "…"` prints a
|
|
1193
|
+
vidfarm `share_url`.
|
|
1194
|
+
|
|
1195
|
+
Do not delete the work directory unless the user asks.
|