Duyi Koubo Wide logo

Duyi Koubo Wide

Community
duyi2076
duyi-koubo-wide

把一镜到底的 16:9 中文横屏口播 MP4/MOV 剪成带左侧信息卡、可选右侧素材位的成片。逐词转写、AI 判定删除与断句、按原话剪辑、粗白字幕与蓝色关键词、成片复转兜底之后,可同时叠加左侧卡片,以及自动适配的图片、横屏视频或竖屏视频。支持 720p、1080p、1440×810、2K,不包含 4K。横屏不做顶部钩子。触发:横屏口播剪辑、口播加卡片、右侧放录屏、右侧放图片、画中画素材、duyi-koubo-wide。

Overview

Publisherduyi2076
Repositoryduyi-scripted-video-edit
Skill nameduyi-koubo-wide
Stars
39
Forks
5
Bundled files
22
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.

  • 22 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

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

Installation

Install the Duyi Koubo Wide 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/duyi2076/duyi-scripted-video-edit/tree/main/duyi-koubo-wide
  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/duyi2076/duyi-scripted-video-edit.git /tmp/duyi-scripted-video-edit
mkdir -p .claude/skills
cp -r /tmp/duyi-scripted-video-edit/duyi-koubo-wide .claude/skills/duyi-koubo-wide
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Duyi Koubo Wide 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 Duyi Koubo Wide 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 Duyi Koubo Wide 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.

横屏口播:剪辑 + 左侧信息卡 + 右侧素材

一条横屏口播,剪干净、配字幕,再在左上加一层跟着话走的信息卡;需要展示录屏、图片或补充视频时,右侧再出现一个自动适配比例的素材位。

本 Skill 是完整的横屏入口,不再调用 duyi-koubo-lite。它拥有自己的横屏样式、字体、文档和测试;只有转写、切点、时间轴、编码这些与画幅无关的算法来自内部共用引擎。以后改 Wide 的字号或卡片,不会改变 Lite;改共用引擎则必须让两套测试都通过。

横屏脚本按源片实际分辨率自适应:1440×810 为设计基准,720p、1080p、2K 等比缩放,字幕最大宽度为画面 60%。本 Skill 有三个明确特征:

  • 横屏不写顶部钩子(第 5 步跳过,非空会直接阻断)
  • 剪辑之后接一层信息卡(第 9–12 步)
  • 右侧素材是可选的第二视觉层:没传素材时与 2.0 版完全相同;传入后和左侧卡片共存

判断由你做,算术由脚本做。能用判断解决的不要写代码:挑哪张卡、写什么字、配哪句话,全是语义;只有「这句话什么时候说完」是算术。

这件事就四句话

你是这条片子的短视频导演。他用口播讲,你用卡片讲同一件事。

  1. 静音能看懂。 把所有卡片文字按顺序连读,能不能知道这条片子讲了什么。读不出来,这层就白做了。
  2. 他说到什么,卡上就是什么,一条一条跟着出。 他说四点,卡上就得四条;他说到第三点,第三条才亮。
  3. 一件他花五秒讲完的事,别配一张要读八秒的卡。 卡的重量要配得上他花在这件事上的时间。
  4. 卡要少,但每张可以挂很久。 十件事挑三件上卡,其余让观众看脸;挂多久看他什么时候换话题,不看已经挂了多久。

但开头是例外:前 2 秒必须有卡,前 20 秒不能留白。 前两秒是观众划不划走的分界; 开场卡之后要有信息卡接上,中间空白别超过 8 秒。

最后质检看一个数:平均每 10 秒要有一个信息点。 逐条显形的卡每条各算一个, 所以密度不够时先想想能不能把整体出现的卡改成逐条,而不是急着加卡。

剩下的都是这四句在具体情况里怎么落地。这四句记住了,别的忘了也能自己推。

节奏上记一个画面:观众在嗑瓜子。 平淡 → 小刺激 → 平淡 → 小刺激, 每张卡、每一条逐条显形就是一颗瓜子。不能一直塞(刺激密了就不是刺激), 也不能长时间空着(手一滑就走了),中间那段平淡是让下一颗重新变好吃。 所以密度不够时先想「有没有能改成逐条显形的卡」—— 一条一条给是十次小奖励,一把塞过去只是一次。

一条时间轴上的四个数

这四个数最容易混,画出来就清楚了:

     卡片出现          第1条  第2条  第3条        他开始讲下一件事
        ▼                ▼      ▼      ▼                 ▼
 ───────┬────────────────┬──────┬──────┬─────────────────┬──────►
        │                │←逐条间隔→│  │←───  hold  ───→│
        │                                                 │
        └────────────── 在场时间(没有上限)───────────────┘

  ⟵ 上一张退场 ───── 卡间间隔(有下限)───── 这一张出现 ⟶
这个数谁定有没有限
卡片出现evidence(他说完那句话),脚本算你不填
逐条间隔item_evidence,跟着他说话快慢没有下限,他说得快就出得快
hold你填下限「读完 +1.5s」,上限「他换话题」
卡间间隔前后两张卡的时刻决定有下限(信息流 5s / 长看 6s)

别把「读完 +1.5s」当上限用。 他围绕这张卡讲了两分钟,卡就该挂两分钟。

判断都在这四句里,数字都在下面的表里

要什么去哪查
怎么定叙事线、这个角色在干嘛references/09-导演.md
22 种牌分别什么时候用、字段怎么填、字数上限references/10-选卡.md
什么时候出、挂多久、不同平台的参考值references/11-节奏.md
渲染、合成、验收、故障排查references/12-合成.md
图片、横屏视频、竖屏视频在右侧怎么放references/13-右侧素材.md

走到哪一步读哪一份,不要一次全读完。

十二步

步做什么谁干详细规则
1探测画幅、真实帧时间、音轨起始脚本—
2豆包逐词转写脚本references/02-转写.md
3判定删哪些、纠哪些、断在哪、标哪处蓝词你references/03-判定.md
4序号铺成时间戳与最终稿脚本—
5顶部钩子—横屏跳过
6切点、拼接、烧横屏字幕、响度脚本references/06-样式.md
7成片复转,与最终稿逐字比对脚本—
8剪辑层验收你references/08-验收.md
9当导演:定视觉叙事线你references/09-导演.md
10挑舞台、写卡片与右侧素材、指证据你references/10-选卡.md、references/13-右侧素材.md
11由证据词推卡片与素材时刻,看数判节奏脚本报数 + 你references/11-节奏.md
12渲染透明层、合成、验收脚本 + 你references/12-合成.md

走到哪一步再读哪一份。 所有路径都从 Wide 自己的目录读取,不跨去 Lite。

第 9 步在做的事是当导演,不是配图。 他用口播讲一件事,你用卡片讲同一件事,两条线各自能独立读懂。判断标准:观众静音滑过去,只看卡片能不能知道这条片子在讲什么。

第 9 步和第 10 步分开是有原因的:先跳出来定整条叙事线(他说十个点,你出哪三个),再回到每个点决定用哪张牌。混在一起必然变成逐句配图,卡片数量失控。

开始第 9 步之前,先拿到带时间戳的分句稿:

bash
python3 $WIDE/cards.py --decisions "$W/decisions.json" --final "$W/成片.mp4" --outline

导演要对着「哪句话在第几秒」组织牌,否则判断不了节奏,写完才发现太密。

环境

剪辑需要 DUYI_ASR_TOOL / DUYI_ASR_ENV,信息卡另外需要 Node.js 22+ 与 HyperFrames 0.7.94。

跑法

十二步都从 Wide 自己的目录发起。工作目录始终是同一个绝对路径,每条片子新建一个目录。

bash
WIDE=~/.agents/skills/duyi-koubo-wide
STAGE=~/.agents/skills/duyi-stage
W=~/Videos/duyi-koubo/current/work

# ── 1–8:横屏剪辑。所有入口与样式都属于 Wide ──
cd $WIDE
python3 cut.py probe --source 原片.mov
python3 asr.py --source 原片.mov --work "$W"
#   你判定 → $W/edits.json:删除、纠错、断句、每条最多一处蓝色关键词
#   读 Wide 自己的 references/03-判定.md;没有明确重点的字幕不必标蓝
#   hook 必须留空
python3 plan.py --transcript "$W/transcript.json" --edits "$W/edits.json" \
  --out "$W/decisions.json" --md "$W/最终稿.md"
python3 cut.py cut --source 原片.mov --decisions "$W/decisions.json" --out "$W/成片.mp4"
python3 verify.py --final "$W/成片.mp4" --script "$W/最终稿.md" \
  --decisions "$W/decisions.json" --work "$W/verify"

# ── 9–10:你当导演 → $W/cards.json(可同时写 media) ──
#   先看带时间戳的分句稿,再读 references/09-导演.md、10-选卡.md、13-右侧素材.md
python3 $WIDE/cards.py --decisions "$W/decisions.json" --final "$W/成片.mp4" --outline

# ── 11:时刻由证据词推出来,你不许自己填 ──
cd $WIDE
python3 cards.py --cards "$W/cards.json" --decisions "$W/decisions.json" \
  --final "$W/成片.mp4" --out "$W/stage-plan.json"

# ── 12:渲染 + 合成 ──
python3 $STAGE/build.py --plan "$W/stage-plan.json" --out "$W/stage"
cd "$W/stage" && npx --yes hyperframes@0.7.94 check && \
  npx --yes hyperframes@0.7.94 render --format mov -o overlay.mov
python3 $STAGE/compose.py --base "$W/成片.mp4" --overlay "$W/stage/overlay.mov" \
  --out "$W/带卡成片.mp4" --force

cards.py 会把 成片.mp4 的真实宽高写进 stage-plan.json,build.py 据此直接渲染同尺寸 overlay:1280×720、1440×810、1920×1080、2560×1440 都按同一视觉比例生成,不放大低分辨率模板。 compose.py 再读取两个真实文件兜底:相同则直接叠加,同画幅不同时兼容缩放旧 overlay, 画幅比例不同则停止。

右侧素材也走同一份 stage-plan.json。build.py 会重新探测素材真实比例并复制进 composition, 竖屏落右侧竖卡、横屏落右上宽卡、近方形图片落右侧方卡;不拉伸、不手填像素坐标。

cards.py 会打出每张卡和每段右侧素材的时刻推导依据、导演规则警告、以及对不齐的词。看见警告先停下来查清楚,不要往下走。

cards.json 长什么样

你只写内容和证据,不写时刻:

json
{
  "pace": "feed",                 // feed 信息流 / watch 长看,影响节奏参考值
  "cards": [
    { "kind": "hook",             // 开场卡:不挂原话,时刻直接写
      "at": 0.4,
      "data": { "eyebrow": "14 MIN · 口播", "big": "把剪辑*整条流水线*交给 AI" },
      "hold": 3.5 },

    { "kind": "flow",
      "chapter": { "en": "THE LOOP", "zh": "每天在跑的那一圈" },
      "data": { "title": "录完就发,*中间不碰*", "items": ["录素材", "自动粗剪", "发布"] },
      "evidence": "录完就发中间不碰",
      "item_evidence": ["录素材", "自动粗剪", "直接发布"],
      "hold": 6.0 }
  ],
  "media": [
    { "id": "m01",
      "source": "/绝对路径/录屏.mp4",
      "evidence": "给你看一下实际画面",
      "hold": 6.0,
      "media_start": 12.5 }
  ]
}
  • pace —— 顶层字段,feed(信息流)或 watch(长看)。它真的会改变 cards.py 的报警线 (密度、空窗、开场时机各一套),不是标签。判断依据见 references/11-节奏.md。
  • evidence —— 这张卡整体对应最终稿里的哪段原话。脚本据此算出「说完了」的时刻,卡片不早于它出现。
  • item_evidence —— 每一条对应的原话,逐条显形的时刻各自算。 条数必须和 items 一样多,对不上脚本会拦住 —— 少写一条那条永远不会显形。
  • at —— 只有开场卡 hook 用,直接写秒数。它讲的是整片主题、不对应任何一句话,所以不需要证据。
  • hold —— 停留几秒。整体出现的卡从底板算起,逐条显形的卡从最后一条算起(与 cards.py 一致)。 不写默认 6.0。下限「读完 +1.5s」,上限看下一张卡什么时候要出现 —— 详见 references/11-节奏.md。
  • sub 等次要字段可以不写,模板会自动省掉那一行(写了 {sub} 会渲进画面的老 bug 已修)。
  • accent —— 省略即蓝色,写 "gold" 转金色。留给引用、人声、数值,一条片子别超过两三张卡用。
  • *星号* 包住标题里那一个词,渲染成强调色,一张卡只允许一处。
  • media —— 可省略。每段只写素材路径、连续原话 evidence、停留时间;视频可用 media_start 指定从源素材第几秒开始。不要写坐标或 start,比例与出现时刻由脚本处理。
  • 右侧素材一次只出现一段;互相重叠会阻断。视频默认静音,原口播音轨继续原样保留。
  • 详细位置、比例阈值、支持格式与不适用场景见 references/13-右侧素材.md。

cards 必须按时间先后排列。 脚本拿一个只向后走的游标找证据,顺序写反会报「证据在最终稿里找不到」—— 那不是证据错了,是顺序错了,这个错误信息会把你带偏。

term 卡写了 kicker 就别再写 chapter,同一帧里两个都出现是重复的层级。

「原话」在三个地方是三种严格程度

这三条以前被压成一句「必须是原话的子序列」,实跑时第一版 evidence 就因此写错、直接报错退出:

写在哪要求例
evidence / item_evidence连续原话,一字不差,脚本逐词滑窗严格匹配他说「你要干什么事」,就得写「你要干什么事」
items / 正文 / 引用子序列,可以只取其中几个字,但不能新造原话「你要干什么事」→ 卡上「要干什么」✅,「明确目标」❌
title可以概括,但概括出的数量必须和他说的条数一致「提示词四件事」✅(他确实说了四条),「三件套」❌

硬边界

  • Wide 的入口、字幕、字体、画幅限制、文档和测试均以本目录为准,不调用 Lite
  • 共用引擎只承载与画幅无关的算法;改它时 Lite 与 Wide 必须一起回归
  • 横屏不写顶部钩子
  • 只接受 16:9 横屏;竖屏改用 duyi-koubo-lite,非 16:9 另定版式合同
  • 卡片只做视觉层:不改口播文字、不改剪辑点
  • 右侧素材只做静音画面层:不替换底片、不混入素材音轨、不改变口播音频
  • 图片、横屏视频、竖屏视频都保持原比例;同一时刻最多一段右侧素材,底边不得进入字幕安全区
  • items 与正文是原话的子序列,evidence 是连续原话,title 可概括但数量要对上(见上表)
  • 信息卡的时刻一律由 cards.py 从证据推导,你不许自己填。 只有开场卡 hook 用 at 直接写, 因为它不对应任何一句话。自己填信息卡的时刻 = 剧透事故(卡上写着「三倍」而他还没说到)
  • 节奏(密度、开场时机、卡间间隔)随发布场景变,参考值与判断依据见 references/11-节奏.md。 cards.py 报数并按 pace 给报警线 —— 报警不等于不能交付,但要你看过并说得出为什么

发现脚本有 bug 怎么办

先停下来说,不要绕过去。 这条写在这里是因为实跑真撞上过:cards.py 算出来的时刻 比成片实际早了两秒多,两个执行者一个另写脚本重算、一个原样交付带偏差的成片, 两种处理都合理,但都不该由执行者自己决定。

按这个顺序:

  1. 量化它。 拿一个不同源的东西去对(成片文件本身、复转稿、音量包络), 把偏差列成表 —— 「感觉不太对」推动不了任何事,一张偏差表可以。
  2. 不要改业务逻辑绕过它,尤其不要为了让画面看起来对而偷偷调 evidence 或手填时刻。 那样画面是准了,bug 被掩盖,下一条片子再踩一次。
  3. 可以在工作目录里另写一次性脚本做补偿,产出能交付。但要在交付说明里写明 「这条成片用的不是 skill 原样产出的时刻」,否则下游会以为 skill 是好的。
  4. 报上来。 附上第 1 步的偏差表和你的修法建议。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Duyi Koubo Wide AI skill do?

把一镜到底的 16:9 中文横屏口播 MP4/MOV 剪成带左侧信息卡、可选右侧素材位的成片。逐词转写、AI 判定删除与断句、按原话剪辑、粗白字幕与蓝色关键词、成片复转兜底之后,可同时叠加左侧卡片,以及自动适配的图片、横屏视频或竖屏视频。支持 720p、1080p、1440×810、2K,不包含 4K。横屏不做顶部钩子。触发:横屏口播剪辑、口播加卡片、右侧放录屏、右侧放图片、画中画素材、duyi-koubo-wide。

Why use Duyi Koubo Wide on TypingMind?

Because you install it once and use it with any model. Duyi Koubo Wide 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 Duyi Koubo Wide in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/duyi2076/duyi-scripted-video-edit/tree/main/duyi-koubo-wide. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Duyi Koubo Wide?

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 Duyi Koubo Wide?

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

Is the Duyi Koubo Wide AI skill free?

It is published on GitHub by duyi2076. 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 👇