技能图谱SKILLSGROVE
技能图谱/视频制作/suihe1/short-drama-production/short-drama-director

short-drama-director

安装

$npx skills add https://github.com/suihe1/short-drama-production --skill short-drama-director
$git clone --depth 1 https://github.com/suihe1/short-drama-production.git /tmp/short-drama-production && mkdir -p ~/.claude/skills && cp -r /tmp/short-drama-production/skills/short-drama-director ~/.claude/skills/short-drama-director
请帮我安装这个 Agent Skill:https://github.com/suihe1/short-drama-production/tree/dbd3310d92a68da532b432497a5b964d0383594f/skills/short-drama-director ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · Apache-2.0把剧本转成表演、场面调度、镜头覆盖、景别、机位、运镜与剪辑意图,产出可校验导演镜头包。用于导演方案、拍法、镜头诊断和分镜重构;只要求大纲、剧本或资产设定时不触发。
以下 SKILL.md 内容转载自 suihe1/short-drama-production(提交 dbd3310),依据 Apache-2.0 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 owner or entity authorized by 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

输入与创作权限

先读用户实际材料与目标,复用已确定的事实和规格;已有剧本、资产或分镜直接进入相关工作,不为流程完整重写上游。未授权的删线、合人、改变人物身份、主题、结局或重要表演意图,先展示原位置、具体方案与得失,再由用户选择;已授权的局部修正直接完成。

下面的类型经验、批次和创作预算是适配起点,不是用户接受过的创作要求。旧校验器可能仍将部分经验规则报为失败:区分实际数据/引用/模型接口错误与创作建议,说明不适用项,保留原稿;不伪造字段、不静默改戏或降低技术投产要求。总控可用时参考其 references/creative-agreement.md;独立任务按本段处理,不强制依赖总控。

Short Drama Director

把剧本中的戏剧行动,翻译成能拍、能剪、能生成的视听方案。先做导演判断,再做镜头;不要把景别词和运镜词随机贴在台词上。

本文件中的 references/... 与 scripts/... 均相对本 skill 目录。执行脚本时把工作目录设为本 skill 目录,输入与输出文件使用绝对路径;不要假设用户项目根目录恰好包含 scripts/。

必读与按需参考

开始导演设计前,完整阅读:

  • references/directing-workflow.md:拆戏、调度、镜头组织和导演复盘。
  • references/visual-grammar.md:景别、机位、镜头运动、轴线、构图、镜头衔接。
  • references/schema.md:director-package.json 的字段与质量门。

现实主义题材涉及交通、医疗、办公、公安司法、政务或工业流程时,同时完整阅读 ../short-drama-production/references/reality-grounding.md。先固定真实设备、空间拓扑和人流,再设计调度;不得用“电影感”填补不懂的现实流程。

只有需要 AI 视频生成提示词、模型适配或投产批次时,再读 references/ai-video-production.md。目标为 MiniMax H3 时必须同时使用官方 h3-prompt-writing skill:导演包提供调度、构图、机位、运镜、声音和参考职责,官方 skill 负责最终模式格式。指定模型与参考文档冲突时,以用户给定模型的官方文档为准,并记录采用的模式与假设。

输入边界

按以下优先级读取输入:

  1. script.json:最佳输入。保留原有集、场、节拍、台词与动作,不改写剧情事实。
  2. 剧本文本:先编号为集、场、源节拍,再进行导演设计。
  3. outline.json 或梗概:可以制作“导演预案”,但要把未落成的台词、动作和连续性标为假设;不要伪装成可直接拍摄的定稿。
  4. 已有分镜:进入诊断/重构模式,保留有效镜头,只改有明确理由的部分。

若缺少画幅、单集时长或生成模型,采用以下默认值并写进 assumptions:优先继承 production.json 和已批准输入;独立任务未指定时采用 16:9、24 fps、按输入目标时长、模型无关。模型无关方案默认后期 TTS;用户明确采用 H3 时,默认 h3-ref2va + h3-native-reference,主要说话角色缺少声音母版就列为缺失资产,不静默改成随机音色。缺失信息不阻断导演设计,除非不同选择会彻底改变叙事或交付形式。

核心工作流

1. 建立源节拍账本

使用脚本将上游 script.json 转成导演骨架:

node scripts/director-kit.mjs seed path/to/script.json > director-package.json

每个源动作或台词生成稳定的 beatId。镜头中的 beatRefs 表示该镜头主要承载的节拍;跨镜继续的台词或声音只放入 audioCarryRefs。不漏拍、不凭空添拍,新增内容放入 inventedBeats 并说明必要性。

2. 先写“戏”,再写“拍法”

逐集明确:本集问题、冷开场承诺、关键转折、高潮、结尾悬念、情绪曲线。

逐场明确:谁想要什么、谁/什么阻碍、场内转折、价值变化、权力变化、可利用的空间关系。把抽象情绪改写成可见行为,例如“忍耐”变成“先把证据扣在掌心,再把手摊开”。

3. 设计场面调度

先定义人物位置、视线、行动路径、道具交接、进出方向、轴线和空间层次,再选择机位。调度必须制造或改变关系;人物没有行动,摄影机通常也不该无理由游动。

每场至少记录:

  • geography:观众需要理解的空间关系。
  • axis:主轴及越轴策略。
  • blocking:动作触发点与落位。
  • continuityIn / continuityOut:姿势、视线、道具、屏幕方向和情绪状态。

现实敏感场景还必须从 reality-audit.json 继承 mustHave、topology、flow 与 peoplePolicy。导演可以选择观看角度,不能把安检、就诊、办事或生产流程改造成另一行业的通用空间;背景人物也必须服从入口—操作—出口方向。

4. 用镜头组织信息与权力

每个镜头先填 dramaticPurpose,只能为了揭示、隐藏、强调、反应、对比、转移权力、建立空间或完成转场而存在。随后决定:

  • 景别与角度:观众离谁更近,谁掌握画面权力。
  • 构图与前后景:关系如何被空间可视化。
  • 镜头运动:由人物、信息或权力变化触发;必须有起点、触发、路径和终点。
  • 画面内运动:与摄影机运动分开设计,明确主体、道具和环境运动的起始状态、触发、发展与落点;静止机位不等于静止画面。
  • 焦段:服务距离感、透视和表演,不把“85mm”“电影感”当装饰词。
  • 切点:切在信息变化、动作峰值、视线转移或反应价值上,而不是平均切碎台词。
  • 节奏:按信息可读性分配停留,不平均分镜。要求提速时先缩短已读懂的建立与重复,不机械倍速,也不优先牺牲转折后的反应。
  • 屏幕/文件信息:先决定观众必须看清什么,再选择环境内观看、插入特写、全屏主观内容或后期合成;关键信息不能只缩在手机或电脑的小屏幕里。

镜头覆盖要围绕冲突设计。不要机械套“全景—中景—近景—特写”,也不要让每条台词自动获得一个正反打。

5. 划分生成片段与镜头

严格区分:

  • 场 scene:一段连续的戏剧行动。
  • 生成片段 clip:一次 AI 视频调用或一个可独立生产的连续片段。
  • 镜头 shot:剪辑中的一次连续观看。

先按戏剧信息与剪辑需要设计 shot 和覆盖关系,再按动作连续性、参考需求和提供方限制打包为 clip。代码使用 clip 容纳 shot 不代表导演先被 API 秒数决定拍法;打包需要改拍法时记录偏差。

6. 写提示词与声音方案

先固定 audioRoute:

  • h3-native-reference:H3 用固定人物声音母版生成新对白;固定角色的默认路线。
  • tts-guided-h3:先用 TTS 生成准确台词音频,再由 H3 复用/参考并生成表演。
  • h3-native-free:H3 自行生成声音,只用于临时样片或无固定身份的声音。
  • tts-post:模型只生成表演与可控环境声,台词交给后期;避免在视频模型提示中重复生成对白。
  • silent:无对白,仅画面或后期音乐设计。

再分别确定环境、拟音和音乐来源;多片段短剧默认后期统一配乐。模型提示词必须从结构化镜头字段派生;不要让提示词反过来成为唯一事实源。使用 H3 时严格遵守 references/ai-video-production.md 的模式合同。

7. 确定性验证与导演复盘

每次交付前运行:

node scripts/director-kit.mjs validate director-package.json
node scripts/director-kit.mjs render director-package.json > director-shotlist.md

先清零结构错误,再处理警告。验证通过不等于导演成立;还需人工回答:

  1. 静音观看时,关系和权力变化是否看得懂?
  2. 去掉所有装饰性运镜后,是否反而更有力?
  3. 每个近景/特写是否留给真正的转折、证据或反应?
  4. 每一切是否改变信息、情绪或观看位置?
  5. 结尾最后一个画面是否把悬念具象化?
  6. 现实功能空间去掉风格词后,设备、岗位与人流是否仍能按真实流程工作,且不会被误认成相邻行业?
  7. 手机、电脑、票据或文件承载的关键信息,静音观看时是否真的看得清;信息镜头后是否有必要且不重复的反应?

若答案是否定的,优先修改调度和镜头目的,不要只加形容词。

交付物

默认交付:

  • director-package.json:唯一结构化事实源。
  • director-shotlist.md:便于导演、分镜师、剪辑和生成操作员评审。
  • 一段简短导演阐述:核心观看策略、最重要的三项选择、已知风险。

用户要求诊断时,不擅自覆盖原文件;输出问题、证据、影响和建议修法。用户要求生产时,才生成或更新上述文件。

制作交接

独立使用时,自检后主动打开当前报告并给绝对路径链接,说明本轮范围、检查重点和下一步;需要锁定内容时在对话中收取通过或修改结论。已有确认覆盖当前版本就不重复询问,打开页面或下载 JSON 不算批准。总控已接管时,由总控统一收取这次结论,不另开重复审批。当前内容、依赖或源图改变后,不因旧文件仍存在就跳过复核;输出新版本并保留原审阅笔记。

本项目的阶段职责、变更记录和交付顺序由 short-drama-production 的 references/company-workflow.md 统一维护;未安装总控时按本 skill 的输入和交付范围独立完成,不将总控变成硬依赖。

每次内容交付运行 validate;只有修改工具代码或遇到疑似工具回归时运行 scripts/selftest.mjs,不要求每次创作重跑开发测试。

涉及尚未授权的创作取舍时,给用户 2–3 个有具体差异的选项,说明收益、损失与推荐,允许保留原稿或自定义。模型先完成阅读、诊断和短样段,不把准备工作推给用户;已经明确授权的范围直接执行。未经用户选择,不把暂定片长预算升级成删词、删情绪段落的理由。

查看许可证全文(Apache-2.0)
                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.