Claude Code skill that makes launch videos, ads and music videos from one line: idea, script, visuals, voice, music, edit and review, then a review room where your notes make the next take
HTML agent-skillsai-agentsai-skillai-videoclaudeclaude-codeclaude-skillslaunch-videomotion-designmotion-graphicsmusic-videovideo-generation
Contact sheet and npm run check on Windows (#1)
DGProject203002809449b6f7
diff --git a/package.json b/package.jsonindex 67a14aa..71bd617 100644--- a/package.json+++ b/package.json@@ -7,7 +7,7 @@"engines": { "node": ">=18" },"scripts": {"gate:self-test": "node scripts/gate.mjs --self-test",- "check": "for f in scripts/*.mjs scripts/music/*.mjs scripts/review-room/*.mjs assets/previews-src/snap.mjs; do node --check \"$f\" || exit 1; done && for f in scripts/*.sh; do bash -n \"$f\" || exit 1; done && echo all scripts parse"+ "check": "bash scripts/check.sh"},"dependencies": { "playwright-core": "^1.63.0" }}diff --git a/scripts/check.sh b/scripts/check.shnew file mode 100644index 0000000..ef36b93--- /dev/null+++ b/scripts/check.sh@@ -0,0 +1,5 @@+#!/bin/bash+# Parse-check every script (npm run check). Lives in a file so npm can run it on Windows too, where npm scripts go through cmd.exe.+for f in scripts/*.mjs scripts/music/*.mjs scripts/review-room/*.mjs assets/previews-src/snap.mjs; do node --check "$f" || exit 1; done+for f in scripts/*.sh; do bash -n "$f" || exit 1; done+echo all scripts parsediff --git a/scripts/frames.mjs b/scripts/frames.mjsindex 0a8809a..404f5a5 100644--- a/scripts/frames.mjs+++ b/scripts/frames.mjs@@ -24,5 +24,7 @@ for (const t of times) {}await browser.close(); srv.close();const cols = 6, rows = Math.max(1, Math.ceil(fs.readdirSync(dir).filter(f => /^t.*\.png$/.test(f)).length / cols)); // grid grows with the frame count (a fixed 6x4 dropped frames past 24)-execFileSync('ffmpeg', ['-y', '-loglevel', 'error', '-pattern_type', 'glob', '-i', `${dir}/t*.png`, '-vf', `scale=360:-1,tile=${cols}x${rows}:padding=6:color=gray`, '-frames:v', '1', `${dir}/sheet.png`]);+// a concat list instead of -pattern_type glob: the Windows ffmpeg builds have no glob support+const list = `${dir}/sheet-list.txt`; fs.writeFileSync(list, fs.readdirSync(dir).filter(f => /^t.*\.png$/.test(f)).sort().map(f => `file '${f}'`).join('\n') + '\n');+execFileSync('ffmpeg', ['-y', '-loglevel', 'error', '-f', 'concat', '-safe', '0', '-i', list, '-vf', `scale=360:-1,tile=${cols}x${rows}:padding=6:color=gray`, '-frames:v', '1', `${dir}/sheet.png`]); fs.unlinkSync(list);console.log(errs.length ? 'CONSOLE ERRORS:\n' + errs.join('\n') : 'no console errors', '\nframes + sheet:', dir);