Skip to content

gooseworks-ai/goose-skills / skills/video/render-mosaic-grid-reveal

render-mosaic-grid-reveal

Verified

Render a 'mosaic-grid-reveal' video from a config — a real-DOM FULL-BLEED N×N mosaic of real product tiles that pops in one tile at a time (scatter order, ease-out-back overshoot), the grid clears, then the brand wordmark builds line-by-line followed by a sub-label, tagline, and CTA; frame-stepped via Playwright and encoded with FFmpeg — deterministic assembly, FREE (the music bed comes from create-music-elevenlabs), so the wordmark, tile captions, and CTA stay pixel-crisp. Use for the mosaic-grid-reveal format.

FileKindSize
SKILL.mdskill md4.5 KB
scripts/_shared.jsscript950 B
scripts/build_html.pyscript8.8 KB
scripts/config.example.jsonconfig2.8 KB
scripts/render.pyscript2.5 KB
skill.meta.jsonconfig220 B
tests/smoke-test.mdmarkdown1.3 KB

scripts/_shared.js

View on GitHub
// Deterministic frame renderer scaffold for pick-05.
// Same contract as pick-01: initRenderer(duration_s, renderFn). Pure-function-of-time motion.

(function () {
  let _duration = 0;
  let _renderFn = null;

  window.initRenderer = function (durationSeconds, renderFn) {
    _duration = durationSeconds;
    _renderFn = renderFn;
    renderFn(0);
    window.__driverReady = true;
  };

  window.renderAt = function (t) {
    if (!_renderFn) return;
    if (t < 0) t = 0;
    if (t > _duration) t = _duration;
    _renderFn(t);
  };

  window.clamp01 = function (x) { return Math.max(0, Math.min(1, x)); };
  window.tw = function (t, t0, t1) {
    if (t <= t0) return 0;
    if (t >= t1) return 1;
    return (t - t0) / (t1 - t0);
  };
  window.easeOut = function (x) { return 1 - Math.pow(1 - x, 3); };
  window.easeOutBack = function (x, s) {
    s = s || 1.70158;
    return 1 + (s + 1) * Math.pow(x - 1, 3) + s * Math.pow(x - 1, 2);
  };
})();
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 323kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 323kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 323kUpdated 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