Communitygithub.com

motion-video-studio

Staged, token-efficient workflow for creating video edits and motion graphics with code using HyperFrames (HTML/GSAP) or Remotion (React). Use this skill whenever the user or another agent wants an animated explainer, title card, lower third, kinetic typography, captions, data-chart animation, social clip (9:16, 1:1, 16:9), promo, intro/outro, or any programmatic video render, even if they only say "make a video", "animate this", or "motion graphic" and never name a framework. Also use it when picking between Remotion and HyperFrames, when a video build is burning too many tokens, or when a lower-tier model must take over mid-project.

What is motion-video-studio?

motion-video-studio is a Claude Code agent skill that staged, token-efficient workflow for creating video edits and motion graphics with code using HyperFrames (HTML/GSAP) or Remotion (React). Use this skill whenever the user or another agent wants an animated explainer, title card, lower third, kinetic typography, captions, data-chart animation, social clip (9:16, 1:1, 16:9), promo, intro/outro, or any programmatic video render, even if they only say "make a video", "animate this", or "motion graphic" and never name a framework. Also use it when picking between Remotion and HyperFrames, when a video build is burning too many tokens, or when a lower-tier model must take over mid-project.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hakeemadli/motion-video-studio/tree/HEAD

Ask in your favorite AI

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

Documentation

Motion Video Studio

Build video as code, in stages, checking cheaply before spending expensively. Rendering and image inspection are the costliest operations in this workflow. Every stage below ends with a gate that is cheaper than the stage after it, so mistakes surface early, when they cost a few hundred tokens instead of a few thousand.

Core rules (why they exist)

  1. Persist state to disk, not to chat. Write video.spec.json and PROGRESS.md (templates in references/stages.md). Any agent, or a cheaper model after a quota fallback, resumes by reading these two small files instead of replaying the conversation.
  2. Defer to the official framework skills for API detail. If installed, read them rather than relying on memory. They are maintained against current versions, which these notes are not.
    • HyperFrames: npx skills add heygen-com/hyperframes → /hyperframes, /hyperframes-cli, /gsap
    • Remotion: npx skills add remotion-dev/skills → /remotion-best-practices, /remotion-render If a CLI flag is uncertain, run <cli> --help once instead of guessing.
  3. Cheap gate before expensive step. Order of cost: lint/typecheck < single still < contact sheet < draft render < final render. Never skip ahead.
  4. Look at small images, few images. Review frames via a low-res contact sheet (scripts/contact_sheet.sh), never full-res frames one by one.
  5. Trim tool output. Pipe logs through tail -n 20 or grep -iE "error|warn". Do not paste whole render logs into context.
  6. Build one scene at a time, reuse components. A second scene should mostly be a reuse of the first with new content.

Stage pipeline

#StageOutputGate (must pass to continue)Tier
0Brief and routevideo.spec.jsonDuration, fps, size, framework chosenOperator
1Environment checkgo/no-goscripts/env_check.sh passesOperator
2Storyboardscene table in specScene durations sum to total; each scene has one ideaDirector
3Scaffold and design tokensempty project + tokensLint/typecheck clean; one blank frame rendersBuilder
4Build scenes (loop)one scene per iterationLint clean + one still at scale 0.25 looks rightBuilder
5Assemble and audio syncfull timelinescripts/probe_media.sh durations match specBuilder
6Draft renderlow-res previewContact sheet (≤12 frames) reviewed onceOperator + Director
7Final render and deliverMP4 + summaryProbe confirms codec, size, fps, durationOperator

Tier names map to models in references/model-fallback.md. The point of tiers: only stages 2 and hard debugging need strong reasoning; stages 0, 1, 6, 7 are mechanical and should run on the cheapest capable model.

Read references/stages.md for per-stage detail, token budgets and the spec/progress templates. Do not load it for trivial one-scene requests.

Choosing the framework (Stage 0)

SituationPick
Agent-written, quick iteration, pasted HTML/CSS, GSAP/Lottie/Three.js animation, no build step wantedHyperFrames
Existing Remotion/React project, React component reuse, data-driven templates, Lambda scale-out renderingRemotion
UnsureHyperFrames for one-offs, Remotion for repeatable templated pipelines

Licensing differs (HyperFrames is Apache 2.0; Remotion is source-available with its own terms), so mention this if the video is for a company. Framework specifics: references/hyperframes.md, references/remotion.md. Load only the one you chose.

Hard-won defaults

  • Default to 30 fps, 1920x1080 (16:9), 1080x1920 (9:16), or 1080x1080 (1:1). Ask at most one clarifying question; otherwise state assumptions in the spec and proceed.
  • Animate with the framework's frame clock only (Remotion: useCurrentFrame; HyperFrames: seekable adapters like GSAP timelines). Wall-clock tricks (setTimeout, CSS animations that aren't seekable) break deterministic rendering and produce flicker in output.
  • Keep fonts and assets local or from the framework's supported loaders so renders are reproducible.
  • Text-first, simple shapes first. Add images, particles, shaders or 3D only if the brief calls for them; each adds render time and debugging tokens.
  • For footage edits (trims, cuts, overlays on existing clips), probe the source once (probe_media.sh), then reference it by timestamps in the spec rather than re-inspecting it.

Failure handling

  • Lint/typecheck fails twice on the same error → stop patching blindly; re-read the relevant official skill section, then fix once.
  • A still looks wrong → fix the scene, re-render that one still. Do not re-render the whole video to check a layout change.
  • Quota or rate limit hit → write PROGRESS.md (stage, next action, open issues), then follow references/model-fallback.md.

Final response to the user

Give: output path, duration/size/fps, what was assumed, and one line per scene. Offer specific tweaks (pacing, colors, captions). Do not narrate the pipeline.

Related Skills