/roblox-reels:growkaz-cutout-talesfrom roblox-reels
Creates narrated 2D cutout/puppet-style story videos with flat vector characters, layered sets, and camera effects using Python + pycairo, rendered locally to MP4 with voiceover, sound effects, and ducked music.
Ships in roblox-reels. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A Grow With Kaz video style: "What if you were born as..." storybook explainers in flat-vector cutout / puppet animation. Characters are layered rigs that barely move; the camera and overlays carry the energy. Everything is drawn in code (Python + pycairo) and piped to ffmpeg, so it renders locally with no image assets and no GPU.
pip install pycairo numpy pillow # + ffmpeg on PATH
python3 examples/dustwater_western.py qc # 2x2 contact sheet -> wqc.jpg (look at it)
python3 examples/dustwater_western.py full [music.mp3] # 30 s western with SFX (+ optional ducked music)
A narrated explainer, end to end:
python3 scripts/voice.py script.txt --voice am_michael # voice/part1.wav, part2.wav (one per paragraph)
python3 scripts/align.py script.txt voice/part*.wav # timing.json (sentence start/end per part)
TIMING=timing.json python3 examples/money_explainer.py 1 qc # contact sheet, one still per shot -> qc1.jpg
TIMING=timing.json python3 examples/money_explainer.py 1 full
TIMING=timing.json python3 scripts/sfx.py examples/money_explainer.py # sfx.wav from the shot list
python3 scripts/mix.py part1_video.mp4 final.mp4 --voice voice/part1.wav --sfx sfx.wav --music bed.mp3
Try it with the bundled examples/sample_timing.json (TIMING=examples/sample_timing.json) before you have a voiceover.
| File | What it is |
|---|---|
scripts/engine.py | The kit: drawing helpers, the parametric character rig (CAST, POSES, EXPR, character()), sets (apartment, office, street, dinner, stage, rooftop), western accessories, icons and every overlay (tag, stamp, bubble, caption, card, counter, bigword, arrow_label, icon). |
scripts/render.py | encode(frame_fn, seconds, out) renders frames in parallel on all cores and pipes them to ffmpeg; contact_sheet(surfaces, out) for QC. No temp files. |
scripts/voice.py | Local narration with Kokoro (offline, no espeak needed), one WAV per script paragraph. |
scripts/align.py | timing.json from the script and the voice files. Uses faster-whisper word times when installed, otherwise pause detection. |
scripts/sfx.py | Builds sfx.wav by scanning any shot module for overlay events (pop, thud, whoosh, typing ticks, dings, coins, boom) plus a quiet room tone. |
scripts/mix.py | Voice + SFX + music bed (looped, side-chain ducked under the voice) -> mastered MP4 at -14 LUFS. |
scripts/scene.py | The original 20 s "Silas" western scene, plus western buildings, mountains and the silhouette horse rider. |
examples/money_explainer.py | A full narrated explainer (two voiceover parts, ~45 shots): a Shot class driven by timing.json, C() character placement, gestures, talking mouths, speech() bubbles, qlist() checklists, flow() cards. Copy it as the template for new explainers. |
examples/dustwater_western.py | A 30 s multi-character western with its own sound design. |
Requirements: Python 3.9+, pycairo numpy pillow, ffmpeg. Optional: kokoro-onnx misaki[en] soundfile for voice.py, faster-whisper for align.py. Font: Poppins Bold (free, OFL; install it in ~/.fonts), or set GROWKAZ_FONT to any installed bold sans. Speed: GROWKAZ_JOBS sets render processes (default: all cores); a 30 s 1080p clip takes about 30 s on 8 cores.
+faststart. The sets are laid out for 16:9. For 9:16, set W, H = 1080, 1920 in engine.py and re-place every set piece and overlay for the narrow frame (character at about 60% of the height); it is a re-layout, not a switch.mix.py does all three). Credit any CC-BY music in the post text.Characters (adults)
(0.17,0.11,0.09) at about 3.2px, never pure black. Round joins.Rig layers (draw order): legs and boots → back arm (shoulder, elbow) → torso shirt → vest panels → strap and belt and holster → neck and bandana → head (ears, face, stubble, nose, eyes, brows, mouth, hair) → hat → front arm. Arms are two segments: rotate(a1) at the shoulder, then translate by the upper-arm length and rotate(a2) at the elbow. Poses are dicts of angles keyframed with smoothstep.
Idle motion (always on): breathing via torso scale 1 + sin(t*2.1)*0.012, head bob of about 1.6px, a slow head sway of about 0.025 rad, blinks of 0.14s every 3–4s, and a short glance with a brow raise when an overlay appears. Gestures (hat tip, point, wave) take 0.45s to ease in, hold, then 0.45s to ease out.
Sets: a sky gradient (3 stops), a sun or moon with a big radial bloom, soft clouds made from circle clusters, 2 mountain ridges, a midground set (false-front western buildings with lit yellow windows, porches and signs), a gradient ground with grass tufts, and a prop or two (barrel, crate). Mood palettes:
#3d2a5c → #c4566a → #f6a65a, mountains #7d4a72 / #a65a6a.#141a3a → #2b3566, a moon, yellow windows, campfire glow.#7fb6e6 → #cfe6f5, white clouds, green or tan ground.Camera: every shot has a slow push-in (zoom 1.0→1.13 with smoothstep across the shot) plus a slight drift. Parallax: wrap each layer in layer(depth, fn), which scales by 1+(z-1)*depth around a focus point and offsets x by t*6*depth. Use depth 0.05 for stars, 0.1 for sun, 0.15 for clouds, 0.25 and 0.4 for mountains, 0.6 for town, 0.85 for ground, 1.0 for the character.
Overlays (the explainer layer): all pop in with back-out easing (c=2.2, about 0.28s), slightly rotated (±0.03–0.08 rad), with a soft drop shadow, in Poppins Bold.
Transitions: 0.4s fade through black between shots, a 0.5s fade-in at the start and 0.6s fade-out at the end. Silhouette shots (a near-black (0.08,0.05,0.1) figure against a giant sun) work for dramatic beats and endings.
def ease(t): t=clamp(t); return t*t*(3-2*t)
def back_out(t): t=clamp(t); c=2.2; return 1+(c+1)*(t-1)**3+c*(t-1)**2
# scale guard: cairo errors on scale 0 -> c.scale(max(s,0.001), max(s,0.001))
def shade(c, path_fn, shadow_fn, base, dark):
path_fn(); c.set_source_rgba(*base); c.fill_preserve()
c.save(); c.clip(); shadow_fn(); c.set_source_rgba(*dark); c.fill(); c.restore()
path_fn(); c.set_source_rgb(*LINE); c.set_line_width(3.2); c.stroke()
Text extents: use te(c, text) (works on old and new pycairo; old releases return a plain tuple).
Colors are RGBA tuples from a hexc() helper. Always use set_source_rgba(*col) for them (set_source_rgb with 4 values throws).
Frame loop: write frame(t) returning a cairo.ImageSurface(FORMAT_RGB24, W, H), then render.encode(frame, seconds, out) (parallel, pipes BGRA to ffmpeg) and render.contact_sheet([frame(t) for t in times], 'qc.jpg') for QC. scripts/scene.py still has the original single-process loop and a stills mode (python3 scene.py out.mp4 3 8 12.5 17 writes still_<t>.png).
voice.py (or the user's voiceover, one file per paragraph), then align.py -> timing.json.examples/money_explainer.py (narrated) or examples/dustwater_western.py (fixed-length scene), using the engine helpers and the style bible below.qc mode -> contact sheet; view it, fix scale, placement and overlaps.full), then sfx.py and mix.py.LICENSE.txt (opens in a new tab)examples/dustwater_western.py (opens in a new tab)examples/money_explainer.py (opens in a new tab)examples/sample_timing.json (opens in a new tab)scripts/align.py (opens in a new tab)scripts/engine.py (opens in a new tab)scripts/mix.py (opens in a new tab)scripts/render.py (opens in a new tab)scripts/scene.py (opens in a new tab)scripts/sfx.py (opens in a new tab)scripts/voice.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/captionsMake word-synced captions for a short as a SEPARATE green-screen clip (plus optional ProRes 4444 alpha) for After Effects - white uppercase text, black outline, hard drop shadow, 2-3 words at a time, centred low on the frame, kept clear of the YouTube Shorts UI, timed to the narration voice. Use when the user asks for captions, subtitles, "caption greenscreen", "teks ikut suara", or "captions skill" for any short./cartoon-3d-shortMake a ~55-70 s vertical cartoon story short ("2D characters in a 3D world", rendered with three.js in Remotion). Looks - painted (rail, bridge, palace), PBR (court), diorama (our house style), Minecraft voxel. Use for any story short with cartoon characters in 3D, formula-B (mocked then proven right) or formula-C (how you invented X) stories, or "use the cartoon short skill"./npx claudepluginhub playlikemen/roblox-reels-skill --plugin roblox-reelsOther plugins' skills for the same job