itwanger/vibe-science / skills/one-minute-remotion
one-minute-remotion
VerifiedVibeScience:把小学、初中、高中的数理化生知识点或 AI 概念做成1至2分钟中文科普视频,覆盖写稿、自选音色配音、连续动画、手机端字幕和MP4。文字稿保存到one-minute/,超时保留全文。“下一步”只推进一个阶段,配音完成后停下供试听。用于知识点短视频、一分钟或两分钟科普、课堂概念短片、写或润色one-minute目录稿件,或明确调用one-minute-remotion;普通长视频不属于本技能范围。
scripts/install_huashu.py
View on GitHub#!/usr/bin/env python3
"""Install the pinned, licensed huashu drawing libraries into a Remotion project."""
import argparse
import hashlib
import json
from pathlib import Path
import shutil
p = argparse.ArgumentParser()
p.add_argument('--project', required=True, type=Path)
a = p.parse_args()
source = Path(__file__).resolve().parents[1] / 'assets/huashu'
manifest = json.loads((source / 'provenance.json').read_text())
for name, expected in manifest['sha256'].items():
if hashlib.sha256((source / name).read_bytes()).hexdigest() != expected:
raise SystemExit(f'Upstream asset changed: {name}')
dest = a.project / 'remotion/src/huashu'
dest.mkdir(parents=True, exist_ok=True)
# The upstream is browser-global JS. Keep every algorithm, isolate globals per
# module, and export only the supported deterministic drawing surface.
util = (source / 'util.js').read_text().replace('window.U = {', 'Object.assign(U, {', 1)
util = util.replace('\n};\n\n// ---------- 画布尺寸', '\n});\n\n// ---------- 画布尺寸', 1)
parts = ['// @ts-nocheck\n// huashu-art-motion MIT; pinned source + adaptation: provenance.json\n'
'const window = {}; const U = {};\n'
'// Color-only bridge; painterly hand()/board() helpers need the full engine.\n'
'const PAINT = {hex: h => {const s=h.replace("#", ""); return [0,2,4].map(i=>parseInt(s.slice(i,i+2),16));}};\n', util,
'\nconst MO: any = window.MO = {};\n']
for name in ['motion', 'camera', 'diagram']:
code = (source / f'{name}.js').read_text()
if name == 'motion':
code = code.replace('const MO = window.MO = {};', '')
else:
var = {'camera': 'CAM', 'diagram': 'DG'}[name]
parts.append(f'\nconst {var}: any = window.{var} = {{}};\n')
code = code.replace(f'const {var} = window.{var} = {{}};', '')
parts.append(code)
parts.append('\nexport {U, MO, CAM, DG};\n')
(dest / 'runtime.ts').write_text('\n'.join(parts))
shutil.copy2(source / 'LICENSE', dest / 'LICENSE')
shutil.copy2(source / 'provenance.json', dest / 'provenance.json')
fonts = a.project / 'remotion/public/huashu-fonts'
fonts.mkdir(parents=True, exist_ok=True)
for f in (source / 'fonts').iterdir():
shutil.copy2(f, fonts / f.name)
print(json.dumps({'installed': str(dest), 'commit': manifest['commit'],
'fonts': str(fonts)}, ensure_ascii=False))
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: 196k | 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: 196k | 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: 196k | Updated | Claude CodeCodex | Verified | Install |