gooseworks-ai/goose-skills / skills/video/render-podcast-skit
render-podcast-skit
VerifiedRender a two-host podcast ad from a brand config and dialogue script. Includes the working planner, full-frame and split-screen assembly, captions from measured character timings, brand end card, approved paid-step adapters, and 65 quality-check falsification cases. Use for short conversational ads with two stable hosts in one room.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.3 KB |
| recipe.json | config | 25.2 KB |
| scripts/PIPELINE.md | markdown | 102 B |
| scripts/README.md | markdown | 4.1 KB |
| scripts/arcs.json | config | 9.1 KB |
| scripts/build_overlays.py | script | 15.3 KB |
| scripts/check_framing_render.py | script | 10.2 KB |
| scripts/compose_master.py | script | 28.9 KB |
| scripts/config.example.json | config | 26.9 KB |
| scripts/config_io.py | script | 3.0 KB |
| scripts/cost_model.py | script | 11.0 KB |
| scripts/crop_singles.py | script | 5.4 KB |
| scripts/gates.py | script | 67.1 KB |
| scripts/gen_paid.py | script | 24.9 KB |
| scripts/grade_episode.py | script | 13.6 KB |
| scripts/make_lockup.py | script | 3.1 KB |
| scripts/one_shot.py | script | 3.0 KB |
| scripts/pick_voices.py | script | 7.4 KB |
| scripts/plan_beats.py | script | 7.5 KB |
| scripts/plan_cuts.py | script | 23.2 KB |
| scripts/preview_framing.py | script | 4.3 KB |
| scripts/provider_commands.py | script | 4.2 KB |
| scripts/script.example.json | config | 2.1 KB |
| scripts/selftest.py | script | 32.6 KB |
| scripts/shape_vo.py | script | 6.9 KB |
| scripts/test_distribution.py | script | 6.6 KB |
| skill.meta.json | config | 511 B |
| source-manifest.json | config | 2.4 KB |
| tests/smoke-test.md | markdown | 1.6 KB |
scripts/make_lockup.py
View on GitHub#!/usr/bin/env python3
"""Draw the corner lockup from the brand block. Free.
make_lockup.py --config config.json --run-dir <run>
WHY THIS EXISTS
`brand.lockup_file` has to be a real file on disk or `gate_frame_brand_asset`
refuses the run, and for the first three brands that file was drawn by hand in
a throwaway script each time. Three is the point at which it stops being a
one-off.
WHAT IT DOES NOT DO
It does not invent a logo. It sets the brand's own name in the brand's own
`display_font`, which is the same thing the editorial end card does, so the
frame mark and the end card are one brand. A client with a real lockup supplies
it and this is skipped: if `brand.lockup_file` already exists, nothing is
overwritten unless `--force`.
The rule that brand type is never drawn by a GENERATOR is about image models
garbling lettering. Exact type from a real font is not that.
"""
from __future__ import annotations
import argparse
import pathlib
import sys
from PIL import Image, ImageDraw, ImageFont
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent))
import config_io # noqa: E402
def hex_rgba(s, alpha=240):
s = (s or "#FFFFFF").lstrip("#")
return tuple(int(s[i:i + 2], 16) for i in (0, 2, 4)) + (alpha,)
def main():
ap = argparse.ArgumentParser()
ap.add_argument("--config", required=True)
config_io.add_arg(ap)
ap.add_argument("--run-dir", required=True)
ap.add_argument("--size", type=int, default=42)
ap.add_argument("--force", action="store_true")
a = ap.parse_args()
cfg = config_io.load(a.config, a.preset)
br = cfg.get("brand") or {}
run = pathlib.Path(a.run_dir)
rel = br.get("lockup_file") or (cfg.get("edit", {})
.get("frame_brand", {}).get("lockup_file"))
if not rel:
sys.exit("[err] no brand.lockup_file in the config; nothing to draw")
out = run / rel
if out.exists() and not a.force:
print(f" {out} already exists; left alone (--force to redraw)")
return 0
name = br.get("name") or cfg["brand_name"]
face = br.get("display_font")
if not face or not pathlib.Path(face).exists():
sys.exit(f"[err] brand.display_font is missing or not on disk: {face!r}. "
f"The lockup is set in the brand's own face, so there has to "
f"be one.")
font = ImageFont.truetype(face, a.size)
ink = hex_rgba(br.get("ink_hex"), 240)
probe = ImageDraw.Draw(Image.new("RGBA", (8, 8)))
w = int(probe.textlength(name, font=font)) + 24
h = int(a.size * 1.75)
img = Image.new("RGBA", (w, h), (0, 0, 0, 0))
d = ImageDraw.Draw(img)
bb = d.textbbox((0, 0), name, font=font)
x = (w - (bb[2] - bb[0])) // 2 - bb[0]
y = (h - (bb[3] - bb[1])) // 2 - bb[1]
# a soft drop so the mark holds on a light wall as well as a dark one
d.text((x + 1, y + 2), name, font=font, fill=(0, 0, 0, 120))
d.text((x, y), name, font=font, fill=ink)
out.parent.mkdir(parents=True, exist_ok=True)
img.save(out)
print(f" {name} set in {pathlib.Path(face).name} -> {out} ({w}x{h})")
return 0
if __name__ == "__main__":
raise SystemExit(main())
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 |