motion-stack

motion-stack is a skill for Claude Code, Codex from majiayu000/spellbook. It costs 221 tokens per session (4,988 once invoked), scanned A, original, MIT.

A local code framework for creating short animated videos from a written brief. It combines selected graphics, 3D, physics, particle, or sound libraries, renders an MP4, and records the versions and files needed to reproduce it.

In plain words
What is it for?
Use it for product demonstrations, physical simulations, 3D scenes, particle effects, data animations, title sequences, and transitions. It can also prepare offline sound and precompute heavy simulations before rendering.
Why use it?
It keeps animation work in code and separates the timing plan from the scene implementation. Local rendering and a reproducibility record make it easier to inspect, rerender, and compare a result.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for product demonstrations, physical simulations, 3D scenes, particle effects, data animations, title sequences, and transitions. It can also prepare offline sound and precompute heavy simulations before rendering.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majiayu000/spellbook/motion-stack
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add majiayu000/spellbook --skill motion-stack
Clone the repo
git clone --depth 1 https://github.com/majiayu000/spellbook

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for motion-stack

README.md
[![agentmods](https://agentmods.dev/badge/skills/majiayu000/spellbook/motion-stack/github.svg)](https://agentmods.dev/skills/majiayu000/spellbook/motion-stack)
Your own site
<a href="https://agentmods.dev/skills/majiayu000/spellbook/motion-stack"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/motion-stack/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for motion-stack

Your own site · 80×15
<a href="https://agentmods.dev/skills/majiayu000/spellbook/motion-stack"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/motion-stack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 221 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,988 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00221 $0.04988
Opus 5.5 $0.00088 $0.01995
Sonnet 5.5 $0.00044 $0.00998
Haiku 4.5 $0.00022 $0.00499

Measured 14d ago against content hash 5013886b5c17, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

motion-stack scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (kit/env.mjs, kit/render.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/motion-stack/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Motion stack:从 brief 到可复现的成片

用中文交流。用户给方向和审片意见,你挑库、写场景、渲染、自检。

这个 skill 要支撑的决定:一个新的动效 brief,能不能不重写渲染器、只写一个场景文件就出片,并且两次渲染结果逐位一致。 放弃条件:到 2026-11-25 为止,除自带示例外没有一部片子用它做出来;或者连续两个项目都得改 kit/render.mjs 才能用。满足任一条就停用。每做完一部,在下方“做过的片子”表里记一行。

先分流

下表里的其他 skill 装了就用它们的现成流程;没装时,这些片子也能用本 skill 从头做。

brief 是什么 用哪个
歌词 MV、有歌有角色的片子 ai-music-video(已有成片的完整流程)
已有 MV 要做“好玩版” mv-fun-pass
竖屏数学 / 概率科普 vibe-knowledge-video(VibeFX 组件库)
尺寸图、组件规格图的动画 dimensional-drawing-motion
一个仓库一段时间的 git 记录做成流程图短片 repo-film(基于本 skill)
其他代码动效:产品演示、物理、3D、粒子、数据动画、片头、转场 本 skill

流程

  1. brief → 一句话 + 节拍表。 写清时长、画幅(16:9 / 9:16 / 1:1)、帧率、每个节拍几秒发生什么,以及要不要声音。8–15 秒的片子最好控制;超过 30 秒先拆镜头。和用户确认节拍表再写代码,用户说“随便发挥”也要先给节拍表:创意由用户拍板,跳过这步做出的 GRAVITY 被评为“非常一般”。
  2. 挑库,越少越好。 查 references/libraries.md,一般 1 个画面库 + 0–1 个物理库 + 0–1 个声音库就够。20 个库功能大量重叠,不要为了用而用。许可证要看:Remotion 超过 3 人的公司需要买授权,p5 是 LGPL。
  3. 建项目。 复制 examples/drop/ 到用户指定的目录,改 package.json 依赖(写死精确版本,不用 ^),npm install。库从本地 node_modules 加载,不走 CDN;字体放进项目用 @font-face 引入。
  4. 重的模拟先离线烘焙。 上千个刚体时,用 Node 跑一次物理(bake.mjs),按片子帧率存成二进制轨迹,场景只读文件:8000 块 15 秒烘焙 40 秒,之后每次出图不再重算。
  5. 写场景(契约见下),并按 references/determinism.md 让每个库都做到“只看 t 画画面”。
  6. 自检,再给用户看:
    • node $KIT/render.mjs scene.html --pure:同一组时间点正序、倒序各画一遍,哈希必须一致。不一致说明某处依赖了上一帧,修好再往下。
    • node $KIT/render.mjs scene.html --sheet 0.5,2,4,6 --out beats.png:每个节拍出一帧拼成一张图,自己先看:构图、主体是否出画、文字是否被切、第一秒是否太乱。
    • 好看关卡(技术通过不等于好看,逐条对着拼图答“是/否”,有“否”就改,不交):
      1. 第 1 秒有钩子:一个清楚的主体 + 一次冲击(声音、震屏、扬尘)。
      2. 中段每 2 秒左右有新变化;没有超过 2 秒“什么都没发生”的段落。
      3. 结尾有揭示或反转,而且揭示之前确实藏住了(检查揭示前的每个节拍帧有没有提前露底)。
      4. 每个碰撞或转折都有反馈:声音、光、镜头至少一种。
      5. 缩到手机尺寸(360 px 宽)主体仍然认得出。
      6. 画面亮度:主体不发闷、白色不糊成一片(用保持色相的 NeutralToneMapping,辉光阈值放在主体最亮值之上)。
  7. 出片。 node $KIT/render.mjs scene.html --out out/film.mp4。场景有 audio() 会自动混进去;外部音频用 --audio file.wav。只重渲一段用 --from 2 --to 4。
    • 声音先于画面生成:audio() 出错会在一帧都没渲之前停下(退出码 4)并说明原因;只要画面就加 --no-audio。
    • 出片后自动用两遍 loudnorm 把响度调到 -14 LUFS(真峰值 ≤ -1.5 dBTP,峰值受限时会停在 -14.x),调整前后的数值写进清单 audio.loudness。声音短于 0.4 秒(如 --from 0 --to 0.1)或全静音时测不出响度,保持原样,audio.loudness.skipped 写明原因。目标改用 --lufs -16,保持原样用 --no-loudnorm。
  8. 交付前读清单 out/film.mp4.manifest.json:scene_errors 要为空,audio.loudness.after_lufs 在 -15 到 -13 之间,remote_requests 要为空(否则离线无法复现),fonts 要都是 loaded,libraries 里没有 NOT INSTALLED。交付时把 MP4、清单和项目目录一起给。

Read the full file on GitHub · 105 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed 5013886b5c17
  2. 1mo ago First seen · 105 lines · 221 tokens per session scan A 8f7d9051738d

Subscribe to this mod's changes

motion-stack is a skill published in the GitHub repository majiayu000/spellbook (303 stars, last pushed 4d ago), licensed MIT. It adds 221 tokens to every session and 4,988 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.

Related

motion-stack compared with skills from other repositories

motion-stack next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
motion-stackmajiayu000/spellbookSkill3034d agoMITA221Claude Code, Codex
cao-session-managementawslabs/cli-agent-orchestratorSkill1.9kyesterdayApache-2.0B83Claude Code
workflowzhinkgit/embeddedskillsSkill829yesterdayMITA65Claude Code
agent-deckasheshgoplani/agent-deckSkill1.4kyesterdayMITA63Claude Code, Codex
fast-resumeangristan/fast-resumeSkill198yesterdayMITA50Claude Code, Codex
pneuma-sessionpandazki/pneuma-skillsSkill1624d agoMITA127Claude Code, Codex
lov-organize-storagelovstudio/skillsSkill72todayMITA58Claude Code