artemnovitckii/claude-animation-skills / skills/zach-d-films
zach-d-films
VerifiedMakes 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.9 KB |
| engine/captions.pyexecutable | script | 1.4 KB |
| engine/index.html | other | 1.2 KB |
| engine/render.mjs | script | 2.9 KB |
| engine/src/anim.js | script | 3.2 KB |
| engine/src/human.js | script | 18.5 KB |
| engine/src/main.js | script | 7.7 KB |
| engine/src/materials.js | script | 3.0 KB |
| engine/src/props.js | script | 14.1 KB |
| engine/src/shots.js | script | 23.9 KB |
| engine/src/textures.js | script | 5.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()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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 implementation | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| 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 fallback | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| 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 always | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |