Communitygithub.com

CodeFilm Studio

Zero-dependency pure-code WebGL2 & HTML5 Canvas 1080p60 commercial film studio for AI agents — 1 unified director skill backed by 33 trademark-safe on-demand aesthetic Style Packs (SaaS/AI tools, editorial manifestos, hardware/optics, fintech/markets, tactile 3D/gamified/sci-fi), composable optical/motion primitives, mandatory 16-frame visual QA, and dual-master beat-synced audio mixing (zero Blender, zero AI video credits). Use whenever the user asks to make a commercial launch film, product promo video, SaaS demo, hardware reveal, data explainer, or GitHub repo showcase in any named aesthetic style, or asks to recommend and mix styles for their product.

What is CodeFilm Studio?

CodeFilm Studio is a unified, pure-code skill for AI agents that generates studio-grade 1920×1080 @ 60fps commercial launch films entirely locally, with zero dependencies on Blender, Remotion, or AI video credits. It leverages HTML5 Canvas 2D, WebGL2 GLSL, Python procedural foley, Chromium CDP capture, and FFmpeg CRF-15 dual-master muxing. The skill provides 33 trademark-safe aesthetic style packs across five commercial categories: SaaS & AI tools, brand editorial, hardware & optics, fintech & markets, and gamified consumer & sci-fi. It enforces a strict 5-step production pipeline: style selection with contextual reading, beat-locked audio acquisition via a 4-tier system (local, Gemini Lyria, Suno MCP, or offline synth), deterministic HTML/WebGL2 engine authoring with foley mixing, a mandatory 16-frame visual QA loop, and serial full-frame render with dual-master muxing and verification.

Works with✓Claude Code✓Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/WoYun520/codefilm-studio/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

CodeFilm Studio — Unified Pure-Code 1080p60 Commercial Film Director

Produce studio-grade 1920×1080 @ 60fps (30–42s) commercial launch films in 100% deterministic local code (HTML5 Canvas 2D + WebGL2 GLSL + Python procedural foley + Chromium CDP capture + FFmpeg CRF-15 dual-master mux). Zero Blender, zero Remotion bloat, zero AI video credits.

Progressive Disclosure Contract (Keep Context Clean!) NEVER read multiple style packs upfront.

  1. Select 1 primary Style Pack from the table below (or recommend 2–3 fits if the user hasn't chosen one).
  2. Read ONLY styles/<id>/style.md (and its references/*.html + scripts/*.py when coding), plus references/craft-rules.md and references/audio-design.md.
  3. If the user wants a hybrid (e.g. shallow-DOF + live candlesticks) or a brand-new style, also consult references/motion-primitives.md and research real official visual benchmarks before writing code.

1. Style Pack Selector (33 Verified Packs · 5 Commercial Categories)

A. SaaS, AI Tools & Developer Cinema

Pack IDAesthetic InspirationBest For
01-kinetic-rsvp-launchApple "Don't Blink" 150 BPM KineticFlagship launches, high-velocity manifestos
02-macro-ui-shaderFramer Pitch-Black Macro-UI & ShadersDesign tools, visual AI, shader/creative SaaS
03-monochrome-3d-dofLinear Achromatic 3D Shallow-DOFDevTools, engineering platforms, issue trackers
04-3d-command-paletteRaycast Floating 3D Command BarProductivity utilities, launcher & desktop apps
05-prism-edge-networkVercel Chromatic Prism & Edge GlobeCloud infra, edge networks, API platforms
06-codeflow-diff-ideCursor / Claude Code Diff & AgentsAI coding IDEs, agent workflows, CLI tools
07-elastic-zoom-demoScreen Studio Auto-Zoom Cursor DemoInteractive SaaS walkthroughs & screen demos
08-editorial-teal-searchPerplexity × Studio Freight "Stargazing"AI search, deep research, citation engines
09-repo-showcase-gridStudio-White Open-Source Film + 6-PanelGitHub repos, open-source README teasers

B. Brand Manifesto, Editorial & Illustration

Pack IDAesthetic InspirationBest For
10-parchment-serif-editorialAnthropic Warm Parchment Literary SerifResearch labs, thoughtful AI & literary brands
11-emotive-watercolor-pointOpenAI × Studio Dumbar PointillismPoetic flagship AI & human-centric brand films
12-monochrome-ink-blocksNotion Archival Ink & Modular BlocksWorkspaces, docs, wiki & knowledge tools
13-multiplayer-vector-canvasFigma Config Multiplayer CanvasCollaborative design, whiteboards, creative suites
14-swiss-bauhaus-posterSwiss / Bauhaus / DIA RisographConferences, design reels, bold type manifestos
15-tactile-gouache-motionOrdinary Folk / BUCK Squash-StretchFriendly brand stories & warm vector explainers
16-editorial-data-explainerVox Journalism Paper-CutoutData journalism, market & policy explainers
17-cinemascope-35mm-trailerA24 2.39:1 35mm CinemascopePrestige cinema teasers & dramatic brand stories

C. Hardware, Optics & Tactile Industrial

Pack IDAesthetic InspirationBest For
18-liquid-glass-opticsApple WWDC25 Liquid Glass SDFmacOS/iOS apps, spatial audio, optical UI
19-crank-1bit-handheldPlaydate × TE 1-Bit Sharp LCD CrankPocket synths, retro hardware, tactile devices
20-glyph-dot-matrixNothing Recessed LED Glyph MatrixIndustrial consumer electronics & audio gear
21-industrial-spec-manualTeenage Engineering / Dieter RamsTechnical spec sheets, synths, precision tools
22-optical-lens-monographLeica Brass/Monochrome MonographCameras, lenses, luxury craftsmanship

D. Fintech, Markets & Tactical Telemetry

Pack IDAesthetic InspirationBest For
23-luminous-mesh-fintechStripe Luminous Mesh & Global FlowPayments, billing infra, global commerce APIs
24-splitflap-fintech-boardRamp Solari Split-Flap & Metal CardCorporate finance, treasury, CFO platforms
25-amber-quant-terminalBloomberg Terminal × TradingViewQuant trading, exchanges, crypto, market data
26-tactical-contour-sandtableAnduril / NASA 3D Terrain ContourAerospace, drones, defense, geospatial briefings

E. Gamified Consumer, Pop, Sci-Fi & Experimental

Pack IDAesthetic InspirationBest For
27-gamified-candy-3dDuolingo × Rive 3D Candy ButtonsEdTech, habit trackers, consumer growth apps
28-dopamine-wrapped-dataSpotify Wrapped Dopamine Data PartyYear-in-review recaps, social data highlights
29-elastic-pastel-browserArc Rubber-Band Pastel WindowsNext-gen browsers & playful consumer desktop
30-cosmos-starfield-chronicleGrok Deep-Space Cosmic ChronicleFrontier science, space-tech, ambitious AI
31-phosphor-crt-arcade1989 Retro Phosphor CRT TerminalRetro dev tools, indie games, hacker culture
32-high-contrast-mincho-teaserAnno / Matisse Mincho KineticHigh-drama event teasers & anime-inspired drops
33-inflatable-ceramic-3dAirbnb 2025 × Spline Matte Ceramic 3DConsumer apps, 3D icon reveals, soft-body tactile UI

2. Universal 5-Step Production Pipeline

  1. Select & Ground:
    • Load ONLY styles/<id>/style.md + references/craft-rules.md.
    • Always replace reference placeholder copy/marks with the user's real product name, metrics, copy, and assets.
  2. Acquire & Map Beat-Locked Audio (4-Tier Pipeline · Gemini Lyria Supported):
    • Follow the 4-tier priority in references/audio-design.md so production never blocks on missing plugins:
      1. Local Audio: If the user provides a .mp3/.wav/.m4a → run python3 scripts/beat_probe.py <input_audio> <project>/bgm_48k.wav.
      2. Gemini API · Lyria (Recommended AI Music): If GEMINI_API_KEY is set → run python3 scripts/gemini_bgm.py --out <project>/bgm_48k.wav --style <pack_id> --duration 40 --probe --fallback-synth (--mode realtime locks exact BPM + musical scale via models/lyria-realtime-exp; --mode clip / --mode pro uses Lyria 3).
      3. Optional Suno MCP: Only if Suno MCP is connected and approved → generate & screen a vocal-free instrumental, then run beat_probe.py.
      4. Zero-Dependency Offline Synth (Default Fallback): Synthesize a 4-act style-matched track locally via python3 scripts/synth_bgm.py --out <project>/bgm_48k.wav --style <pack_id> --duration 40 (or use the pack's built-in pure-Python audio script if it needs no BGM file).
    • Use the detected T_START, BPM, BAR, and energy curve so every major shot cut & escalation aligns to real musical bars.
  3. Author Deterministic HTML/WebGL2 Engine + Key-Matched Foley Mixer:
    • Adapt styles/<id>/references/*.html and styles/<id>/scripts/*.py.
    • Enforce references/craft-rules.md (strict window.setFrame = window.renderFrame = window.__RENDER_FRAME, ctx.setTransform(1,0,0,1,0,0) reset, clamped roundRect, measureText dynamic placement, zero OS emojis on flat vector UI, style-authentic pacing — never blindly copy a 4-beat strobe across styles).
    • Run the Python audio mixer to export loudness-matched <project>/<name>_master.wav and <project>/<name>_bgm_only.wav (RMS ~-17.4 dB, zero clipping).
  4. Mandatory 16-Frame Visual QA Loop:
    • Capture 16 PNGs spanning every shot using node scripts/render_parallel_cdp.mjs --html <html_path> --out <project>/qa_frames --width 1920 --height 1080 --workers 2 --format png --total <N> --frames <16_csv>.
    • Stitch python3 scripts/qa_sheet.py <project>/qa_frames <project>/qa_sheet.png.
    • Visually inspect BOTH qa_sheet.png AND 3–4 full-res hero frames; fix any text overlap, clipping, or layout issue and re-verify before full render.
  5. Serial 1080p60 Full Render & Dual-Master Mux:
    • Capture all frames (--workers 2 --format jpeg --frames all — strict 16 GB RAM safety cap):
      node scripts/render_parallel_cdp.mjs \
        --html <project>/<name>_1080p60.html \
        --out <project>/frames \
        --width 1920 --height 1080 --workers 2 --format jpeg \
        --total <N> --frames all
      
    • Mux BOTH CRF-15 masters, delete temporary frame directories, and verify with ffprobe + volumedetect:
      bash scripts/mux_dual_masters.sh \
        <project>/frames \
        <project>/<name>_master.wav \
        <project>/<name>_bgm_only.wav \
        <project>/<name> \
        <project>/qa_frames
      

Related Skills