Skip to content

gooseworks-ai/goose-skills / skills/video/render-myth-vs-fact

render-myth-vs-fact

Verified

Assemble a myth-vs-fact kinetic-typography explainer video ad (≈29.5s, 9:16) from N myth/fact pairs + hook / turn / punch copy + palette + a brand end-card PNG + a VO track — a hook, 3 red-strike MYTH cards that flip to teal-check FACT cards (per-line strikethrough that crosses EVERY wrapped line), a "what actually works" turn, an optional proof reveal, a punch line, and a static end card. DETERMINISTIC assembly with ZERO AI-gen visuals — HTML hyperframes rendered frame-exact via Playwright (`window.renderAt(t)`, animation a pure function of beat-local time), Whisper beat-snap to VO word onsets, concat at a uniform fps, karaoke `.ass` captions burned last (suppressed on the proof + end-card beats), and a VO + optional music mix (music −20 dB, `amix normalize=0`, tail fade). FREE (Python + Playwright + ffmpeg); the recipe supplies the copy / palette / end-card / VO and gates the paid VO / music / Whisper calls to their own capabilities. Use for the myth-vs-fact format.

scripts/hyperframes/beat-turn.html

View on GitHub
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8" />
<title>beat · The Turn</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="_shared.css">
<style>
  .h-statement { opacity: 0; }
  .sub { margin-top: 52px; max-width: 820px; opacity: 0; }
</style>
</head><body>
<div class="bg warm"></div>
<div class="stage"></div>
<div class="center">
  <h1 class="h-statement" id="head"></h1>
  <p class="sub" id="sub"></p>
</div>
<script id="beat-spec" type="application/json">
{ "duration": 4.44, "palette": {},
  "turn_slate": "What actually works is [simple.]",
  "turn_sub": "Habits with [real growers behind them.]",
  "cues": { "head": [0.10, 0.70], "sub": [2.18, 2.78] } }
</script>
<script src="_shared.js"></script>
<script>
  const BEAT = loadBeatSpec();
  applyPalette(BEAT.palette);
  const dur = BEAT.duration || 4.44;

  const head = document.getElementById('head');
  const sub = document.getElementById('sub');

  // [square brackets] -> italic emphasis on the head, bold accent on the sub.
  head.innerHTML = (BEAT.turn_slate || '').replace(/\[([^\]]+)\]/g, '<em>$1</em>');
  if (BEAT.turn_sub) {
    sub.innerHTML = BEAT.turn_sub.replace(/\[([^\]]+)\]/g, '<b>$1</b>');
  } else {
    sub.style.display = 'none';
  }

  const headWin = (BEAT.cues && BEAT.cues.head) || [0.10, 0.70];
  const subWin = (BEAT.cues && BEAT.cues.sub) || [dur * 0.49, dur * 0.63];

  initRenderer(dur, function (t) {
    const h = tw(t, headWin[0], headWin[1]);
    head.style.opacity = h;
    head.style.transform = `scale(${0.96 + 0.04 * h})`;
    const s = tw(t, subWin[0], subWin[1]);
    sub.style.opacity = s;
    sub.style.transform = `translateY(${(1 - s) * 26}px)`;
  });
</script>
</body></html>
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall