/script2shot:script2shotfrom script2shot
script2shot v2 入口编排:接收剧本与可选参考素材,按「解析 → 视频与镜头规划 → 视频提示词」三阶段执行,逐阶段传递内容指纹,最后聚合引用与警告。
Ships in script2shot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
把剧本文本组织成一次 v2 run:script_breakdown → shot_planning → shot_prompting。
最终交付单位是一个待生成视频的一段完整提示词;一个视频可以包含多个电影镜头。
入口只做编排,不做创作、检索、校验或渲染。设计以 docs/architecture.md 与
references/stage-conventions.md 为准。
init_run({ workspace_root, input_mode, project_id, target_model, aspect_ratio, input_references, display_timeline })。
保存返回的 run_id、run_json_path、run_context_hash。没有真实素材时不要阻断,
继续创建占位槽,由解析阶段生成 待提供 参考图。script-breakdown:写 script_analysis.json,保存 input_hashes.run_context;shot-planning:写 shot_plan.json,保存解析产物的 content_hash;shot-prompting:写 prompts.ir.json 与 prompts.<model>.md,保存解析和规划指纹。run.json:
validate_stage_artifact({ stage: "script_breakdown", path });validate_stage_artifact({ stage: "shot_planning", path, script_analysis_path });validate_prompt({ prompt_ir_path, shot_plan_path, script_analysis_path });content_hash 交给下游,不自行估算;update_run_state(..., status: "done")。knowledge_refs.json 与 warnings.md,报告视频数、内部镜头数、产物路径和警告。from <stage>:从指定阶段重跑,保留未受影响的上游产物,重新校验所有上游。only <stage>:只重跑一个阶段,但 only shot-prompting 必须同时校验规划和解析。read_run 返回 run_context_hash,并核对四个产物的 schema_version 与内容指纹。ARTIFACT_VERSION_UNSUPPORTED,不改写旧 run。input_hashes 仍应让下游变为待重跑。min_sec..max_sec,不能用小数秒。process_id,写清前后状态。七个文件名不可更改:
run.json、script_analysis.json、shot_plan.json、prompts.ir.json、
prompts.<target_model>.md、knowledge_refs.json、warnings.md。
每段提示词正文固定五模块:
Seedance 2.5 每个视觉镜头、对白片段和声音 cue 都显示秒数;2.0 默认顺序叙述,
用户开启 display_timeline 后再显示。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub qingpingye/lvan-script2shot --plugin script2shot6 skills in this plugin
/knowledge-sync把原始库的变化同步到 AI 库:扫描或指定文档、生成知识卡,整批 dry-run 清单确认后替换卡片并更新 SyncState。/script-breakdown把剧本解析为 script_analysis v2:建立实体、参考图占位和完整过程,逐个动作/情绪/对白单元记录来源,保存 run_context 指纹。/setup安装后的一次性引导:由 AI 通过 scripts/setup_bootstrap.mjs 完成环境自举、lark-cli 安装、登录编排与配置写入;人类只做浏览器操作、一次写入确认与异常路径的授权决策。/shot-planning在 script2shot 第二阶段把解析过程规划为待生成视频 clip 与内部 shots:所有时间使用整数秒,按节拍估算镜头时长,完整过程优先不因切镜拆段。/shot-prompting在 script2shot 第三阶段把视频 clip 复制为 PromptIR,按五模块写成一段可包含多镜头的提示词;Seedance 2.5 强制秒数,2.0 按运行偏好,且所有参考素材职责和上游指纹可追踪。