OpenSenseNova/SenseNova-Skills / skills/sn-code-video
sn-code-video
VerifiedCreate and revise code-driven videos with Canvas, SVG, HTML/CSS, Three.js, Remotion, Manim, or p5.js, including sound, deterministic frame capture, visual review, and MP4 verification. Use for rendered explainers, procedural animations, motion graphics, promos, and music-synchronized films; not for general web apps, scroll-driven HTML stories, or footage generation with video models.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 20.8 KB |
| references/character-and-creature-motion.md | markdown | 5.0 KB |
| references/explainer-diagrams.md | markdown | 7.9 KB |
| references/motion-graphics-and-promos.md | markdown | 6.0 KB |
| references/music-and-beat-sync.md | markdown | 5.3 KB |
| references/simulations-and-generative.md | markdown | 7.3 KB |
| references/sound-design-and-narration.md | markdown | 10.4 KB |
| references/stylized-looks.md | markdown | 7.6 KB |
| references/threejs-scenes-and-cameras.md | markdown | 7.6 KB |
| requirements.txt | manifest | 391 B |
| scripts/audio_check.sh | script | 2.1 KB |
| scripts/capture.mjs | script | 4.4 KB |
| scripts/check_video.sh | script | 3.0 KB |
| scripts/contact_sheet.sh | script | 792 B |
| scripts/sync_check.py | script | 2.9 KB |
| scripts/synth.py | script | 8.2 KB |
| scripts/tts.py | script | 4.2 KB |
scripts/audio_check.sh
View on GitHub#!/bin/sh
# Loudness, true peak, clipping, silences and length of the audio in a video (or WAV).
# usage: sh audio_check.sh FILE [TARGET_LUFS=-14]
F=$1; TGT=${2:--14}
[ -f "$F" ] || { echo "usage: audio_check.sh FILE [TARGET_LUFS]"; exit 1; }
python3 - "$F" "$TGT" <<'EOF'
import json, re, subprocess, sys
f, tgt = sys.argv[1], float(sys.argv[2])
p = json.loads(subprocess.run(["ffprobe", "-v", "error", "-show_streams", "-show_format", "-of", "json", f], capture_output=True, text=True).stdout)
aus = [s for s in p["streams"] if s["codec_type"] == "audio"]
vs = [s for s in p["streams"] if s["codec_type"] == "video"]
if not aus:
print("FAIL no audio stream"); sys.exit(1)
a = aus[0]; fails = []
adur = float(a.get("duration") or p["format"]["duration"])
print(f"audio {a['codec_name']} {a.get('sample_rate')} Hz, {a.get('channels')} ch, {adur:.3f} s")
if vs:
vdur = float(vs[0].get("duration") or p["format"]["duration"])
if abs(vdur - adur) > 0.1: fails.append(f"audio {adur:.2f} s vs video {vdur:.2f} s")
log = subprocess.run(["ffmpeg", "-v", "info", "-i", f, "-vn", "-af", "ebur128=peak=true,astats=metadata=0,silencedetect=n=-50dB:d=1.0", "-f", "null", "-"],
capture_output=True, text=True).stderr
I = re.findall(r"I:\s+(-?[\d.]+) LUFS", log); TP = re.findall(r"Peak:\s+(-?[\d.inf]+) dBFS", log)
clip = re.findall(r"Number of clipped samples: (\d+)", log) or re.findall(r"Peak count: (\d+)", log)
lufs = float(I[-1]) if I else None; tp = float(TP[-1]) if TP and TP[-1] not in ("-inf", "inf") else None
print(f"loudness {lufs} LUFS (target {tgt}), true peak {tp} dBTP")
if lufs is None or abs(lufs - tgt) > 2: fails.append(f"integrated loudness {lufs} not within ±2 of {tgt}")
if tp is not None and tp > -0.5: fails.append(f"true peak {tp} dBTP above -0.5")
for st, en in zip(re.findall(r"silence_start: ([\d.]+)", log), re.findall(r"silence_end: ([\d.]+)", log) + [str(adur)]):
print(f"warn silence {float(st):.2f}-{float(en):.2f} s -- fine only if deliberate")
for x in fails: print("FAIL ", x)
print("OK" if not fails else f"{len(fails)} failure(s)")
sys.exit(1 if fails else 0)
EOF
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |