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/provider_commands.py
View on GitHub"""Resolve the same paid steps in Studio or an installed skill collection.
Public capabilities already implement image, voice and video generation. Keep
their names and billing behavior rather than publishing duplicate internal atoms.
No provider is imported until an approved command actually executes.
"""
from __future__ import annotations
import argparse
import importlib.util
import os
from pathlib import Path
import subprocess
import sys
HERE = Path(__file__).resolve().parent
INTERNAL = {
"voice": ("voiceover/create-voiceover-elevenlabs", "generate.py"),
"image": ("image-generation/create-image-gpt-image-fal", "generate.py"),
"lipsync": ("lipsync/create-lipsync-veed-fal", "generate.py"),
}
PUBLIC = {
"voice": ("create-vo-elevenlabs", "gen_vo.py"),
"image": ("create-image-gpt-image-fal", "generate.py"),
"lipsync": ("create-video-fal", "gen_video.py"),
}
def resolve(kind):
explicit = os.environ.get("PODCAST_SKILLS_DIR")
if not explicit:
rel, script = INTERNAL[kind]
folder = HERE.parents[2] / "skills" / "atoms" / rel
if (folder / "scripts" / script).is_file():
return folder, script, False
roots = [Path(explicit)] if explicit else [HERE.parent.parent, Path("/tmp/gooseworks-scripts")]
slug, script = PUBLIC[kind]
for root in roots:
folder = root / slug
if (folder / "scripts" / script).is_file():
return folder, script, True
raise RuntimeError(f"Missing installed {slug}. Install the recipe's required skills "
"together, or set PODCAST_SKILLS_DIR to their parent directory.")
def command(kind):
folder, script, public = resolve(kind)
if public and kind in ("image", "lipsync"):
return [sys.executable, str(HERE / "provider_commands.py"), kind]
return [sys.executable, str(folder / "scripts" / script)]
def load_proxy(kind):
folder, _, _ = resolve(kind)
file = folder / "scripts" / "media_proxy.py"
spec = importlib.util.spec_from_file_location("podcast_media_proxy", file)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
return module
def main():
# These commands are composed by gen_paid.py only after its approval flags.
ap = argparse.ArgumentParser()
ap.add_argument("kind", choices=["image", "lipsync"])
args, rest = ap.parse_known_args()
proxy = load_proxy(args.kind)
if args.kind == "image":
folder, script, _ = resolve("image")
forwarded = []
i = 0
while i < len(rest):
if rest[i] == "--ref-image":
ref = rest[i + 1]
url = ref if ref.startswith(("https://", "http://")) else proxy.fal_upload(ref)
forwarded += ["--ref-url", url]
i += 2
else:
forwarded.append(rest[i])
i += 1
subprocess.run([sys.executable, str(folder / "scripts" / script), *forwarded], check=True)
else:
lp = argparse.ArgumentParser()
lp.add_argument("--image", required=True)
lp.add_argument("--audio", required=True)
lp.add_argument("--resolution", choices=["480p", "720p"], required=True)
lp.add_argument("--output", required=True)
a = lp.parse_args(rest)
# Validate BOTH local inputs before uploading either one.
for value in (a.image, a.audio):
if not value.startswith(("https://", "http://")):
p = Path(value)
if not p.is_file() or p.stat().st_size == 0:
raise RuntimeError(f"Missing input: {p}")
if p.read_bytes()[:80].startswith(b"version https://git-lfs.github.com/spec/v1"):
raise RuntimeError(f"Input is an LFS pointer: {p}")
host = lambda value: value if value.startswith(("https://", "http://")) else proxy.fal_upload(value)
payload = {"image_url": host(a.image), "audio_url": host(a.audio), "resolution": a.resolution}
url = proxy.fal_generate_video("veed/fabric-1.0", payload)
Path(a.output).parent.mkdir(parents=True, exist_ok=True)
proxy.download(url, a.output)
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 |