Communitygithub.com

dashi-animationstyle

Turn 15-60 second Chinese voiceover into animated videos in various art styles (1920x1080, 30fps mp4 with voiceover and subtitles, ready for CapCut). All visuals are drawn by Claude using HTML/Canvas code and captured via headless Chrome frame-by-frame, no generative image models.

What is dashi-animationstyle?

This AI agent skill, "dashi-animationstyle," allows you to transform short Chinese voiceover clips (15-60 seconds) into fully animated videos in one of seven distinct, pre-built art styles. The entire visual output is generated by Claude writing HTML/Canvas code, which is then rendered into a 1920x1080 mp4 video at 30fps by taking frame-by-frame screenshots using a headless Chrome browser—no external image generation models are needed. The skill is designed for integration with AI coding assistants like Claude Code, Cursor, or Codex, and includes a full pipeline for creating, rendering, and reviewing animations. Beyond the seven default styles (flat flowchart, hand-drawn notes, vintage newspaper, vintage paper-cut, surreal collage, 3D cartoon, and tech black), the skill supports two advanced usage modes: creating a new custom style based on a user-provided reference image or video (mode 2), or generating 2-3 static frame concepts from a text description for user selection before finalizing a style (mode 3). The skill also provides a comprehensive knowledge base covering style dictionaries, animation rules, and motion effects (transitions, secondary actions, richness checks), making it a powerful tool for developers seeking to create bespoke, code-driven animations efficiently.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/huff7/dashi-animationstyle/tree/HEAD

Ask in your favorite AI

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

Documentation

dashi-animationstyle: Style Animation (Produced by "Master's AI Workshop)

In the following, $SKILL refers to the folder containing this file (once installed, typically at ~/.claude/skills/dashi-animationstyle). Always replace paths in commands with actual paths; enclose paths with spaces or Chinese characters in quotation marks.

A voiceover + a style = a project folder containing all intermediate files and the final video:

<Project Folder>/
├── project.json      Configuration: style, voiceover, subtitles, storyboard, output filename (created by new-project.mjs, render.mjs reads defaults from here)
├── voiceover.wav      Voiceover audio (converted from m4a/mp3/wav/mov by new-project.mjs)
├── script.txt         Transcript of the voiceover (optional, improves accuracy)
├── subtitles.json/.srt Subtitles: sentences, display text, word-level timings (generated by subtitles.mjs)
├── storyboard.json/.md Storyboard: shots, keywords, fixed-color words (written by Claude)
├── timeline.js        Page timeline object window.TL (generated by generate-timeline.mjs)
├── index.html         Page (copied from style folder, modified by Claude according to storyboard)
└── <Folder Name>.mp4  Final video

Place the project folder in the user's own project directory (e.g., ./animations/<Name>_<Style>/, where ./ is your current working directory, usually the user's project folder). Do not put it inside $SKILL.

First-time Use: Verify the System Can Produce Videos (approx. 2 minutes)

  1. Check the environment: node "$SKILL/pipeline/self-check.mjs"
    • For items marked ✗, follow the prompts: Node must be v22+ (brew install node), ffmpeg (brew install ffmpeg), Chrome (install Google Chrome). The user must install these themselves; you only tell them what to install and how.
    • Fonts marked ✗: macOS on-demand fonts (Lantinghei, Helvetica Neue Rounded, Shoujin, Pianpian). Ask the user to open the Font Book app, search for the font name, and click "Download." Rendering works without them, but those fonts will fall back to PingFang.
    • whisper marked ! is optional: It works without it (uses a fallback based on script + silence detection).
  2. Have the user pick a style: node "$SKILL/pipeline/new-project.mjs" --list lists 7 styles. For a preview of each, see the 3 images in $SKILL/styles/<Style>/frames/ (use Read to view, or open to show the user). If the user has already specified a style, use that for a test render; otherwise, use "Hand-drawn Notes."
  3. Create a project using the built-in Token example and render it:
    node "$SKILL/pipeline/new-project.mjs" ./animations/token_handdrawn --style hand-drawn-notes --example token
    node "$SKILL/pipeline/render.mjs" ./animations/token_handdrawn/index.html
    
    This produces a 21-second video token_handdrawn.mp4 (a voiceover about "prompts and tokens"). Measured on Apple M2 Max, v1.3, when idle: 65 seconds for hand-drawn notes; 34–72 seconds for other styles (flat flowchart is fastest, tech black is slowest). After rendering, open the video for the user.
  4. Once the system can produce videos, proceed with the user's own voiceover (Mode 1).

Related Skills