Content RadarUpdated 27 Nov, 13:35 PKT
All stages / Visual Generation

code-animation-prompts

Style prompt library and workflow for code-driven animations (HTML/MP4), 16:9 and 9:16, no audio.

NewFreeSkillVisual GenerationPacing & EditAnimationReels & shortsUpdated 22d ago
★ 1.6kGitHub stars

⚠ Runs code on your machine. Read the source before installing.

Cost: Free From the README: 技能提供风格参考与制作流程,视频仍需由编程助手编写并在本地渲染。只查风格不需要 API Key 或付费图像服务;助手本身的使用费用由相应平台决定。

What it does

A Claude Code and Codex skill that bundles 341 code-animation style prompts (196 with reference stills) in 10 series, plus a visual style picker and a production workflow. You pick a numbered style, such as B3 particles or Z5 paper-cut. The coding assistant then writes an editable HTML animation with keyframes. Optionally, a bundled script renders it to MP4 locally with Playwright, Chromium and FFmpeg.

Where it fits your pipeline

It is a side tool and doesn't fit the main flow of story, episodes, Kling clips and ffmpeg join. It does not generate live-action clips, so it won't fix hooks or tension in the story. It can make stylized inserts, such as title cards, episode intros, recaps, text-reveal stingers and animated transitions. You can cut these in with ffmpeg alongside the Kling clips to add visual variety and energy to the edit. It doesn't help with review or QC.

Install

  • git clone https://github.com/XiaoyeCodes/code-animation-prompts.git

Then copy the skill's folder into ~/.claude/skills/.

How to use

/code-animation-prompts 用 Z5 剪纸做一段 12 秒的新年片头,16:9。文字是“新的一年,万事可期”,红纸、米色宣纸、层叠阴影。先做可编辑 HTML 和关键帧,声音先不加;环境具备依赖时导出 MP4。

An editable HTML animation in the chosen style, keyframe preview images, and an MP4 if Playwright, Chromium and FFmpeg are available. Otherwise the assistant should say which rendering dependency is missing. If you haven't picked a style, ask for 3 numbered candidates and a recommendation.

How it works

flowchart TD
A[Idea or theme] --> B[Browse styles in picker HTML or STYLES.md]
B --> C[Choose numbered style]
C --> D[Ask Claude Code with the skill]
D --> E[Assistant writes editable HTML animation]
E --> F[Keyframe preview]
F --> G{Render deps installed?}
G -->|yes| H[render_video.py exports MP4]
G -->|no| I[Assistant reports missing dependency]
H --> J[Join into episode with ffmpeg]