aladin-drama-subtitle

Aladin drama subtitle workshop: generates burnable subtitle files directly from storyboards, offering structured timelines based on storyboard durations, multilingual translated subtitles, ASS burn-in styles and dubbing-alignment references; operates fully locally with zero dependencies and no line outbound transmission.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "aladin-drama-subtitle" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ac880445d9b2c51a3bb0d23140f3b6f3907c8a46f6d3eebeb1b8d7381ab97036. Verify the upstream source and version against https://skillhub.cn/skills/user_d18c97ea/aladin-drama-subtitle before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Aladin drama subtitle workshop: generates burnable subtitle files directly from storyboards, offering structured timelines based on storyboard durations, multilingual translated subtitles, ASS burn-in styles and dubbing-alignment references; operates fully locally with zero dependencies and no line outbound transmission.

0 Downloads

Introduction source: third_party · user_d18c97ea · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: aladin-drama-subtitle
slug: aladin-drama-subtitle
version: 1.0.0
displayName: 阿拉丁·AI短剧字幕工坊|剧本台词→SRT/ASS·多语言字幕·烧录样式·时间轴对齐
summary: 阿拉丁出品的 AI 短剧字幕工坊:把分镜剧本的台词从「源头」直接生成可烧录的字幕文件,比通用字幕后处理工具多出基于分镜 duration 的结构化时间轴、多语言翻译字幕、烧录样式(ASS) 与配音对齐基准,且纯本地零依赖、台词不外传。
description: 阿拉丁·AI短剧字幕工坊把「分镜剧本台词→SRT/ASS 字幕」从「手动对轴 / 依赖通用字幕后处理 / 上传台词到云端翻译」升级成一条纯本地零依赖工具链:按分镜 shot.duration 连续排布时间轴、台词→序号/起止时间/角色/文本、生成 _subs.srt 纯时间轴 + _subs_ass.txt 草稿 + subs.json 结构化列表、sub_style.py 产出可烧录 subtitle_style.ass(白字黑描边底部居中 + 角色分色 + 双语并排)、sub_report.py 产出 subs.md 字幕稿 + 自包含 subtitle_board.html 看板。比 skillhub 已发布的 aladin-subtitle-forge(通用字幕后处理,吃已存在的 SRT/VTT)定位不同——本款从剧本源头生成字幕(台词→时间轴),是短剧流水线第 5 环;比 seedance-prompt-expert 等单点多出 结构化时间轴 + 多语言翻译字幕 + 烧录样式 + 配音对齐,全程不需要 pip 安装 / 第三方服务 / 联网,离线可用。触发词:AI短剧字幕、剧本台词字幕、台词 to SRT、台词 to ASS、字幕烧录、字幕样式、多语言字幕、配音对齐字幕、分镜字幕、时间轴对齐、aladin 字幕、aladin drama subtitle、drama subtitle、script to subtitle、台词字幕生成、SRT 生成、ASS 生成、字幕看板。
category: video
license: MIT
platforms:
  - WorkBuddy
  - QClaw
  - ima
homepage: https://skillhub.cn
author: adam
company: 阿拉丁
tags:
  - 阿拉丁
  - aladin
  - AI短剧
  - 字幕
  - subtitle
  - SRT
  - ASS
  - 台词
  - 台词字幕
  - 烧录
  - 多语言字幕
  - 配音对齐
  - 时间轴对齐
  - 分镜字幕
  - 剧本转字幕
  - 字幕样式
  - 字幕看板
  - script to subtitle
  - drama subtitle
  - 短剧流水线
agent_created: true

阿拉丁·AI短剧字幕工坊(aladin-drama-subtitle)

阿拉丁出品,AI 短剧创作闭环第 5 环(字幕)。你用 aladin-drama-script 写出了分镜剧本、用 aladin-drama-edit 剪出了时间线——但「台词变成屏幕上能烧录的字幕」这一步,多数工具只做单点后处理:要么吃已经存在的 SRT/VTT 去改样式(如 skillhub 的 aladin-subtitle-forge),要么只管 Prompt 生成(如飙升的 seedance-prompt-expert)。本技能从剧本源头生成字幕——按分镜 duration 连续排布时间轴、台词→序号/起止时间/角色/文本,再叠加烧录样式(ASS)与多语言并排,全程纯本地零依赖、台词不外传,是短剧流水线里「对轴 + 烧录 + 配音对齐」的关键一环。

它解决什么痛点

短剧字幕常见的断点:

现有技能 / 做法 只做 不做
aladin-subtitle-forge(通用字幕后处理) 改已存在 SRT/VTT 的样式 不从剧本生成时间轴、不管配音对齐
seedance-prompt-expert(Prompt 单点) 生成画面 Prompt 不产出字幕、不对轴
在线字幕平台 上传台词云端翻译 台词外传、需联网、有费用
手工对轴 人工敲时间码 慢、易错、不可复算

本技能 = 剧本→字幕全链路:按分镜 duration 自动对轴(可复算)、白字黑描边底部居中烧录样式、角色分色、双语并排、结构化 JSON 供配音对齐,且比上述单点多出 结构化时间轴 + 多语言翻译字幕 + 烧录样式 + 与配音对齐。

与 skillhub 现有技能 + 自家 aladin 系列的差异化

能力 通用字幕后处理(aladin-subtitle-forge) 阿拉丁·AI短剧字幕工坊(本款)
从剧本源头生成时间轴 ✗(需已有 SRT/VTT) ✓ 按 shot.duration 连续排布
台词→序号/起止/角色/文本 部分 ✓ 结构化
烧录样式 ASS(白字黑描边/底部居中) 部分 ✓ 完整可烧录 subtitle_style.ass
角色分色 ✗ ✓ 自动分配高对比色
多语言翻译字幕(双语并排) ✗ ✓ 结构预留 + Hy3 回填
配音对齐基准(结构化 JSON) ✗ ✓ subs.json 供 dub 对齐
离线字幕看板 HTML ✗ ✓ 自包含内联
零依赖 / 离线 / 台词不外传 部分需联网翻译 ✓ 纯标准库

何时触发

  • "把剧本台词生成字幕 / 台词 to SRT / 台词 to ASS"
  • "给短剧烧录字幕、加字幕样式(白字黑边底部居中)"
  • "按分镜时间轴对轴、时间轴对齐"
  • "生成多语言字幕、双语字幕、台词翻译字幕"
  • "角色分色字幕、字幕看板预览"
  • "给配音做字幕对齐基准"
  • 用户给出 aladin-drama-script 的 _script.json 或 aladin-drama-edit 的时间线,想落地成可烧录字幕

何时不触发

  • 用户要后处理已存在的 SRT/VTT(改样式/打轴校正)——用 aladin-subtitle-forge
  • 用户要生成画面 Prompt / 视频生成——用 seedance-prompt-expert 等
  • 用户要剪辑/合成成片——用 aladin-drama-edit(本款只产出字幕文件供其烧录)
  • 用户要配音/变声/音色——用 aladin-drama-dub(本款产出是对齐基准)
  • 用户要发布/投放/流量分析——用 aladin-drama-publish / aladin-drama-traffic
  • 用户要搜索/安装别人的技能——用 find skill / skillhub install

能力边界

能做:

  • 时间轴生成:遍历 episodes→scenes→shots,按 shot.duration 连续排布起止时间,无台词 shot 推进时间但不生成字幕
  • 字幕条目:每条含 序号 / 起止时间(SRT+ASS 双格式) / 角色 / 文本 / 翻译占位
  • 结构导出:subs.json(meta + subtitles 列表,供配音对齐与二次加工)
  • 烧录样式:subtitle_style.ass(白字黑描边、底部居中 Alignment=2、角色分色、--bilingual 双语并排)
  • 字幕稿:subs.md(按场景分组)+ subtitle_board.html(自包含看板,内联 CSS/JS)
  • 多语言:记录 target_lang,翻译字段由 Hy3 模型按目标语言回填(不臆造)

不能做:

  • 不能真实翻译:脚本只留 transl 占位,翻译由 Hy3 模型基于目标语言生成(→ 不臆造)
  • 不能识别视频里已有语音生成字幕(本款基于剧本台词,非 ASR)
  • 不能渲染/合成成片(只产出字幕文件,烧录交给 aladin-drama-edit)
  • 不能保证100% 时长精确(duration 来自剧本估算;实拍剪辑后可由 edit 时间线回灌微调)
  • 不能绕过 skillhub 安全审核

输入输出规范

输入(任选其一):

  • --script:script.json 路径(aladin-drama-script 产出的 _script.json,含 episodes[].scenes[].shots[],每 shot 有 dialogue/character/duration)
  • --lang:源语言代码(默认 zh)
  • --translate:目标翻译语言代码(可选,如 en/ja,仅写入 meta,翻译由 Hy3 回填)
  • 输出统一写入 --out 目录

输出(位于 --out):

  • _subs.srt:纯时间轴字幕(序号 / 起止 / 文本,角色以 [角色] 前缀)
  • _subs_ass.txt:ASS 草稿(含 [Script Info]/[V4+ Styles]/[Events] 框架)
  • subs.json:结构化字幕列表(meta + subtitles,配音对齐基准)
  • subtitle_style.ass:完整可烧录样式(白字黑描边底部居中 + 角色分色 + 双语并排)
  • subs.md:字幕稿(按场景分组)
  • subtitle_board.html:自包含字幕看板(离线可开,展示时间轴与样式预览)

工作流

Step 1:剧本台词 → 时间轴字幕(sub_gen.py)

PY="C:/Users/adam/.workbuddy/binaries/python/versions/3.13.12/python.exe"
SKILL="<本技能目录>"
"$PY" "$SKILL/scripts/sub_gen.py" --script "./_script.json" --lang zh --translate en --out ./build

产出 _subs.srt + _subs_ass.txt + subs.json(transl 字段为空,待 Hy3 回填)。

Step 2:生成可烧录样式(sub_style.py)

"$PY" "$SKILL/scripts/sub_style.py" --subs ./build/subs.json --bilingual --out ./build

产出 subtitle_style.ass(白字黑描边、底部居中、角色分色;双语并排需 subs.json 中 transl 已回填)。

Step 3:字幕稿 + 看板(sub_report.py)

"$PY" "$SKILL/scripts/sub_report.py" --subs ./build/subs.json --out ./build

产出 subs.md(按场景)+ subtitle_board.html(自包含看板)。

Step 4:由 Hy3 回填翻译(如启用 --translate)

读取 subs.json,基于 target_lang 由 Hy3 模型逐条生成 transl 翻译写回,再重跑 Step 2/3 得到双语并排字幕与看板。

复用资源

文件 用途 加载时机
references/usage-examples.md 4 个完整场景(单集单语 / 双语并排 / 角色分色 / 配音对齐)+ 最佳实践 + FAQ 用户要具体样例或落地参考时加载
references/subtitle-formats.md SRT / ASS 规范、时间码格式、样式字段含义、烧录要点 Step 1/2 异常或用户问"ASS 怎么烧录"时加载
references/ir-schema.md 字幕中间表示(IR)结构:script 输入契约 + subs.json 输出契约 对接 edit / dub 或用户问数据契约时加载

重要约束

  • 零依赖:三脚本仅用 Python 标准库,离线可跑,不要求 pip 安装(→ Reliability)
  • 不乱码:中文走 UTF-8 / UTF-8-SIG,ASS 用 &H00FFFFFF 白字,不做无根据编码猜测(→ Trust)
  • 不编造内容:翻译字段默认留空,由 Hy3 模型基于真实台词与目标语言生成,不预置假翻译(→ Trust)
  • 可复算:时间轴完全由 shot.duration 决定,同输入必得同输出(→ Reliability)
  • 台词不外传:纯本地处理,不上传任何台词到云端(→ Trust)
  • 结构化优先:subs.json 既供烧录也供配音对齐,不丢字段(→ Convention)
  • description 单行:禁用 YAML 多行语法,保持可发布(→ Convention)

与 aladin 短剧系列关系(数据契约)

本技能是 aladin AI 短剧创作闭环第 5 环(字幕),上下游契约如下:

aladin-drama-topic   ──题材/选题──>  aladin-drama-script ──剧本──>  aladin-drama-edit ──成片──>  aladin-drama-publish ──数据──>  aladin-drama-traffic ──反哺──>  topic
                                                  │                        │  ▲                     │
                                                  │  _script.json          │  │ --subs              │
                                                  ▼                        ▼  │                     │
                                        aladin-drama-subtitle(本款) ──_subs.srt/_subs.ass/subs.json──┘ (烧录)
                                                  │
                                                  └── subs.json ──对齐基准──> aladin-drama-dub(配音)

数据契约:

  • 吃(输入):aladin-drama-script 产出的 _script.json,结构为 episodes[].scenes[].shots[],每 shot 含 dialogue / character / duration;也可吃 aladin-drama-edit 回灌的时间线(覆盖 duration)。
  • 出(输出):_subs.srt / _subs_ass.txt / subs.json 供 aladin-drama-edit 的 --subs 输入烧录;subs.json 同时作为 aladin-drama-dub 的对齐基准(按序号/起止时间对齐配音轨)。
  • 向后流转:edit 出成片喂 publish;publish 后数据喂 traffic;traffic 反哺 topic,形成闭环。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 直接解决短剧创作流水线中字幕生成的核心痛点,从剧本源头生成结构化时间轴字幕
  • 填补现有工具空白,比通用字幕后处理工具多出基于分镜duration的结构化时间轴、多语言翻译字幕、烧录样式与配音对齐基准
  • 纯本地零依赖、台词不外传,符合阿拉丁短剧生态闭环需求
Trigger Precision85/100

Areas to improve

  • 触发词覆盖不全 Reported severity: Minor

    触发词中未显式包含'ASS生成',虽然可通过'字幕样式'覆盖,但建议补充以增强精准度

    Recommendation: 在触发词中补充'ASS生成'以完善覆盖

Highlights

  • 触发词覆盖合理,包含多种变体如'台词 to SRT'、'字幕烧录'、'分镜字幕'等
  • 边界清晰,与aladin-subtitle-forge等工具定位明确区分
Structure and Standards90/100

Highlights

  • Phase/步骤清晰,有明确出口条件,含端到端示例
  • frontmatter完整,单文件≤500行
  • 文档结构完整,包含痛点分析、差异化对比、能力边界、输入输出规范等
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常
  • 不可逆操作有确认机制,零依赖设计提升可靠性
  • 可复算设计确保同输入必得同输出
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • skillhub.cn

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.