Communitygithub.com

dashi-animationstyle

把一段 15–60 秒的中文口播做成某种画风的动画视频(1920×1080、30 帧/秒的 mp4,带口播和字幕,能直接拖进剪映)。画面全部由 Claude 用 HTML/Canvas 代码画、无头 Chrome 逐帧截图合成,不用生图模型。自带 7 套风格:扁平流程图、手绘笔记、复古报刊、复古剪纸、超现实拼贴、立体卡通、黑底科技。也能照用户给的一张参考图(或一段视频)做一套新风格(用法二),或按一段文字描述先出 2–3 个方向的静帧给用户挑、再定风格(用法三),附风格词典、讲解动画通用规则和动效知识(转场、次要动作、丰富度检查)。用户说「把这段口播做成动画」「用手绘笔记风格做」「有哪些风格」「照这张图的画风做」「我想要黑板报那样的感觉」「检查风格动画的环境」「先渲个例子看看」时使用。

dashi-animationstyle 是什么?

dashi-animationstyle is a Claude Code agent skill that 把一段 15–60 秒的中文口播做成某种画风的动画视频(1920×1080、30 帧/秒的 mp4,带口播和字幕,能直接拖进剪映)。画面全部由 Claude 用 HTML/Canvas 代码画、无头 Chrome 逐帧截图合成,不用生图模型。自带 7 套风格:扁平流程图、手绘笔记、复古报刊、复古剪纸、超现实拼贴、立体卡通、黑底科技。也能照用户给的一张参考图(或一段视频)做一套新风格(用法二),或按一段文字描述先出 2–3 个方向的静帧给用户挑、再定风格(用法三),附风格词典、讲解动画通用规则和动效知识(转场、次要动作、丰富度检查)。用户说「把这段口播做成动画」「用手绘笔记风格做」「有哪些风格」「照这张图的画风做」「我想要黑板报那样的感觉」「检查风格动画的环境」「先渲个例子看看」时使用。.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/huff7/dashi-animationstyle/tree/HEAD

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

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).

相关技能