gooseworks-ai/goose-skills / skills/video/render-offer-ad
render-offer-ad
VerifiedRender a punchy ~12s vertical (9:16) music-only direct-response OFFER ad as a 4-beat kinetic-typography film — HEADLINE slam → real PRODUCT drop → CLAIM/proof → CTA pill — from one config of copy slots, a real product photo, a brand palette, fonts, bpm, and beat split. DETERMINISTIC + FREE (a bundled Remotion project; springs + interpolate, no AI-gen for visuals). Backgrounds are engine gradient divs off the palette, props are inline SVG, the ONLY composited bitmap is the REAL product photo (objectFit:contain, never stretched), and ALL headline/claim/CTA/URL/wordmark text is typeset in the engine — never AI-rendered (the format's credibility guard). A driver binds the config to Remotion input props, renders the 9:16 master, and derives a 1:1 center-crop with ffmpeg. Two gating checks run before render (claim verbs must match the product's physical format; the claim beat needs an edge-entry mechanism prop). Use for the motion-graphics-offer-ad format.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.7 KB |
| project/.gitignore | other | 143 B |
| project/package.json | manifest | 503 B |
| project/public/.gitkeep | other | 0 B |
| project/remotion.config.ts | script | 116 B |
| project/src/Main.tsx | other | 1.5 KB |
| project/src/Root.tsx | other | 1.0 KB |
| project/src/fonts.ts | script | 1.4 KB |
| project/src/index.ts | script | 108 B |
| project/src/lib/anim.ts | script | 4.8 KB |
| project/src/props.ts | script | 4.2 KB |
| project/src/scenes/Scene01.tsx | other | 5.0 KB |
| project/src/scenes/Scene02.tsx | other | 4.9 KB |
| project/src/scenes/Scene03.tsx | other | 6.5 KB |
| project/src/scenes/Scene04.tsx | other | 3.5 KB |
| project/tsconfig.json | config | 293 B |
| scripts/config.example.json | config | 2.7 KB |
| scripts/render.py | script | 11.8 KB |
| skill.meta.json | config | 210 B |
| tests/smoke-test.md | markdown | 4.8 KB |
project/src/props.ts
View on GitHubimport { FPS, beatFrames } from "./lib/anim";
// ---------------------------------------------------------------------------
// OfferAdProps — the entire ad is data. Everything the four beat-scenes render
// (copy strings, palette, fonts, product photo, mechanism prop, bpm, beat
// split, music) arrives here via Remotion input props (`--props config.json`).
// NOTHING is hardcoded in the scenes. See scripts/config.example.json for a
// worked, brand-neutral example.
// ---------------------------------------------------------------------------
export interface Palette {
primary_ground: string; // beats 1 & 4 ground (the "rust" role in the first build)
light_ground: string; // beats 2 & 3 ground (the "cream" role)
ink: string; // dark type on light grounds
highlight_chip: string; // chip/pill border accent (the "soft pink" role)
}
export interface Copy {
headline_words: string[]; // beat 1 — slams in word-by-word (e.g. ["COLLAGEN","POWDER","IS DEAD."])
subline: string; // beat 1 — the smaller line under the headline (e.g. "the new way")
motif_chip: string; // beat 2 — the sticker-chip over the product (e.g. "DRINKABLE")
claim_lines: { big: string; small: string }[]; // beat 3 — 3 proof rows (e.g. {big:"10g",small:"collagen"})
cta_label: string; // beat 4 — CTA pill text (e.g. "Try it today")
cta_url: string; // beat 4 — URL under the pill (e.g. "littlewilder.example")
wordmark: string; // beat 4 — brand wordmark that slams first
}
// The mechanism prop for beat 3 (the claim beat). MUST enter from a frame edge
// (flyIn) so the claim beat has motion AND shows the mechanism. "spoon" is the
// bundled worked default (a metal tablespoon w/ amber liquid, for "drinkable").
// "accent" is the neutral edge-entry fallback shape when no specific prop fits.
export type MechanismProp = "spoon" | "accent";
export interface Music {
src: string | null; // public/ filename of the bed, or null to render silent
fade_out_frames: number; // ramp volume to 0 over the last N frames (default 18)
}
export interface OfferAdProps {
palette: Palette;
copy: Copy;
product_image: string; // public/ filename of the REAL product photo (objectFit:contain)
mechanism_prop: MechanismProp;
bpm: number; // drives the beat-locked cut frames (default 115)
beat_split_sec: [number, number, number, number]; // [headline, product, claim, cta] seconds
fonts: { display: string; body: string }; // @remotion/google-fonts family ids resolved in fonts.ts
music: Music;
// strike-through generic competitor shape on beat 2 (never a named brand).
show_competitor_strike: boolean;
}
// ---- Beat-frame math ------------------------------------------------------
// The four hard cuts land on the beat_split boundaries, rounded to whole frames.
// Returns { starts, durs, total } in frames.
export function beatLayout(beat_split_sec: [number, number, number, number]) {
const durs = beat_split_sec.map((s) => Math.round(s * FPS));
const starts: number[] = [];
let acc = 0;
for (const d of durs) {
starts.push(acc);
acc += d;
}
return { starts, durs, total: acc };
}
// Re-exported so scenes can pull the beat grid off the current bpm if needed.
export { FPS, beatFrames };
// Safe fallback used ONLY when no input props are supplied (Remotion Studio preview
// with an empty --props). Neutral placeholders — render.py always passes the real
// config; the headline angle and copy are the user's choice (recipe choices.headline_angle).
export const DEFAULT_PROPS: OfferAdProps = {
palette: {
primary_ground: "#3A3F4B",
light_ground: "#FAFAFA",
ink: "#0A0B0D",
highlight_chip: "#E6E8EC",
},
copy: {
headline_words: ["YOUR", "HEADLINE", "HERE."],
subline: "sub-line",
motif_chip: "CHIP",
claim_lines: [
{ big: "1", small: "proof point" },
{ big: "2", small: "proof point" },
{ big: "3", small: "proof point" },
],
cta_label: "Call to action",
cta_url: "yourbrand.com",
wordmark: "your brand",
},
product_image: "product.png",
mechanism_prop: "accent",
bpm: 115,
beat_split_sec: [3.0, 3.5, 3.0, 2.5],
fonts: { display: "ArchivoBlack", body: "Inter" },
music: { src: null, fade_out_frames: 18 },
show_competitor_strike: true,
};
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |