Skip to content

gooseworks-ai/goose-skills / skills/video/render-brand-identity-reveal

render-brand-identity-reveal

Verified

Render a 'brand identity reveal' video from a config — a single poster frame in a real, softly-lit space (real wall, soft-focus plant in the corner, dappled leaf shadow, illuminated poster) whose artwork HARD-CUTS through ~10 on-brand poster mockups (hero product, IG post, hanging banners, sticker sheet, logo lockup, poster, two lifestyle stills, packaging, big icon) then holds on a brand end card. The environment plate is one create-image-fal generation; the mockups are real-DOM HTML frame-stepped via Playwright, perspective-composited into the detected frame quad with the plate's real leaf-shadow multiplied back onto each poster (reads as behind glass), sequenced by FFmpeg. Deterministic assembly, FREE (the plate comes from create-image-fal, the bed from create-music-elevenlabs), music bed only and approved brand copy only. Use for the brand-identity-reveal format.

FileKindSize
SKILL.mdskill md5.3 KB
scripts/PIPELINE.mdmarkdown3.5 KB
scripts/build_video.shexecutablescript1.2 KB
scripts/composite.pyscript3.0 KB
scripts/config.example.jsonconfig3.9 KB
scripts/measure_frame.pyscript1.7 KB
scripts/recrop.pyscript2.2 KB
scripts/render_art.pyscript1.3 KB
scripts/scene.htmlother20.4 KB
skill.meta.jsonconfig223 B
tests/smoke-test.mdmarkdown1.1 KB

scripts/render_art.py

View on GitHub
#!/usr/bin/env python3
"""Render each artwork standalone (bare mode) at the frame-interior aspect, 2x for crispness."""
import os, sys
from playwright.sync_api import sync_playwright

HERE = os.path.dirname(os.path.abspath(__file__))
SCENE = f"file://{HERE}/scene.html"
OUT = os.path.join(HERE, "art"); os.makedirs(OUT, exist_ok=True)
IW, IH = 740, 1068  # matches original frame-interior design; dsf=2 -> 1480x2136

states = sys.argv[1:] or [str(i) for i in range(1, 11)]
with sync_playwright() as p:
    b = p.chromium.launch()
    pg = b.new_page(viewport={"width": IW, "height": IH}, device_scale_factor=2)
    pg.goto(SCENE); pg.wait_for_timeout(500)
    pg.evaluate("document.body.classList.add('bare')")
    for i in states:
        js = ("() => { document.querySelectorAll('.art').forEach(e=>e.classList.remove('on'));"
              "var el=document.querySelector('.art[data-i=\"%s\"]'); if(el)el.classList.add('on');"
              "return document.querySelector('.art.on')?document.querySelector('.art.on').dataset.i:'NONE'; }") % i
        on = pg.evaluate(js)
        pg.wait_for_timeout(500)
        out = os.path.join(OUT, f"art_std_{int(i):02d}.png")
        pg.screenshot(path=out, clip={"x": 0, "y": 0, "width": IW, "height": IH})
        print(f"wrote {out} (on={on})")
    b.close()
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