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

tests/smoke-test.md

View on GitHub
# Smoke test — render-mosaic-grid-reveal

Deterministic, no paid calls. Needs a `config.json` + its referenced assets (a wordmark SVG
and `cols*rows` product stills). The runnable worked example (with real assets) lives in the
goose-studio recipe `one-shot-videos/create-mosaic-grid-reveal-video-from-refs/demo/`;
`scripts/config.example.json` here documents the same schema.

```bash
# from a dir holding config.json + assets/ + _shared.js:
python3 scripts/build_html.py --config config.json --out hyperframe.html
python3 scripts/render.py --config config.json --html hyperframe.html --out master-silent.mp4
```

**Pass:**
- `build_html.py` prints `wrote hyperframe.html (duration_sec=…, N tiles, RxC)`.
- `render.py` writes `master-silent.mp4` at the config `width`×`height` and `fps`, duration
  within ±0.2 s of the written-back `duration_sec`.
- A frame mid-build shows the full-bleed mosaic filling the frame with some tiles popped and
  others not yet; the final second shows the wordmark + sub + tagline + CTA end card.

**Fail signatures:**
- Tiles floating small/centered with empty margins → grid not full-bleed (`#grid{position:absolute;inset:20px}`, `repeat(N,1fr)`).
- Blank wordmark → `wordmark` path wrong or the SVG doesn't use `fill="currentColor"`.
- All tiles appear at once → `pop_order` / per-tile `renderAt` timing not wired.
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