Anime Video Gen logo

Anime Video Gen

Community
JianhuiWei7
anime-video-gen

动漫视频生成工具。输入可以包含需求、参考文本、参考图片、参考视频、参考音频;先理解输入并生成 plan.json,再生成一致性资产和分段四宫格剧情帧,最后逐段生成并合成连续动漫视频。适用于需要参考素材生成漫剧、国风动画、教学课件动画、剧情短片,并要求主体、场景、道具、风格和音频尽量一致的任务。

Overview

PublisherJianhuiWei7
RepositoryVideoWeaver
Skill nameanime-video-gen
Stars
48
Forks
1
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by JianhuiWei7 on GitHub. Read the source before you install it.

Installation

Install the Anime Video Gen AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/JianhuiWei7/VideoWeaver/tree/main/FINAL_EXPERT_SKILLS/anime-video-gen
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JianhuiWei7/VideoWeaver.git /tmp/VideoWeaver
mkdir -p .claude/skills
cp -r /tmp/VideoWeaver/FINAL_EXPERT_SKILLS/anime-video-gen .claude/skills/anime-video-gen
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Anime Video Gen in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Anime Video Gen on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Anime Video Gen is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Anime Video Gen

Overview

本技能支持根据用户提供的剧本、故事大纲等文本输入,生成高质量、剧情连贯的动漫视频,支持用户自定义视频时长、风格、画面细节等参数,确保视频中多次出现的人物、场景、物体等元素高度一致,符合影视制作标准。

工作流(严格按顺序执行,禁止跳步)

【极其重要】你必须严格按照以下1-6的步骤顺序执行,前置步骤未完成并输出结果前,绝对不允许提前执行后续步骤。

步骤1:需求解析与确认

不要跳步,这里需要调用vision-understanding来理解参考视频和extract-video-frame从参考视频提取帧
  1. 读取用户提供的文本输入(剧本、故事大纲等),提取核心要素:
    • 剧情主线、关键情节、角色设定、场景设定
    • 用户指定的视频时长、风格、画面比例、细节要求
    • 对剧情进行一定的扩写,有逻辑地扩写,包括人物说话的内容, 具体的事件细节。
  2. 调用 vision-understanding 读取用户提供的参考视频,先提取画风、色彩基调、分镜运镜、人物比例、场景质感和台词节奏,用于后续 plan.json、prompt 重写和视频生成。
    • 调用 extract-video-frame 从参考视频中抽取关键帧,作为后续风格、一致性资产生成的参考;尽可能均匀的从参考视频多抽取一些覆盖不同角色、场景、动作状态的参考帧。如果有人物或场景,注明一下
    • 对具体动作和人物表演,需要同时沉淀为可执行的动作描述和对应参考帧,说明人物在什么场景中做了什么,以及动作前后的状态变化。

步骤2:分镜规划

不要跳步,注意分镜的内容的丰富度

【前置检查】:请确认步骤1已完成,提取出了所有核心要素。

  1. 根据总时长和剧情结构,将视频拆分为多个生成片段;每个片段时长不得超过 video-gen 技能支持的最大时长15s。若参考文本,用户需求较单薄,需要在遵守核心剧情的前提下,从台词、人物动作,场景细节,人物反应和情绪推进等方面补充内容,尽量使每个 shot 都有明确的信息量,避免片段内容空泛或重复。
  2. 片段分割不能太细,每个片段时长拉满比较好,5-6个片段为最佳,制定分镜计划,生成plan.json文件, 使用get-output-dir获取的输出文件夹保存这个plan.json文件,包含每个片段的:
    • 剧情内容(对应视频生成prompt)剧情要进行适当地扩写, 特别是人物说话的内容,以及背景音乐的范围等。
      1. prompt重写时,要对传入的参考资料的占位符进行重新排序, 只考虑传入参考资料的顺序, 从[图1]开始,每个图占一个位置。比如只传入了3张图,那么按照传入的顺序,在单次调用应该使用[图1]、[图2]、[图3]的顺序,不需要给未使用的参考图的占位。
      2. 如果参考图之间有相关联,那么在prompt中要说明,比如[图1]手中拿着[图2]; [图1]中的角色被绑在[图2]中。
      3. 补充,完善主体的说话内容,包括人物说话的内容,以及背景音乐的范围等。 使用格式:主体A说了: "xxx", 主体B说了: "xxx"
      4. 每一个片段都需要说话内容,要丰富,多样,不重复。
      5. 每一个片段都需要考虑是否要加入 背景音和旁白,来帮助读者了解场景、人物、事件等。
      6. prompt进行重写时,剧情内容和具体细节需要详细描述,不能笼统地表达。
      7. 在生成连续镜头时,可以使用视频续写,在prompt里面禁止重复音频和说话的内容,并且显示的强调延续上一个视频的节奏/音色/背景音乐风格
    • 时长(秒)
    • 镜头数量
    • 场景描述
    • 出场角色/物体
    • 需要使用的一致性资产
  3. 分镜节奏符合影视规律:开篇铺垫→情节发展→高潮冲突→结尾落幕,卡点精准 这是一个输出的plan.json文件的例子
json
[ 
   {
      "segment_id": 1,
      "plot": "xxx",
      "duration": 10,
      "scene": "xxx",
      "characters": ["xxx", "xxx"],
      "subjects": ["xxx", "xxx"],
      "consistent_assets": ["xxx[尽可能地多]", "xxx", "xxx"],
      "other_customization": "xxx"
   },
   ...
]

步骤3:一致性资产生成

【前置检查】:请确认步骤2已生成 plan.json 并保存到了输出目录。

不要跳步,使用image-gen,模型固定为gpt-image-2,注意这里按照顺序,分别生成场景,角色,道具的参考图,在生成时注意要参考从视频中提取的帧
  1. 提取plan.json中所有的重复,多次出现的元素:角色、核心场景、关键道具、风格设定等。生成越多越好。
  2. 为每个元素生成对应的一致性资产:
    • 场景:调用 image-gen,并使用 gpt-image-2 模型生成统一的风格设定图;生成时需要结合需求和从参考视频提取的key-frame, 例如:参考[图1],生成符合xx风格的xx场景设定图。
    • 角色:调用gpt-image-2使用image-gen,必须使用gpt-image-2模型,如果这里在步骤1中调用``extract-video-frame`抽取的帧中有参考角色,这里提取对应参考角色抽取的帧作为风格锚定,如果没有,使用质量比较高的参考视频关键帧作为风格锚定 例如: 参考[图1],生成符合xx风格的xx人物设定图。包括正面,侧面,背面,纯白背景。
      • 一张图片中可以包含至多一个角色的三视图
      • 可以生成多个角色,主角,次要角色,配角等。生成的一致性资产越多,效果越好
    • 道具:调用gpt-image-2使用image-gen,必须使用gpt-image-2模型。这里需要参考从步骤1中调用``extract-video-frame`抽取的帧作为参考风格生成统一的道具图,并且保持纯白背景图。
      • 一张图片中可以包含至多一个角色的三视图
      • 可以生成多个道具。生成的一致性资产越多,效果越好
    • 音效/音乐:提前规划统一的音效风格和背景音乐
  3. 所有一致性资产保存在任务输出目录中,供后续片段生成复用

步骤4:分段四宫格剧情帧生成

不要跳步,使用image-gen,模型固定为gpt-image-2,这里注意参考前面生产的资产

【前置检查】:请确认步骤3中所有角色、场景等一致性资产已全部生成并保存。如果未完成,请立刻停止当前步骤,返回步骤3。

  1. 从plan.json中读取每个片段的剧情内容,生成对应的四宫格图片。
  2. 四宫格的生成需要选取:每个片段剧情相关的所有的一致性资产并且**加上上一个剧情片段都四宫格作为参考传入。**如果是第一个剧情片段的四宫格,那么不需要加上上一个剧情片段的四宫格。
  3. 四宫格生成调用技能image-gen, 并且model必须要设置为gpt-image-2, quality设置为auto,ratio为1:1, 这里只参考步骤三中生成的一致性资产,不参考前面视频的提取帧,prompt写上:生成一张4宫格图片,展示这个剧本的整体走向, 从左上角到右下角分别是1-4, 每个格子上面都需要有数字+简短文本介绍。参考[图1]的xxx, [图2]的xxx, [图3]的xxx, [图4]的上一个剧情片段的四宫格。要强调衔接上一个四宫格的第4张照片继续。新的四宫格要避免剧情重复。然后写上这个片段的剧本剧情,并且强调一下每个格子大致的主要内容。

步骤5:分段生成视频

不要跳步

【前置检查】:请确认步骤4中每个片段的四宫格剧情图片已生成完毕。如果未完成,请立刻停止当前步骤,返回步骤4。

  1. 按照分镜计划,逐段生成视频:
    • 使用video-gen技能生成每个片段,传入每个片段的四宫格剧情图片, 以和片段相关的所有的一致性资产, 和上一个片段的音频作为参考,来保证元素统一
    • 生成具体片段前,确保prompt已经被重写, 不能使用首帧生视频功能。Prompt应该是:参考[图1]的整体剧情(这里的图1指的是四宫格的图片),(图2到4指的是一致性资产的图片)以及[图2]的xxx, [图3]的xxx, [图4]的xxx, 生成xxx.
    • 每个片段生成超时设置为30分钟,避免生成失败 2. 在生成每个片段的时候,需要传入每个片段的四宫格剧情图片(只需要一张四宫格图片),来生成视频。 3. 在生成第n+1个片段的时候,必须使用n个片段的音频作为参考[使用split-audio技能来分割音频], 和第n+1个片段相关的一致性资产图, 和相对应的四宫格图片,来保持角色,场景,音频等元素的高度一致,避免不协调的情况。并且你需要在prompt里写明: 参考[音频1]的音色, 背景音乐,保持音频等元素的高度一致,剧情连贯,禁止重复音频里说话的内容和背景音乐。

步骤6:视频合并与后期处理

不要跳步

【前置检查】:请确认步骤5所有分段视频均已成功生成。如果还有缺失,立刻返回步骤5继续生成。

  1. 使用merge-video技能将所有片段合并为完整视频,保证片段衔接流畅
  2. 添加字幕、音效、背景音乐,匹配剧情节奏
  3. 导出最终成片,保存到用户指定的输出路径

依赖子技能

本技能依赖以下基础技能,执行过程中需直接调用:

  • image-gen:生成角色、场景等一致性资产图片
  • video-gen:生成单段视频内容
  • vision-understanding:检查生成的视频/图片内容是否符合要求
  • merge-video:合并多个视频片段
  • trim-video:裁剪调整视频片段时长
  • get-output-dir:获取任务输出目录路径

注意事项

  1. 元素一致性是核心要求:同一角色、场景、道具在不同片段中必须保持完全一致,不得出现人设崩坏、场景突变等问题
  2. 剧情必须连贯流畅,符合逻辑,无叙事断层
  3. 长视频生成需合理拆分片段,每个片段时长不超过视频生成API的最大支持长度
  4. 所有生成过程的超时时间需设置足够长(单片段生成超时≥30分钟,总任务超时≥60分钟),避免任务中途失败

Frequently asked questions

What does the Anime Video Gen AI skill do?

动漫视频生成工具。输入可以包含需求、参考文本、参考图片、参考视频、参考音频;先理解输入并生成 plan.json,再生成一致性资产和分段四宫格剧情帧,最后逐段生成并合成连续动漫视频。适用于需要参考素材生成漫剧、国风动画、教学课件动画、剧情短片,并要求主体、场景、道具、风格和音频尽量一致的任务。

Why use Anime Video Gen on TypingMind?

Because you install it once and use it with any model. Anime Video Gen is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Anime Video Gen in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/JianhuiWei7/VideoWeaver/tree/main/FINAL_EXPERT_SKILLS/anime-video-gen. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Anime Video Gen?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Anime Video Gen?

As many as you like. As long as a model supports skills, you can use Anime Video Gen with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Anime Video Gen AI skill free?

It is published on GitHub by JianhuiWei7. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇