Skip to content

artemnovitckii/claude-animation-skills / skills/zach-d-films

zach-d-films

Verified

Makes a 3D cartoon "what if" explainer short (9:16) in the style of Zack D. Films-type videos, entirely in code with three.js. Procedural cartoon people, props and effects, a blue studio sky, slow-motion impacts, a red force-ripple overlay, quick whip cuts and 1 to 3 word captions timed to the voiceover. Use when the user runs /zach-d-films or asks for a 3D cartoon explainer, a "could X stop Y" or "what if" short with characters and props.

FileKindSize
SKILL.mdskill md6.9 KB
engine/captions.pyexecutablescript1.4 KB
engine/index.htmlother1.2 KB
engine/render.mjsscript2.9 KB
engine/src/anim.jsscript3.2 KB
engine/src/human.jsscript18.5 KB
engine/src/main.jsscript7.7 KB
engine/src/materials.jsscript3.0 KB
engine/src/props.jsscript14.1 KB
engine/src/shots.jsscript23.9 KB
engine/src/textures.jsscript5.4 KB

engine/captions.py

View on GitHub
#!/usr/bin/env python3
"""Turns word timings into the CAPTIONS list for src/shots.js: 1 to 3 words per caption, broken at punctuation.

    python3 captions.py <voiceover.words.json>    # from kit/words.py; paste the output over CAPTIONS in src/shots.js
"""
import json
import re
import sys


SMALL = {'a', 'an', 'the', 'at', 'to', 'of', 'in', 'on', 'and', 'or', 'but', 'for', 'with', 'by', 'it', 'is', 'like', 'as', 'so'}


def chunks(words, maxw=3, maxc=18):
    out, cur = [], []
    for i, w in enumerate(words):
        cur.append(w)
        text = ' '.join(x['w'] for x in cur)
        stop = re.search(r'[.,?!;:]$', w['w'])
        dangling = w['w'].lower() in SMALL and i + 1 < len(words) and len(cur) < maxw + 1
        if stop or ((len(cur) >= maxw or len(text) >= maxc) and not dangling):
            out.append(cur)
            cur = []
    if cur:
        out.append(cur)
    return out


def main():
    if len(sys.argv) < 2:
        sys.exit(__doc__)
    words = json.load(open(sys.argv[1]))
    print('export const CAPTIONS = [')
    groups = chunks(words)
    for i, g in enumerate(groups):
        text = re.sub(r'[.,;:]+$', '', ' '.join(x['w'] for x in g)).replace("'", "\\'")
        end = f", {g[-1]['e'] + .3:.2f}" if i == len(groups) - 1 else ''
        print(f"  [{g[0]['s']:.2f}, '{text}'{end}],")
    print('];')
    print(f'export const DURATION = {words[-1]["e"] + .5:.2f};')


if __name__ == '__main__':
    main()
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 323kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 323kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 323kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 323kUpdated Claude CodeCodexVerifiedInstall