code-mv-render

code-mv-render is a skill for Claude Code, Codex from Unclecheng-li/AI_Animation. It costs 246 tokens per session (3,574 once invoked), scanned A, original, MIT.

A reference library and workflow for making complete, time-synchronised videos with code, such as music videos, lyric videos, and data documentaries. It uses a frame-by-frame rendering approach so browser previews and offline exports can match.

In plain words
What is it for?
Use it when building coded music or lyric videos, narrated data animations, or other generated visuals that need timed motion, captions, transitions, and repeatable rendering.
Why use it?
Video projects can drift between what is previewed and what is exported, making timing and quality hard to check. This provides examples and a repeatable path from timeline and scenes through export and review.

Skill for Claude CodeCodex

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

Good fit Use it when building coded music or lyric videos, narrated data animations, or other generated visuals that need timed motion, captions, transitions, and repeatable rendering.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unclecheng-li/ai_animation/code-mv-render
About the project

AI Animation Skills is a collection of agent instructions and templates for generating single-file HTML animations, including presentations, diagrams, protocol visualizations, phone interfaces, and video-style scenes. People use the skills with AI coding agents to create animated web pages from descriptions or templates. The catalogue entries are the collection's individual generation workflows.

Unclecheng-li/AI_Animation · 1,596 stars · on GitHub

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 Unclecheng-li/AI_Animation --skill code-mv-render
Clone the repo
git clone --depth 1 https://github.com/Unclecheng-li/AI_Animation

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 code-mv-render

README.md
[![agentmods](https://agentmods.dev/badge/skills/unclecheng-li/ai_animation/code-mv-render/github.svg)](https://agentmods.dev/skills/unclecheng-li/ai_animation/code-mv-render)
Your own site
<a href="https://agentmods.dev/skills/unclecheng-li/ai_animation/code-mv-render"><img src="https://agentmods.dev/badge/skills/unclecheng-li/ai_animation/code-mv-render/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 code-mv-render

Your own site · 80×15
<a href="https://agentmods.dev/skills/unclecheng-li/ai_animation/code-mv-render"><img src="https://agentmods.dev/badge/skills/unclecheng-li/ai_animation/code-mv-render.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 246 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,574 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.00246 $0.03574
Opus 5.5 $0.00098 $0.01430
Sonnet 5.5 $0.00049 $0.00715
Haiku 4.5 $0.00025 $0.00357

Measured yesterday against content hash b73fcab22400, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-mv-render 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 yesterday.

The scan reads SKILL.md. This mod also ships 3 executable files (templates/export-video.mjs, templates/qa-stills.mjs, templates/transitions2d.js), 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/code-mv-render/SKILL.md · 193 lines

How it starts

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

代码渲染 MV 工程库(两支上游 + 一套自建实现)

本 Skill 不生成单页演示,而是一座**"整片视频渲染工程"参考库**:收录两支开源音乐视频工程,外加本库自建、已经导出成片的《CVE 编号破十万》数据纪录片实现。它们共用同一条底层原理——每一帧只是时间的函数(frame = renderFrame(t)),因此浏览器里的实时预览与离线导出的成片逐帧一致,可反复复现、可精确质检。要做同步视频时,从这里选最贴近的工程去 fork / 改编,而不是从零搭渲染管线。

你是什么

  • 面向"整片、带音轨或口播、逐帧确定"的视频(MV / 歌词视频 / 数据纪录片 / 生成式视觉),不是分镜演示页。
  • 提供的不只是参考工程,而是可执行的方法论 + 模板:镜头模型、转场库、运动语法、时间系统、导出与质检。
  • 与 video-shot-demos / swiss-shot-demos 的边界:那两者是"一镜一 HTML"的演示片段;本 Skill 管的是从时间轴到成片的整条工程链(分析 → 时间线 → 镜头 → 预览 → 导出 → 质检)。

三支参考工程

world-execute-me-lyric-mv pdoom-video 本库自建:CVE 编号破十万
类型 歌词 MV(对话叙事) 生成式 MV(逐字卡拉 OK) 数据纪录片(口播字幕驱动)
画面技术 Canvas 2D + WebGL2 three.js + TypeScript Canvas 2D,单文件 HTML
画面语言 聊天界面 / 三墨版画 / 代码 每片一个 GPU 场景 数据 / 界面 / 版画 三型交替
状态系统 颜色 = 状态(off/on/warm/error/ash/dead) 节拍吸附场景窗口 语义色:中性 / 里程碑 / 风险
同步依据 行级歌词时间 + cues 拍点 Demucs + CTC × Whisper 词级时间 口播字幕段 + 句内事件时间
导出 无头 Chrome 逐帧 → ffmpeg 无头 Chrome → WebSocket 帧 → ffmpeg 无头 Edge + captureStream → WebM → ffmpeg
亮点 成品级闪光安全、缩图表回归 块级自适应子帧运动模糊 单文件、零依赖、可直接改文案复用
许可 代码 MIT;剪影 CC BY-NC-SA;歌曲不在仓库 代码 MIT;歌曲不属 MIT 本库自建,可自由改写

动效框架(从原片抽取,已落到本库模板)

完整参数见 references/motion-system.md。核心是五层:

1. 镜头模型

{ id, at, lines, moment, layout, palette, enter, camera, render(ctx,t,f,u) }
  • moment 一句话说清"这是哪一刻",写不出来就是废镜头。
  • 切点必须落在拍 / 半拍 / 小节线;口播视频落在句子边界或关键词上。
  • render 是纯函数;camera 返回 {x,y,zoom,rot}。
  • 镜头内部三拍:入场(0.25–0.8s)→ 展开 → 由事件结束。

2. 十五种入场转场

cut / fade / glitch / scan / circle / diag / grid / zoom / shatter / dissolve / winclose / winpop / push / slices / flashcut

按语义选:scan = 打印/写入,grid = 参数/数据,winpop = 记录页/弹窗,glitch = 异常,zoom = 深入,circle = 聚焦,shatter = 推翻,flashcut = 大段落切换。支持 align: start|end|center 与 flash。一个视频最多用 4–6 种。

Canvas 2D 版已实现:templates/transitions2d.js(15 种,零依赖)+ templates/transitions-demo.html(逐段预览)。

3. 镜头内运动六条

  1. 缓动优先(机械计数/扫描线除外)。
  2. 错峰:主体 0ms,附属 +60–120ms,第三层 +180–300ms。
  3. 二次运动:落定后 1–2% 过冲或轻微回弹。
  4. 快速运动必须带模糊;静止背景不参与重绘。
  5. 禁止只做透明度;淡入必须伴随位移/遮罩/印刷揭示。
  6. 闪入要整块(1–2 帧),前面不加白场。

Read the full file on GitHub · 193 lines

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. yesterday First seen · 193 lines · 246 tokens per session scan A b73fcab22400

Subscribe to this mod's changes

code-mv-render is a skill published in the GitHub repository Unclecheng-li/AI_Animation (1,596 stars, last pushed 2d ago), licensed MIT. It adds 246 tokens to every session and 3,574 once invoked, about $0.0010 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-10-21.

Related

Other skills, from other repositories

fund-holding-viewer

A deployment guide for a Chinese fund-holdings analysis web app. It covers running the app on Alibaba Cloud ECS, a virtual server service, with HTTPS through either a subdomain or a path on an existing domain.

whjin/fundscope · 77 tokens

preline-mcp

Add, integrate, or build Preline UI components and blocks into HTML files via the Preline MCP server. Use when the user mentions "preline", says "/preline", asks to add a UI component, or requests a Preline block (a ready-made page section) using Preline UI.

htmlstreamofficial/preline · 66 tokens

preline-theme-generator

Generate, preview, save, or validate Preline theme CSS using the bundled local generator in this skill. Use when the user asks to create a new Preline theme, match a brand color, translate a mood into a theme, generate light and dark theme CSS, preview theme output without writing files, or review and fix generated…

htmlstreamofficial/preline · 89 tokens

phaser3-engineer

!cat skills/shared/game-visual-foundations.md 2>/dev/null || echo "=== Visual Foundations not loaded ===" !cat skills/shared/protocols/ux-protocol.md 2>/dev/null || true !cat skills/shared/protocols/input-validation.md 2>/dev/null || true !cat skills/shared/protocols/tool-efficiency.md 2>/dev/null || true !cat…

buiphucminhtam/forgewright · 71 tokens

Biome

Biome 2.x — fast all-in-one web toolchain in Rust. Formats, lints, assists. Replaces Prettier + ESLint.

pledgeandgrow/pledge-skills · 33 tokens

prettier-docs

Prettier 3.9.5 — opinionated code formatter. CLI, API, config, plugins, editor integration, CI.

pledgeandgrow/pledge-skills · 34 tokens