@oh-story/dsh 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (444) hide show
  1. package/README.md +7 -7
  2. package/lib/client.js +7 -3
  3. package/lib/client.js.map +2 -2
  4. package/lib/drama/manifest.json +212 -142
  5. package/lib/drama/skills/short-drama/SKILL.md +14 -2
  6. package/lib/drama/skills/short-drama/assets/project-template/short-drama.json +3 -0
  7. package/lib/drama/skills/short-drama/references/creator-documents.md +3 -0
  8. package/lib/drama/skills/short-drama/references/knowhow-index.md +15 -0
  9. package/lib/drama/skills/short-drama/scripts/project_tool.py +131 -0
  10. package/lib/drama/skills/short-drama-assets/SKILL.md +2 -1
  11. package/lib/drama/skills/short-drama-assets/references/asset-review-checklist.md +2 -0
  12. package/lib/drama/skills/short-drama-assets/references/era-anchors.md +37 -0
  13. package/lib/drama/skills/short-drama-assets/references/stage-contract.md +2 -0
  14. package/lib/drama/skills/short-drama-develop/SKILL.md +10 -4
  15. package/lib/drama/skills/short-drama-develop/assets/adaptation-map.example.jsonl +1 -1
  16. package/lib/drama/skills/short-drama-develop/assets/creative-brief.md +8 -0
  17. package/lib/drama/skills/short-drama-develop/references/adaptation-craft.md +80 -13
  18. package/lib/drama/skills/short-drama-develop/references/episode-design.md +95 -12
  19. package/lib/drama/skills/short-drama-develop/references/genre-and-hook-playbook.md +9 -5
  20. package/lib/drama/skills/short-drama-develop/references/genre-cards//345/244/215/344/273/207/346/211/223/350/204/270.md +1 -1
  21. package/lib/drama/skills/short-drama-develop/references/genre-cards//347/263/273/347/273/237/346/265/201.md +51 -0
  22. package/lib/drama/skills/short-drama-develop/references/genre-cards//351/200/206/350/242/255.md +51 -0
  23. package/lib/drama/skills/short-drama-develop/references/genre-cards//351/207/215/347/224/237/347/251/277/350/266/212.md +51 -0
  24. package/lib/drama/skills/short-drama-develop/references/genre-cards.md +10 -7
  25. package/lib/drama/skills/short-drama-develop/references/premise-devices.md +15 -9
  26. package/lib/drama/skills/short-drama-develop/references/serial-character-and-memory.md +3 -2
  27. package/lib/drama/skills/short-drama-develop/references/stage-contract.md +14 -7
  28. package/lib/drama/skills/short-drama-develop/references/story-craft.md +7 -3
  29. package/lib/drama/skills/short-drama-edit/SKILL.md +43 -20
  30. package/lib/drama/skills/short-drama-edit/assets/remotion/README.md +49 -13
  31. package/lib/drama/skills/short-drama-edit/assets/remotion/package.json +4 -2
  32. package/lib/drama/skills/short-drama-edit/assets/remotion/src/Overlay.tsx +31 -0
  33. package/lib/drama/skills/short-drama-edit/assets/remotion/src/Root.tsx +5 -5
  34. package/lib/drama/skills/short-drama-edit/assets/remotion/src/Subtitles.tsx +68 -69
  35. package/lib/drama/skills/short-drama-edit/assets/remotion/src/font.ts +39 -29
  36. package/lib/drama/skills/short-drama-edit/assets/remotion/src/rules.mjs +188 -0
  37. package/lib/drama/skills/short-drama-edit/assets/remotion/src/schema.ts +26 -13
  38. package/lib/drama/skills/short-drama-edit/assets/remotion/src/screen/Card.tsx +72 -0
  39. package/lib/drama/skills/short-drama-edit/assets/remotion/src/screen/CornerChip.tsx +39 -0
  40. package/lib/drama/skills/short-drama-edit/assets/remotion/src/screen/ScreenText.tsx +36 -0
  41. package/lib/drama/skills/short-drama-edit/assets/remotion/src/screen/SystemPanel.tsx +44 -0
  42. package/lib/drama/skills/short-drama-edit/assets/remotion/src/screen/TaskPanel.tsx +100 -0
  43. package/lib/drama/skills/short-drama-edit/assets/remotion/src/screen/chrome.tsx +197 -0
  44. package/lib/drama/skills/short-drama-edit/assets/remotion/src/screen/tokens.ts +62 -0
  45. package/lib/drama/skills/short-drama-edit/assets/remotion/tsconfig.json +1 -0
  46. package/lib/drama/skills/short-drama-edit/assets//345/211/252/350/276/221/345/215/225.md +4 -2
  47. package/lib/drama/skills/short-drama-edit/references/cut-craft.md +3 -1
  48. package/lib/drama/skills/short-drama-edit/references/delivery-verify.md +6 -2
  49. package/lib/drama/skills/short-drama-edit/references/generated-footage.md +12 -6
  50. package/lib/drama/skills/short-drama-edit/references/sound-and-subtitles.md +13 -8
  51. package/lib/drama/skills/short-drama-edit/references/stage-contract.md +2 -0
  52. package/lib/drama/skills/short-drama-edit/scripts/edit_tool.py +1153 -121
  53. package/lib/drama/skills/short-drama-edit/scripts/selftest.py +49 -9
  54. package/lib/drama/skills/short-drama-novel-analyze/SKILL.md +3 -3
  55. package/lib/drama/skills/short-drama-novel-analyze/assets/episode-candidate.example.jsonl +2 -2
  56. package/lib/drama/skills/short-drama-novel-analyze/references/adaptation-triage.md +8 -4
  57. package/lib/drama/skills/short-drama-novel-analyze/references/adaptation-value.md +10 -3
  58. package/lib/drama/skills/short-drama-novel-analyze/references/aggregation-and-entities.md +25 -1
  59. package/lib/drama/skills/short-drama-novel-analyze/references/stage-contract.md +1 -0
  60. package/lib/drama/skills/short-drama-review/SKILL.md +2 -2
  61. package/lib/drama/skills/short-drama-review/references/review-method.md +6 -1
  62. package/lib/drama/skills/short-drama-review/references/rubric-assets-prompts.md +11 -0
  63. package/lib/drama/skills/short-drama-review/references/rubric-story-script.md +77 -3
  64. package/lib/drama/skills/short-drama-review/references/rubric-visual-motion.md +15 -0
  65. package/lib/drama/skills/short-drama-review/references/stage-contract.md +3 -0
  66. package/lib/drama/skills/short-drama-storyboard/SKILL.md +13 -5
  67. package/lib/drama/skills/short-drama-storyboard/references/blocking-playbooks.md +1 -1
  68. package/lib/drama/skills/short-drama-storyboard/references/production-shot-grammar.md +2 -2
  69. package/lib/drama/skills/short-drama-storyboard/references/shot-craft.md +82 -14
  70. package/lib/drama/skills/short-drama-storyboard/references/stage-contract.md +4 -2
  71. package/lib/drama/skills/short-drama-video-prompts/SKILL.md +5 -3
  72. package/lib/drama/skills/short-drama-video-prompts/references/camera-audio-continuity.md +12 -0
  73. package/lib/drama/skills/short-drama-video-prompts/references/delivery-profile.md +4 -5
  74. package/lib/drama/skills/short-drama-video-prompts/references/generability.md +4 -2
  75. package/lib/drama/skills/short-drama-video-prompts/references/minimax-h3.md +40 -1
  76. package/lib/drama/skills/short-drama-video-prompts/references/motion-recipe.md +20 -14
  77. package/lib/drama/skills/short-drama-video-prompts/references/performance-action-timing.md +1 -1
  78. package/lib/drama/skills/short-drama-video-prompts/references/production-prompt-grammar.md +8 -7
  79. package/lib/drama/skills/short-drama-video-prompts/references/review-and-fixtures.md +1 -1
  80. package/lib/drama/skills/short-drama-video-prompts/references/stage-contract.md +1 -0
  81. package/lib/drama/skills/short-drama-video-prompts/references/target-model-profile.md +8 -1
  82. package/lib/drama/skills/short-drama-video-prompts/references/wan-3.0.md +103 -0
  83. package/lib/drama/skills/short-drama-video-prompts/scripts/motion_timing_check.py +8 -7
  84. package/lib/drama/skills/short-drama-write/SKILL.md +8 -3
  85. package/lib/drama/skills/short-drama-write/references/dialogue-craft.md +1 -1
  86. package/lib/drama/skills/short-drama-write/references/script-craft.md +56 -3
  87. package/lib/drama/skills/short-drama-write/references/stage-contract.md +4 -0
  88. package/lib/drama/skills/short-drama-write/scripts/duration_estimate.py +48 -2
  89. package/lib/index.js +71 -21
  90. package/lib/index.js.map +3 -3
  91. package/lib/oh-story/manifest.json +545 -310
  92. package/lib/oh-story/roles/chapter-extractor.md +11 -11
  93. package/lib/oh-story/roles/character-designer.md +1 -2
  94. package/lib/oh-story/roles/consistency-checker.md +11 -9
  95. package/lib/oh-story/roles/narrative-writer.md +24 -25
  96. package/lib/oh-story/roles/story-architect.md +9 -61
  97. package/lib/oh-story/roles/story-explorer.md +20 -125
  98. package/lib/oh-story/roles/story-researcher.md +0 -1
  99. package/lib/oh-story/skills/story/SKILL.md +6 -6
  100. package/lib/oh-story/skills/story/VERSION +1 -1
  101. package/lib/oh-story/skills/story/references/author-memory-maintenance.md +75 -0
  102. package/lib/oh-story/skills/story/references/author-memory.md +40 -118
  103. package/lib/oh-story/skills/story/scripts/author_memory_commit.py +3 -3
  104. package/lib/oh-story/skills/story-deslop/SKILL.md +24 -25
  105. package/lib/oh-story/skills/story-deslop/references/agent-calls.md +5 -0
  106. package/lib/oh-story/skills/story-deslop/references/anti-ai-writing.md +1 -1
  107. package/lib/oh-story/skills/story-deslop/references/author-memory-maintenance.md +75 -0
  108. package/lib/oh-story/skills/story-deslop/references/author-memory.md +40 -118
  109. package/lib/oh-story/skills/story-deslop/references/banned-words.md +2 -2
  110. package/lib/oh-story/skills/story-deslop/references/deslop-gates.md +21 -4
  111. package/lib/oh-story/skills/story-deslop/references/style-resolution.md +4 -4
  112. package/lib/oh-story/skills/story-deslop/scripts/author_memory_commit.py +3 -3
  113. package/lib/oh-story/skills/story-deslop/scripts/check-ai-patterns.js +155 -8
  114. package/lib/oh-story/skills/story-import/SKILL.md +63 -579
  115. package/lib/oh-story/skills/story-import/references/deep-analysis.md +47 -0
  116. package/lib/oh-story/skills/story-import/references/format-and-structure.md +1 -1
  117. package/lib/oh-story/skills/story-import/references/import-report.md +64 -0
  118. package/lib/oh-story/skills/story-import/references/import-special-cases.md +34 -0
  119. package/lib/oh-story/skills/story-import/references/import-tracking.md +95 -0
  120. package/lib/oh-story/skills/story-import/references/length-routing.md +1 -1
  121. package/lib/oh-story/skills/story-import/references/outline-reverse-rules.md +79 -0
  122. package/lib/oh-story/skills/story-import/references/outline-reverse.md +24 -0
  123. package/lib/oh-story/skills/story-import/references/structure-mapping-long.md +95 -91
  124. package/lib/oh-story/skills/story-import/references/structure-mapping-short.md +24 -12
  125. package/lib/oh-story/skills/story-import/references/tracking-initialization.md +1 -1
  126. package/lib/oh-story/skills/story-import/references/tracking-transaction.md +11 -9
  127. package/lib/oh-story/skills/story-import/scripts/build_outline_brief.py +332 -0
  128. package/lib/oh-story/skills/story-import/scripts/check-outline-contract.js +101 -14
  129. package/lib/oh-story/skills/story-import/scripts/tracking_commit.py +278 -23
  130. package/lib/oh-story/skills/story-import/scripts/wordcount_core.py +179 -23
  131. package/lib/oh-story/skills/story-long-analyze/SKILL.md +28 -50
  132. package/lib/oh-story/skills/story-long-analyze/references/author-facing.md +12 -5
  133. package/lib/oh-story/skills/story-long-analyze/references/deconstruction-notes.md +1 -1
  134. package/lib/oh-story/skills/story-long-analyze/references/final-checks.md +19 -0
  135. package/lib/oh-story/skills/story-long-analyze/references/index-rebuild.md +11 -0
  136. package/lib/oh-story/skills/story-long-analyze/references/pipeline-ops.md +21 -55
  137. package/lib/oh-story/skills/story-long-analyze/references/stage1-golden-chapters.md +128 -0
  138. package/lib/oh-story/skills/story-long-analyze/references/stage2-extraction.md +229 -0
  139. package/lib/oh-story/skills/story-long-analyze/references/stage3-plot-rhythm.md +480 -0
  140. package/lib/oh-story/skills/story-long-analyze/references/stage4-characters-settings.md +195 -0
  141. package/lib/oh-story/skills/story-long-analyze/references/stage5-report.md +33 -0
  142. package/lib/oh-story/skills/story-long-analyze/references/style-profile-generator.md +17 -0
  143. package/lib/oh-story/skills/story-long-analyze/references/style-profile-protocol.md +1 -1
  144. package/lib/oh-story/skills/story-long-analyze/references/synthesis-inputs.md +39 -0
  145. package/lib/oh-story/skills/story-long-analyze/scripts/manage_analysis_run.py +47 -8
  146. package/lib/oh-story/skills/story-long-scan/SKILL.md +41 -193
  147. package/lib/oh-story/skills/story-long-scan/references/platform-ciweimao.md +19 -0
  148. package/lib/oh-story/skills/story-long-scan/references/platform-fanqie.md +45 -0
  149. package/lib/oh-story/skills/story-long-scan/references/platform-jjwxc.md +28 -0
  150. package/lib/oh-story/skills/story-long-scan/references/platform-qidian.md +35 -0
  151. package/lib/oh-story/skills/story-long-scan/references/platform-qimao.md +27 -0
  152. package/lib/oh-story/skills/story-long-scan/references/topic-decision.md +6 -2
  153. package/lib/oh-story/skills/story-long-write/SKILL.md +32 -73
  154. package/lib/oh-story/skills/story-long-write/references/agent-calls.md +47 -0
  155. package/lib/oh-story/skills/story-long-write/references/anti-ai-writing.md +1 -1
  156. package/lib/oh-story/skills/story-long-write/references/artifact-protocols.md +18 -201
  157. package/lib/oh-story/skills/story-long-write/references/author-memory-maintenance.md +75 -0
  158. package/lib/oh-story/skills/story-long-write/references/author-memory.md +40 -118
  159. package/lib/oh-story/skills/story-long-write/references/banned-words.md +2 -2
  160. package/lib/oh-story/skills/story-long-write/references/benchmark-recall.md +6 -10
  161. package/lib/oh-story/skills/story-long-write/references/character-relations.md +49 -1
  162. package/lib/oh-story/skills/story-long-write/references/deslop-gates.md +171 -0
  163. package/lib/oh-story/skills/story-long-write/references/emotion-on-page.md +116 -0
  164. package/lib/oh-story/skills/story-long-write/references/emotional-arc-design.md +1 -114
  165. package/lib/oh-story/skills/story-long-write/references/genre-prose-cards.md +1 -1
  166. package/lib/oh-story/skills/story-long-write/references/long-chapter-quality.md +3 -2
  167. package/lib/oh-story/skills/story-long-write/references/long-format.md +0 -8
  168. package/lib/oh-story/skills/story-long-write/references/long-genre-catalog.md +1 -1
  169. package/lib/oh-story/skills/story-long-write/references/long-genre-mechanics.md +3 -3
  170. package/lib/oh-story/skills/story-long-write/references/opening-design.md +2 -2
  171. package/lib/oh-story/skills/story-long-write/references/outline-conflict.md +4 -4
  172. package/lib/oh-story/skills/story-long-write/references/outline-methods.md +7 -7
  173. package/lib/oh-story/skills/story-long-write/references/outline-rhythm.md +3 -3
  174. package/lib/oh-story/skills/story-long-write/references/outline-structure-theory.md +14 -69
  175. package/lib/oh-story/skills/story-long-write/references/plot-frameworks.md +1 -1
  176. package/lib/oh-story/skills/story-long-write/references/plot-special-topics.md +2 -2
  177. package/lib/oh-story/skills/story-long-write/references/project-files.md +10 -6
  178. package/lib/oh-story/skills/story-long-write/references/reader-contract-and-progression.md +1 -1
  179. package/lib/oh-story/skills/story-long-write/references/reference-index.md +4 -4
  180. package/lib/oh-story/skills/story-long-write/references/stop-and-fix.md +9 -0
  181. package/lib/oh-story/skills/story-long-write/references/style-combat-face.md +1 -58
  182. package/lib/oh-story/skills/story-long-write/references/style-genre-modules.md +1 -1
  183. package/lib/oh-story/skills/story-long-write/references/style-resolution.md +4 -4
  184. package/lib/oh-story/skills/story-long-write/references/tracking-initialization.md +1 -1
  185. package/lib/oh-story/skills/story-long-write/references/tracking-transaction.md +11 -9
  186. package/lib/oh-story/skills/story-long-write/references/workflow-chapter.md +33 -44
  187. package/lib/oh-story/skills/story-long-write/references/workflow-daily.md +18 -51
  188. package/lib/oh-story/skills/story-long-write/references/workflow-outline.md +157 -0
  189. package/lib/oh-story/skills/story-long-write/references/workflow-revision.md +53 -67
  190. package/lib/oh-story/skills/story-long-write/references/workflow-setup.md +112 -251
  191. package/lib/oh-story/skills/story-long-write/references/workflow-volume.md +142 -0
  192. package/lib/oh-story/skills/story-long-write/references/writer-prompt-fallback.md +5 -3
  193. package/lib/oh-story/skills/story-long-write/references/writing-craft.md +18 -56
  194. package/lib/oh-story/skills/story-long-write/scripts/author_memory_commit.py +3 -3
  195. package/lib/oh-story/skills/story-long-write/scripts/build_architect_brief.py +260 -0
  196. package/lib/oh-story/skills/story-long-write/scripts/build_writer_prompt.py +96 -16
  197. package/lib/oh-story/skills/story-long-write/scripts/check-ai-patterns.js +155 -8
  198. package/lib/oh-story/skills/story-long-write/scripts/check-outline-contract.js +101 -14
  199. package/lib/oh-story/skills/story-long-write/scripts/check-outline-copy.js +7 -2
  200. package/lib/oh-story/skills/story-long-write/scripts/outline_view.py +2 -1
  201. package/lib/oh-story/skills/story-long-write/scripts/storyctl.py +250 -50
  202. package/lib/oh-story/skills/story-long-write/scripts/tracking_commit.py +278 -23
  203. package/lib/oh-story/skills/story-long-write/scripts/wordcount_core.py +179 -23
  204. package/lib/oh-story/skills/story-review/SKILL.md +19 -273
  205. package/lib/oh-story/skills/story-review/references/agent-prompts.md +184 -0
  206. package/lib/oh-story/skills/story-review/references/anti-ai-writing.md +1 -1
  207. package/lib/oh-story/skills/story-review/references/author-memory-maintenance.md +75 -0
  208. package/lib/oh-story/skills/story-review/references/author-memory.md +40 -118
  209. package/lib/oh-story/skills/story-review/references/banned-words.md +2 -2
  210. package/lib/oh-story/skills/story-review/references/batch-review.md +19 -0
  211. package/lib/oh-story/skills/story-review/references/character-relations.md +49 -1
  212. package/lib/oh-story/skills/story-review/references/review-quality.md +2 -1
  213. package/lib/oh-story/skills/story-review/references/review-tracking.md +10 -0
  214. package/lib/oh-story/skills/story-review/references/solo.md +52 -0
  215. package/lib/oh-story/skills/story-review/references/style-resolution.md +4 -4
  216. package/lib/oh-story/skills/story-review/references/tracking-initialization.md +1 -1
  217. package/lib/oh-story/skills/story-review/references/tracking-transaction.md +11 -9
  218. package/lib/oh-story/skills/story-review/scripts/author_memory_commit.py +3 -3
  219. package/lib/oh-story/skills/story-review/scripts/check-ai-patterns.js +155 -8
  220. package/lib/oh-story/skills/story-review/scripts/tracking_commit.py +278 -23
  221. package/lib/oh-story/skills/story-review/scripts/wordcount_core.py +179 -23
  222. package/lib/oh-story/skills/story-setup/SKILL.md +69 -458
  223. package/lib/oh-story/skills/story-setup/references/agent-references/agent-quality.md +4 -4
  224. package/lib/oh-story/skills/story-setup/references/agent-references/anti-ai-writing.md +1 -1
  225. package/lib/oh-story/skills/story-setup/references/agent-references/banned-words.md +2 -2
  226. package/lib/oh-story/skills/story-setup/references/agent-references/benchmark-style-load.md +107 -0
  227. package/lib/oh-story/skills/story-setup/references/agent-references/character-relations.md +49 -1
  228. package/lib/oh-story/skills/story-setup/references/agent-references/deslop-gates.md +21 -4
  229. package/lib/oh-story/skills/story-setup/references/agent-references/emotion-on-page.md +116 -0
  230. package/lib/oh-story/skills/story-setup/references/agent-references/emotional-arc-design.md +1 -114
  231. package/lib/oh-story/skills/story-setup/references/agent-references/format-and-structure.md +1 -1
  232. package/lib/oh-story/skills/story-setup/references/agent-references/genre-prose-cards.md +1 -1
  233. package/lib/oh-story/skills/story-setup/references/agent-references/long-genre-catalog.md +1 -1
  234. package/lib/oh-story/skills/story-setup/references/agent-references/long-genre-mechanics.md +3 -3
  235. package/lib/oh-story/skills/story-setup/references/agent-references/long-quality.md +7 -5
  236. package/lib/oh-story/skills/story-setup/references/agent-references/opening-design.md +2 -2
  237. package/lib/oh-story/skills/story-setup/references/agent-references/outline-conflict.md +4 -4
  238. package/lib/oh-story/skills/story-setup/references/agent-references/outline-methods.md +7 -7
  239. package/lib/oh-story/skills/story-setup/references/agent-references/outline-rhythm.md +3 -3
  240. package/lib/oh-story/skills/story-setup/references/agent-references/short-emotional-methods.md +1 -1
  241. package/lib/oh-story/skills/story-setup/references/agent-references/short-genre-formulas.md +0 -15
  242. package/lib/oh-story/skills/story-setup/references/agent-references/short-reversal.md +1 -1
  243. package/lib/oh-story/skills/story-setup/references/agent-references/style-combat-face.md +1 -58
  244. package/lib/oh-story/skills/story-setup/references/agent-references/style-genre-modules.md +1 -1
  245. package/lib/oh-story/skills/story-setup/references/agent-references/style-resolution.md +4 -4
  246. package/lib/oh-story/skills/story-setup/references/agent-references/writing-craft.md +18 -56
  247. package/lib/oh-story/skills/story-setup/references/diagnostics.md +3 -3
  248. package/lib/oh-story/skills/story-short-analyze/SKILL.md +37 -110
  249. package/lib/oh-story/skills/story-short-analyze/references/analysis-character-relations.md +1 -1
  250. package/lib/oh-story/skills/story-short-analyze/references/analysis-method.md +42 -0
  251. package/lib/oh-story/skills/story-short-analyze/references/optional-modules.md +97 -0
  252. package/lib/oh-story/skills/story-short-analyze/references/output-contract.md +9 -47
  253. package/lib/oh-story/skills/story-short-analyze/references/quality-checklist.md +80 -0
  254. package/lib/oh-story/skills/story-short-analyze/references/source-story-quality.md +4 -4
  255. package/lib/oh-story/skills/story-short-analyze/references/stage2-3-structure-emotion.md +308 -0
  256. package/lib/oh-story/skills/story-short-analyze/references/{material-decomposition.md → stage4-6-reversal-summary.md} +303 -374
  257. package/lib/oh-story/skills/story-short-scan/SKILL.md +30 -64
  258. package/lib/oh-story/skills/story-short-scan/references/manual-rank-input.md +36 -0
  259. package/lib/oh-story/skills/story-short-scan/references/platform-dianzhong.md +24 -0
  260. package/lib/oh-story/skills/story-short-scan/references/platform-heiyan.md +21 -0
  261. package/lib/oh-story/skills/story-short-scan/references/topic-match.md +38 -0
  262. package/lib/oh-story/skills/story-short-write/SKILL.md +23 -34
  263. package/lib/oh-story/skills/story-short-write/references/agent-calls.md +13 -0
  264. package/lib/oh-story/skills/story-short-write/references/author-memory-maintenance.md +75 -0
  265. package/lib/oh-story/skills/story-short-write/references/author-memory.md +40 -118
  266. package/lib/oh-story/skills/story-short-write/references/banned-words.md +2 -2
  267. package/lib/oh-story/skills/story-short-write/references/benchmark-recall.md +1 -21
  268. package/lib/oh-story/skills/story-short-write/references/emotional-methods.md +1 -1
  269. package/lib/oh-story/skills/story-short-write/references/genre-writing-formulas.md +0 -15
  270. package/lib/oh-story/skills/story-short-write/references/output-contract.md +9 -47
  271. package/lib/oh-story/skills/story-short-write/references/reference-index.md +17 -49
  272. package/lib/oh-story/skills/story-short-write/references/scene-craft.md +40 -0
  273. package/lib/oh-story/skills/story-short-write/references/short-craft.md +7 -43
  274. package/lib/oh-story/skills/story-short-write/references/short-format.md +3 -3
  275. package/lib/oh-story/skills/story-short-write/references/short-prose-quality.md +2 -1
  276. package/lib/oh-story/skills/story-short-write/references/short-reversal.md +1 -1
  277. package/lib/oh-story/skills/story-short-write/references/style-resolution.md +4 -4
  278. package/lib/oh-story/skills/story-short-write/references/submission-craft.md +1 -1
  279. package/lib/oh-story/skills/story-short-write/references/villain-and-reveal.md +5 -10
  280. package/lib/oh-story/skills/story-short-write/references/workflow-design.md +19 -12
  281. package/lib/oh-story/skills/story-short-write/references/workflow-draft.md +22 -32
  282. package/lib/oh-story/skills/story-short-write/references/workflow-revision.md +84 -17
  283. package/lib/oh-story/skills/story-short-write/references/writing-workflow.md +7 -119
  284. package/lib/oh-story/skills/story-short-write/scripts/author_memory_commit.py +3 -3
  285. package/lib/oh-story/skills/story-short-write/scripts/check-ai-patterns.js +155 -8
  286. package/lib/oh-story/skills/story-short-write/scripts/check-outline-copy.js +7 -2
  287. package/lib/types/client/video-studio.d.ts.map +1 -1
  288. package/lib/types/native-hooks.d.ts +2 -2
  289. package/lib/types/native-hooks.d.ts.map +1 -1
  290. package/lib/types/role-tool.d.ts.map +1 -1
  291. package/lib/types/skill-provider.d.ts.map +1 -1
  292. package/lib/types/video-project.d.ts.map +1 -1
  293. package/lib/types/workspace-route.d.ts.map +1 -1
  294. package/lib/video-recap/CHANGELOG.md +60 -1
  295. package/lib/video-recap/README.en.md +348 -137
  296. package/lib/video-recap/README.md +340 -136
  297. package/lib/video-recap/manifest.json +406 -251
  298. package/lib/video-recap/skills/video-assemble/SKILL.md +30 -15
  299. package/lib/video-recap/skills/video-assemble/references/audio-modes.md +63 -0
  300. package/lib/video-recap/skills/video-assemble/references/explicit-audio-mix.md +75 -0
  301. package/lib/video-recap/skills/video-assemble/references/foreground-compose.md +118 -0
  302. package/lib/video-recap/skills/video-assemble/references/narration-adoption.md +103 -0
  303. package/lib/video-recap/skills/video-assemble/references/packaging.md +45 -0
  304. package/lib/video-recap/skills/video-assemble/references/pair-media.md +74 -0
  305. package/lib/video-recap/skills/video-assemble/references/source-score.md +147 -0
  306. package/lib/video-recap/skills/video-assemble/references/subtitle-track.md +202 -0
  307. package/lib/video-recap/skills/video-assemble/scripts/adoption/__init__.py +1 -0
  308. package/lib/video-recap/skills/video-assemble/scripts/adoption/audio_mix_binding.py +279 -0
  309. package/lib/video-recap/skills/video-assemble/scripts/adoption/frozen_audio.py +187 -0
  310. package/lib/video-recap/skills/video-assemble/scripts/adoption/narration_binding.py +323 -0
  311. package/lib/video-recap/skills/video-assemble/scripts/adoption/strict_inputs.py +109 -0
  312. package/lib/video-recap/skills/video-assemble/scripts/adoption/strict_publish.py +130 -0
  313. package/lib/video-recap/skills/video-assemble/scripts/artifacts.py +10 -46
  314. package/lib/video-recap/skills/video-assemble/scripts/assemble.py +378 -119
  315. package/lib/video-recap/skills/video-assemble/scripts/assemble_constants.py +29 -12
  316. package/lib/video-recap/skills/video-assemble/scripts/assembly_contract.py +95 -44
  317. package/lib/video-recap/skills/video-assemble/scripts/assembly_settings.py +75 -32
  318. package/lib/video-recap/skills/video-assemble/scripts/audio_mix.py +11 -11
  319. package/lib/video-recap/skills/video-assemble/scripts/compose_foreground.py +293 -0
  320. package/lib/video-recap/skills/video-assemble/scripts/export_jianying.py +71 -78
  321. package/lib/video-recap/skills/video-assemble/scripts/jianying/__init__.py +1 -0
  322. package/lib/video-recap/skills/video-assemble/scripts/{jianying_builders.py → jianying/builders.py} +39 -67
  323. package/lib/video-recap/skills/video-assemble/scripts/{jianying_model.py → jianying/model.py} +3 -11
  324. package/lib/video-recap/skills/video-assemble/scripts/{jianying_optional.py → jianying/optional.py} +1 -1
  325. package/lib/video-recap/skills/video-assemble/scripts/jianying/schema.py +53 -0
  326. package/lib/video-recap/skills/video-assemble/scripts/{jianying_templates.py → jianying/templates.py} +1 -1
  327. package/lib/video-recap/skills/video-assemble/scripts/{jianying_timeline_contract.py → jianying/timeline_contract.py} +34 -13
  328. package/lib/video-recap/skills/video-assemble/scripts/{jianying_writer.py → jianying/writer.py} +7 -17
  329. package/lib/video-recap/skills/video-assemble/scripts/lib.py +37 -4
  330. package/lib/video-recap/skills/video-assemble/scripts/media.py +12 -21
  331. package/lib/video-recap/skills/video-assemble/scripts/narration_audio.py +64 -34
  332. package/lib/video-recap/skills/video-assemble/scripts/packaging.py +122 -0
  333. package/lib/video-recap/skills/video-assemble/scripts/pair_media.py +216 -0
  334. package/lib/video-recap/skills/video-assemble/scripts/render_preflight.py +1 -3
  335. package/lib/video-recap/skills/video-assemble/scripts/source_score.py +469 -0
  336. package/lib/video-recap/skills/video-assemble/scripts/source_subtitles.py +25 -9
  337. package/lib/video-recap/skills/video-assemble/scripts/subtitles/__init__.py +1 -0
  338. package/lib/video-recap/skills/video-assemble/scripts/{subtitle_core.py → subtitles/core.py} +13 -6
  339. package/lib/video-recap/skills/video-assemble/scripts/{subtitle_render.py → subtitles/render.py} +5 -4
  340. package/lib/video-recap/skills/video-assemble/scripts/subtitles/track.py +324 -0
  341. package/lib/video-recap/skills/video-assemble/scripts/subtitles/track_binding.py +200 -0
  342. package/lib/video-recap/skills/video-assemble/scripts/timeline.py +30 -46
  343. package/lib/video-recap/skills/video-assemble/scripts/timeline_emit.py +91 -7
  344. package/lib/video-recap/skills/video-assemble/scripts/visual_render.py +22 -8
  345. package/lib/video-recap/skills/video-cut/SKILL.md +34 -16
  346. package/lib/video-recap/skills/video-cut/references/shot-review.md +50 -0
  347. package/lib/video-recap/skills/video-cut/scripts/cut.py +2 -28
  348. package/lib/video-recap/skills/video-cut/scripts/cut_cli.py +58 -62
  349. package/lib/video-recap/skills/video-cut/scripts/cut_contract.py +21 -106
  350. package/lib/video-recap/skills/video-cut/scripts/cut_render.py +14 -9
  351. package/lib/video-recap/skills/video-cut/scripts/lib.py +39 -0
  352. package/lib/video-recap/skills/video-cut/scripts/narration_mapping.py +2 -155
  353. package/lib/video-recap/skills/video-cut/scripts/narrative_selection.py +244 -0
  354. package/lib/video-recap/skills/video-cut/scripts/shot_review.py +357 -0
  355. package/lib/video-recap/skills/video-recap/SKILL.md +86 -42
  356. package/lib/video-recap/skills/video-recap/references/audio-routing.md +126 -0
  357. package/lib/video-recap/skills/video-recap/references/config-playbook.md +12 -8
  358. package/lib/video-recap/skills/video-recap/references/data-schema.md +44 -33
  359. package/lib/video-recap/skills/video-recap/references/resource-library.md +151 -0
  360. package/lib/video-recap/skills/video-recap/references/shift-left-qc-schema.md +1 -1
  361. package/lib/video-recap/skills/video-recap/scripts/doctor.py +123 -30
  362. package/lib/video-recap/skills/video-recap/scripts/final_qc.py +22 -75
  363. package/lib/video-recap/skills/video-recap/scripts/lib.py +3 -3
  364. package/lib/video-recap/skills/video-recap/scripts/library.py +509 -0
  365. package/lib/video-recap/skills/video-recap/scripts/materials.py +63 -91
  366. package/lib/video-recap/skills/video-recap/scripts/mimo_qc.py +8 -70
  367. package/lib/video-recap/skills/video-recap/scripts/project_binding.py +286 -0
  368. package/lib/video-recap/skills/video-recap/scripts/qc/__init__.py +1 -0
  369. package/lib/video-recap/skills/video-recap/scripts/{mimo_qc_client.py → qc/mimo_client.py} +1 -1
  370. package/lib/video-recap/skills/video-recap/scripts/{mimo_qc_evidence.py → qc/mimo_evidence.py} +33 -66
  371. package/lib/video-recap/skills/video-recap/scripts/{mimo_qc_observations.py → qc/mimo_observations.py} +3 -11
  372. package/lib/video-recap/skills/video-recap/scripts/{mimo_qc_payload.py → qc/mimo_payload.py} +4 -7
  373. package/lib/video-recap/skills/video-recap/scripts/{mimo_qc_report.py → qc/mimo_report.py} +17 -28
  374. package/lib/video-recap/skills/video-recap/scripts/{mimo_qc_runner.py → qc/mimo_runner.py} +2 -2
  375. package/lib/video-recap/skills/video-recap/scripts/qc_contract.py +0 -19
  376. package/lib/video-recap/skills/video-recap/scripts/recap_cli.py +119 -50
  377. package/lib/video-recap/skills/video-recap/scripts/recap_inspect.py +32 -114
  378. package/lib/video-recap/skills/video-recap/scripts/recap_review.py +9 -23
  379. package/lib/video-recap/skills/video-recap/scripts/recap_runner.py +387 -334
  380. package/lib/video-recap/skills/video-recap/scripts/recap_runtime.py +23 -23
  381. package/lib/video-recap/skills/video-recap/scripts/recap_source.py +278 -0
  382. package/lib/video-recap/skills/video-recap/scripts/recap_stage_qc.py +25 -12
  383. package/lib/video-recap/skills/video-recap/scripts/recap_timeline.py +59 -52
  384. package/lib/video-recap/skills/video-recap/scripts/resource_lock.py +162 -0
  385. package/lib/video-recap/skills/video-script/SKILL.md +16 -13
  386. package/lib/video-recap/skills/video-script/references/creative-editing-playbook.md +9 -5
  387. package/lib/video-recap/skills/video-script/references/promotional-copy.md +68 -0
  388. package/lib/video-recap/skills/video-script/references/research-guide.md +1 -1
  389. package/lib/video-recap/skills/video-script/scripts/evidence_bundle.py +24 -76
  390. package/lib/video-recap/skills/video-script/scripts/lib.py +10 -87
  391. package/lib/video-recap/skills/video-script/scripts/narration_lint.py +63 -39
  392. package/lib/video-recap/skills/video-script/scripts/review.py +0 -2
  393. package/lib/video-recap/skills/video-script/scripts/review_grounding.py +35 -59
  394. package/lib/video-recap/skills/video-script/scripts/review_response.py +66 -128
  395. package/lib/video-recap/skills/video-script/scripts/review_runner.py +12 -20
  396. package/lib/video-recap/skills/video-script/scripts/speech_ownership.py +4 -4
  397. package/lib/video-recap/skills/video-script/scripts/validate.py +53 -42
  398. package/lib/video-recap/skills/video-understanding/SKILL.md +6 -4
  399. package/lib/video-recap/skills/video-understanding/references/data-schema.md +50 -156
  400. package/lib/video-recap/skills/video-understanding/references/research-guide.md +4 -4
  401. package/lib/video-recap/skills/video-understanding/scripts/asr.py +85 -65
  402. package/lib/video-recap/skills/video-understanding/scripts/asr_timing_evidence.py +270 -0
  403. package/lib/video-recap/skills/video-understanding/scripts/brief.py +2 -5
  404. package/lib/video-recap/skills/video-understanding/scripts/briefing/__init__.py +1 -0
  405. package/lib/video-recap/skills/video-understanding/scripts/{agent_brief.py → briefing/builder.py} +38 -35
  406. package/lib/video-recap/skills/{video-script/scripts/brief_context.py → video-understanding/scripts/briefing/context.py} +4 -35
  407. package/lib/video-recap/skills/{video-script/scripts/brief_inputs.py → video-understanding/scripts/briefing/inputs.py} +9 -31
  408. package/lib/video-recap/skills/video-understanding/scripts/{brief_timeline.py → briefing/timeline.py} +5 -6
  409. package/lib/video-recap/skills/video-understanding/scripts/consolidate.py +65 -116
  410. package/lib/video-recap/skills/video-understanding/scripts/detect.py +31 -40
  411. package/lib/video-recap/skills/video-understanding/scripts/lib.py +30 -86
  412. package/lib/video-recap/skills/video-understanding/scripts/narration_lint.py +63 -39
  413. package/lib/video-recap/skills/video-understanding/scripts/speech_ownership.py +4 -4
  414. package/lib/video-recap/skills/video-understanding/scripts/storyboard.py +17 -79
  415. package/lib/video-recap/skills/video-understanding/scripts/understanding_brief.py +14 -40
  416. package/lib/video-recap/skills/video-understanding/scripts/understanding_cache.py +64 -46
  417. package/lib/video-recap/skills/video-understanding/scripts/understanding_runner.py +31 -11
  418. package/lib/video-recap/skills/video-understanding/scripts/understanding_storyboard.py +19 -14
  419. package/lib/video-recap/skills/video-understanding/scripts/vlm.py +80 -108
  420. package/lib/video-recap/skills/video-voiceover/SKILL.md +29 -19
  421. package/lib/video-recap/skills/video-voiceover/references/index-tts.md +31 -0
  422. package/lib/video-recap/skills/video-voiceover/scripts/approved_text_policy.py +123 -0
  423. package/lib/video-recap/skills/video-voiceover/scripts/dub.py +51 -59
  424. package/lib/video-recap/skills/video-voiceover/scripts/lib.py +8 -44
  425. package/lib/video-recap/skills/video-voiceover/scripts/providers/__init__.py +1 -0
  426. package/lib/video-recap/skills/video-voiceover/scripts/providers/index_tts.py +184 -0
  427. package/lib/video-recap/skills/video-voiceover/scripts/voiceover.py +212 -134
  428. package/package.json +1 -1
  429. package/lib/oh-story/skills/story-long-analyze/references/material-decomposition.md +0 -538
  430. package/lib/oh-story/skills/story-long-analyze/references/output-templates.md +0 -603
  431. package/lib/oh-story/skills/story-long-scan/references/scan-output-format.md +0 -207
  432. package/lib/oh-story/skills/story-short-analyze/references/output-templates.md +0 -561
  433. package/lib/video-recap/skills/video-assemble/scripts/jianying_schema.py +0 -98
  434. package/lib/video-recap/skills/video-recap/references/creative-editing-playbook.md +0 -225
  435. package/lib/video-recap/skills/video-recap/references/research-guide.md +0 -74
  436. package/lib/video-recap/skills/video-recap/references/timeline-and-jianying.md +0 -250
  437. package/lib/video-recap/skills/video-script/scripts/agent_brief.py +0 -399
  438. package/lib/video-recap/skills/video-script/scripts/brief_timeline.py +0 -327
  439. package/lib/video-recap/skills/video-script/scripts/narration.py +0 -12
  440. package/lib/video-recap/skills/video-understanding/scripts/brief_context.py +0 -348
  441. package/lib/video-recap/skills/video-understanding/scripts/brief_inputs.py +0 -290
  442. /package/lib/video-recap/skills/video-assemble/scripts/{jianying_tracks.py → jianying/tracks.py} +0 -0
  443. /package/lib/video-recap/skills/video-recap/scripts/{mimo_qc_contract.py → qc/mimo_contract.py} +0 -0
  444. /package/lib/video-recap/skills/video-voiceover/scripts/{fish_audio.py → providers/fish_audio.py} +0 -0
@@ -1,225 +0,0 @@
1
- # 创作剪辑工作法
2
-
3
- 本参考只规定 Agent 的创作判断,不增加渲染模块。进入剪辑或写稿前,先完成这里的决策,再写 `clip_plan.json` 或 `narration.json`。
4
-
5
- ## 先判断创作控制模式
6
-
7
- - **CREATE**:没有既定成片方向,可以比较故事/剪辑假设并选择。
8
- - **DIRECTED**:用户已经指定结构、镜头、台词或表达,目标是准确落实而不是展示替代创意。
9
- - **REVISION**:基于已有版本看片修改。最新反馈覆盖旧决定;本轮未点名内容默认冻结。
10
-
11
- REVISION 先列本轮修改项与冻结项。表达、节奏、字幕意见写回 `style_card.json`,镜头与声音意见写回 `visual_audio_board.json`;只有故事主线改变才更新 `recap_story_plan.json`。删除内容时也删除过期的计划描述。完成后分别验证“该变的确实变了”和“不该变的没有漂移”。
12
-
13
- ## 决策优先级
14
-
15
- 硬约束先于审美:
16
-
17
- 1. **证据真实**:人物、关系、因果和结果必须由画面、对白、可靠背景或用户上下文支撑。
18
- 2. **声音可懂**:关键原声不能被截成半句,旁白不能把必须听见的对白完全盖住。
19
-
20
- 硬约束满足后,发生冲突时按以下顺序取舍:
21
-
22
- 1. 情绪与人物;
23
- 2. 故事推进;
24
- 3. 节奏;
25
- 4. 视线与画面连续;
26
- 5. 技术上的“绝对工整”。
27
-
28
- 不要为了连续而牺牲人物反应,也不要为了快而删掉真正改变观众感受的瞬间。
29
-
30
- ## 五次专业判断
31
-
32
- ### 1. 导演:先决定观众经历什么
33
-
34
- 先回答,而不是先写开场文案:
35
-
36
- - 观众承诺:看完具体会理解、担心或感受到什么?
37
- - POV:这条内容主要跟随谁的经历?谁不是主视角?
38
- - 戏剧问题:观众一直想知道的那个问题是什么?
39
- - 情绪路径:开头的情绪如何变成结尾的情绪?
40
- - 隐瞒与揭示:什么信息暂时不说,何时揭示才最有力量?
41
- - 结尾余味:答案落地后,观众最后应留下什么感受?
42
-
43
- CREATE 至少提出两个可成立的剪辑假设,再选一个。比较的是叙事效果,不是措辞:例如“按主角认知逐步揭示”与“先展示后果再追问原因”。DIRECTED / REVISION 沿用用户指定或已确认的主线,不为满足模板重新发散。只记录当前选择与理由,不输出冗长思维过程。
44
-
45
- ### 2. 故事编辑:把素材组织成变化
46
-
47
- beat 不是固定秒数、场景名或一句旁白;beat 是一次可感知的变化。每个保留 beat 至少改变一项:
48
-
49
- - 观众知道了什么;
50
- - 人物想要什么;
51
- - 谁占上风;
52
- - 关系如何移动;
53
- - 情绪如何转向;
54
- - 风险或代价如何升级。
55
-
56
- 如果移除一个 beat 后,因果、人物或情绪都没有损失,它通常不值得占用成片时间。钩子必须提出这条故事真正会兑现的问题,不能制造正文不回答的夸张承诺。
57
-
58
- ### 3. 画面剪辑:选择时刻,而不只选择事件
59
-
60
- 对每个 beat 做以下判断:
61
-
62
- - **入点**:能否晚一点进入,跳过已经能推断的铺垫?
63
- - **出点**:信息或情绪落地后,能否早一点离开?
64
- - **表演**:说话者与倾听者谁更能承载此刻?动作与反应谁更重要?
65
- - **不可替代瞬间**:停顿、迟疑、失误、眼神、动作声音中,哪一个让人物变得真实?
66
- - **节奏**:这一拍需要冲过去,还是需要多停半秒让含义落地?
67
- - **边界**:优先完整动作、完整台词和自然声音边界;不要机械地把每个片段切成同一长度。
68
-
69
- 进入 `clip_plan.json` 的不是“发生过的所有重要事件”,而是最能让观众经历这条主线的具体时刻。
70
-
71
- 目标不是绝对最短,而是**最短但完整**:晚进不能丢掉理解动作所需的前提,早出不能吃掉表演的回报。建立空间和事实的镜头通常可以短;关键对视、亲吻、受伤反应、决定落地或沉默可以多停一点,让观众先感受到再离开。
72
-
73
- 场景之间的 IN / OUT 也要有任务:
74
-
75
- - 新人物、地点或情绪场景,先给画面一个可感知的建立时刻,再让旁白进入;旁白不必与画面同帧起跑。
76
- - OUT 优先落在动作完成、反应落地、台词句末、沉默结束或干净硬切前。
77
- - 不要在原片叠化、闪白或其他转场的中间再切一次。转场至少由画面变化、动作延续、声音接力或叙事跨越中的一项驱动。
78
-
79
- scene-change score、逐帧亮度和接点 contact sheet 只用于诊断:检查每个接点前后约 0.5–1 秒,定位硬切、白闪或曝光叠化候选。修复优先收进稳定镜头、保留原片完整转场的一侧、扩展源素材,或用相邻有效镜头补足时长;不能为了视觉干净切断台词。最终必须真实播放接点,不能把检测分数当成观看结论。
80
-
81
- 对短时间频繁切镜头的段落,先用 ffmpeg scene filter 输出候选时间,例如:
82
-
83
- ```bash
84
- ffmpeg -i input.mp4 -vf "select='gt(scene,0.35)',showinfo" -an -f null -
85
- ```
86
-
87
- 阈值只用于召回候选,闪白、叠化和大幅运动都可能误报。把候选映射回 source 区间和成片拼接边界后再分类处理:
88
-
89
- - **原片切点**:无关的短镜头按完整 source shot 删除;相关但停留过短、看起来像闪一下的镜头,向前/后扩展到完整动作、反应、台词或下一个干净切点。这里的“拉长”是多保留真实源素材,不默认用定格或慢放制造不存在的表演。
90
- - **本次剪辑制造的切点**:优先移动 IN / OUT、恢复同一源镜头的连续运动、合并相邻片段,或换成有叙事任务的连接镜头;能消除就不保留。溶解、闪白和包装不能用来遮掩坏接点。
91
- - **有意的原片蒙太奇**:只有当每个短镜头都提供新信息、动作或节奏回报,且正常播放仍清楚可读时才保留;否则按无关或过短镜头处理。
92
-
93
- 密集度不是单一固定秒数门槛。先找同一短窗内的连续候选,再以正常速度播放判断观众感受到的是有效节奏还是闪烁。
94
-
95
- ### 4. 声音与旁白:先分工,再写字
96
-
97
- 每个 beat 先指定一个主要 `audio_owner`:
98
-
99
- - `original_dialogue`:原对白本身就是事件或表演;
100
- - `action_sound`:动作声音承担冲击、因果或空间感;
101
- - `ambience` / `music`:环境或音乐承担情绪;
102
- - `silence`:沉默、停顿或呼吸是内容;
103
- - `narration`:画面和原声无法独自交代必要的上下文、因果或预期。
104
-
105
- 只有当旁白有明确工作时才写。`narration_job` 只能从以下任务中选择:
106
-
107
- - `context`:补充看不见但必要的背景;
108
- - `causal_link`:连接被压缩掉的因果;
109
- - `foreshadow`:建立稍后会兑现的预期;
110
- - `interpretation`:基于证据指出人物选择、关系或代价;
111
- - `transition`:跨越时间、地点或素材来源;
112
- - `none`:画面、原声或沉默已经足够。
113
-
114
- `7:3` 只可作为没有更好判断时的粗略首稿参考,不是质量目标或覆盖配额。强对白可以让一个 beat 完全没有旁白;信息密集的压缩段也可以由旁白主导。
115
-
116
- 旁白拥有一个 beat 时,先写成一个连续思路,常见推进是“前提 → 触发动作 → 变化/意义”。句子数量不是目标;一个完整长句或少量相连句都可以,关键是一次 TTS 能自然说完而不是一句一停。字幕可以为阅读拆成多个 cue,但不能反过来把朗读稿切成碎 utterance。
117
-
118
- “不是 A,而是 B”只在素材确实需要纠正一个可能的旧判断时有价值。不要先虚构错误判断,再用肯定句制造洞察;能直接写动作、因果和后果时就直接写。
119
-
120
- ### 5. 观众复核:从第一次观看出发
121
-
122
- 完成草案后做三次反事实检查:
123
-
124
- 1. **静音旁白**:只看画面和原声,人物、变化和关键情绪是否仍可感知?
125
- 2. **只听声音**:旁白是否形成一条可听懂的主线,而不是字幕腔或画面复述?
126
- 3. **第一次观看**:开头承诺了什么、每一拍又打开了什么问题、结尾是否真正回答?
127
-
128
- 再逐 beat 追问:
129
-
130
- - 删除它,什么会坏?什么都不坏就删。
131
- - 换成反应镜头,情绪是否更强?
132
- - 旁白改成原声或沉默,含义是否更好?
133
- - 提前揭示或延后揭示,哪一个更符合 POV?
134
- - 能否晚进、早出,而不损失理解?
135
-
136
- 只优先处理 1–3 个最高回报修改,避免用大量低价值润色掩盖结构问题。
137
-
138
- 准备交付时,把抽象的“第一次观看”落实成动作:正常速度完整播放实际最终文件;逐个播放接点前后;完整只听声音;再单独复看开头、核心情绪点和结尾。脚本、样帧与自动 QC 只能辅助定位,不能替代完整观看。
139
-
140
- ## Agent 创作产物
141
-
142
- 这些是简洁的决策记录,不是公开的完整思维过程。CLI 可以忽略它们,但后续 Agent 与建议型评审会使用它们保持创作一致。
143
-
144
- ### `recap_story_plan.json`
145
-
146
- ```json
147
- {
148
- "schema_version": 1,
149
- "director_intent": {
150
- "viewer_promise": "观众最终得到的具体体验",
151
- "pov": "主要跟随谁,以及为什么",
152
- "dramatic_question": "贯穿全片的问题",
153
- "emotional_start": "起始情绪",
154
- "emotional_end": "结束情绪",
155
- "ending_aftertaste": "最后余味",
156
- "withhold_reveal": "保留什么,何时揭示"
157
- },
158
- "hypotheses": [
159
- {"id": "h1", "spine": "方案一主线", "opening": "如何进入", "ending": "如何落地", "risk": "主要风险"},
160
- {"id": "h2", "spine": "方案二主线", "opening": "如何进入", "ending": "如何落地", "risk": "主要风险"}
161
- ],
162
- "chosen_hypothesis": "h1",
163
- "choice_reason": "为什么它更符合素材中的人物、故事和情绪",
164
- "beats": [
165
- {
166
- "beat_id": "b01",
167
- "source_id": "可选,多视频时填写",
168
- "source_start": 12.0,
169
- "source_end": 20.0,
170
- "function": "hook|setup|turn|escalation|payoff",
171
- "event": "可观察到的事件",
172
- "change": "knowledge|power|emotion|goal: before -> after",
173
- "audience_question_in": "进入前观众想知道什么",
174
- "audience_question_out": "离开时答案或新问题是什么",
175
- "character_focus": "此拍由谁承载",
176
- "must_keep_moment": "不可替代的动作/表情/台词/声音",
177
- "evidence": ["visual", "asr"]
178
- }
179
- ]
180
- }
181
- ```
182
-
183
- 上例是 CREATE 形态。DIRECTED / REVISION 可以只保留用户指定或当前采用的假设;不要复制一个虚假备选来凑数量。
184
-
185
- ### `visual_audio_board.json`
186
-
187
- ```json
188
- {
189
- "schema_version": 1,
190
- "items": [
191
- {
192
- "beat_id": "b01",
193
- "source_id": "可选,多视频时填写",
194
- "source_start": 12.0,
195
- "source_end": 20.0,
196
- "output_start": null,
197
- "output_end": null,
198
- "picture_job": "orientation|evidence|performance|reaction|action|contrast",
199
- "preferred_moment": "具体要保留的画面时刻",
200
- "entry_reason": "为什么从这里进入",
201
- "exit_reason": "为什么在这里离开",
202
- "audio_owner": "original_dialogue|action_sound|ambience|music|silence|narration",
203
- "original_audio_anchor": "要完整保留的对白/动作声/停顿",
204
- "narration_job": "none|context|causal_link|foreshadow|interpretation|transition",
205
- "handoff": "前后画面、原声与旁白如何接力"
206
- }
207
- ]
208
- }
209
- ```
210
-
211
- cut 第一阶段先用原片时间写;`edited_source.mp4` 产生后,在第二阶段补上输出时间并重新确认 `audio_owner` / `narration_job`。
212
-
213
- ## 内容质量基线
214
-
215
- 进入 TTS 前,以下问题都必须能用具体 beat 回答;否则先改计划或脚本:
216
-
217
- 1. **承诺**:开头提出的真实问题,结尾是否兑现?
218
- 2. **主线**:是否有一个明确 POV 和一条主导因果/关系线?
219
- 3. **变化**:每个 beat 是否改变知识、权力、目标、关系、情绪或风险?
220
- 4. **人物**:是否保留了至少一个不能由剧情概述替代的表演/反应瞬间?
221
- 5. **视听分工**:每个 beat 是否明确由画面、原声、沉默或旁白中的谁主导?
222
- 6. **必要性**:旁白是否都在增加信息或期待,而不是复述像素?
223
- 7. **完整观看**:实际最终文件是否完整看过、逐接点看过并只听声音检查过?
224
-
225
- 这套基线与抖音、YouTube 或任何平台数据无关。先让内容本身成立,再讨论标题、封面、时长档位和发布优化。
@@ -1,74 +0,0 @@
1
- # 背景调研指南(可选)
2
-
3
- Agent 在开始视频理解**之前**先做背景调研,确认作品名、角色关系、剧情背景或科普概念,写入 `work_dir/background_research.json`。理解阶段会把它并入 VLM 的画面分析上下文,让场景描述能直接叫出人物名字、带着剧情读画面,而不是把人都标成「黑衣男子」。**调研不是必需步骤**;没有浏览器工具、网络不可用或用户未提供明确片名时,直接跳过,不阻塞视频生成。
4
-
5
- ## 工具选择
6
-
7
- 使用当前环境里可用的任意检索方式即可,例如:
8
-
9
- - Codex / Claude 自带的联网搜索或网页浏览工具
10
- - 用户已经配置好的浏览器自动化或页面读取工具
11
- - 普通浏览器手动查找后把结果整理进 JSON
12
- - 已知资料、用户给的剧情背景或项目内已有文档
13
-
14
- ## 通用流程
15
-
16
- 1. 从 `--context`、文件名或用户描述里提取可搜索关键词。
17
- 2. 搜索 1-3 个高价值问题,不要过度调研。
18
- 3. 只记录对解说有帮助的事实:人物关系、剧情前提、世界观、当前集上下文、术语解释。
19
- 4. 写入 `work_dir/background_research.json`。
20
- 5. 如果查不到可靠信息,跳过调研并继续视频理解;不要在理解索引生成前提前写 `narration.json`。
21
-
22
- ## 按视频类型搜索策略
23
-
24
- ### 短剧 / 电视剧
25
-
26
- | 搜索关键词 | 目标字段 |
27
- |-----------|---------|
28
- | `{作品名} 剧情 介绍 人物` | synopsis, characters |
29
- | `{作品名} 人物 关系` | characters |
30
- | `{作品名} 第{N}集 剧情` | episode_context |
31
-
32
- ### 电影
33
-
34
- | 搜索关键词 | 目标字段 |
35
- |-----------|---------|
36
- | `{电影名} 剧情 简介` | synopsis |
37
- | `{电影名} 影评 解读` | cultural_notes |
38
-
39
- ### 纪录片 / 科普视频
40
-
41
- | 搜索关键词 | 目标字段 |
42
- |-----------|---------|
43
- | `{主题} 背景 知识` | worldbuilding |
44
- | `{核心概念} 解释` | synopsis |
45
- | `{主题} 最新 进展` | cultural_notes |
46
-
47
- ## 写入格式
48
-
49
- 写入 `work_dir/background_research.json`,只填搜到的字段,未搜到的字段省略,不要写 `null` 或空字符串。
50
-
51
- ```json
52
- {
53
- "synopsis": "...",
54
- "characters": {
55
- "角色名": "简介或关系"
56
- },
57
- "worldbuilding": "...",
58
- "episode_context": "...",
59
- "cultural_notes": [
60
- {"item": "...", "explanation": "..."}
61
- ]
62
- }
63
- ```
64
-
65
- ## 错误处理
66
-
67
- | 场景 | 处理 |
68
- |------|------|
69
- | 没有浏览器 / 搜索工具 | 跳过调研,继续视频理解 |
70
- | 搜索无结果 | 换一组关键词重试一次,仍无结果则继续视频理解 |
71
- | 结果互相矛盾 | 只使用用户提供的上下文或画面/ASR 可验证的信息 |
72
- | 信息可能剧透后续 | 只用于理解人物关系,不在解说里剧透用户没要求的后续剧情 |
73
-
74
- **原则**:背景资料只能补上下文,不能替代 `vlm_analysis.json` / `asr_result.json` 里的画面和对白证据。
@@ -1,250 +0,0 @@
1
- # Multi-track timeline (`timeline.json`) + optional 剪映 export
2
-
3
- `video-assemble` always emits `timeline.json`: a backend-neutral description of
4
- the finished recap. ffmpeg remains the canonical renderer; the optional 剪映
5
- exporter consumes the same timeline to make an editable sidecar draft. Timeline
6
- times are seconds and volumes are gains, so this file has no 剪映-only units.
7
-
8
- ## `timeline.json` schema v2
9
-
10
- ```jsonc
11
- {
12
- "schema_version": 2,
13
- "canvas": {"width": 1280, "height": 720, "fps": 25},
14
- "duration": 315.0,
15
- "tracks": [
16
- {"kind": "video", "name": "video", "clips": [
17
- {"source_path": "/orig.mp4",
18
- "source_start": 243.0, "source_end": 268.0,
19
- "timeline_start": 0.0, "timeline_end": 25.0,
20
- "audio": {"role": "original", "base_gain": 0.85,
21
- "volume_keyframes": [{"t": 0.0, "gain": 0.85},
22
- {"t": 2.19, "gain": 0.2}]}}
23
- ]},
24
- {"kind": "audio", "name": "narration", "role": "narration", "segments": [
25
- {"source_path": "/_placed_0000.wav", "timeline_start": 2.19,
26
- "timeline_end": 5.9, "gain": 1.0, "text": "…",
27
- "overlaps_speech": true,
28
- "source_duck_end": 6.1, "source_restore_at": 6.35,
29
- "source_handoff_status": "sentence_boundary"}
30
- ]},
31
- {"kind": "audio", "name": "bgm", "role": "bgm", "loop": true,
32
- "segments": [{"source_path": "/bgm.mp3", "timeline_start": 0.0,
33
- "timeline_end": 315.0, "gain": 0.18,
34
- "volume_keyframes": []}]},
35
- {"kind": "text", "name": "subtitle", "segments": [
36
- {"text": "…", "timeline_start": 2.19, "timeline_end": 5.9}
37
- ]},
38
- {"kind": "image", "name": "image", "segments": [
39
- {"source_path": "/card.png", "timeline_start": 3.0,
40
- "timeline_end": 7.0, "opacity": 0.8, "rotation_degrees": 0,
41
- "scale": {"x": 0.5, "y": 0.5},
42
- "position": {"x": 0.25, "y": -0.2},
43
- "flip": {"horizontal": false, "vertical": false}}
44
- ]}
45
- ]
46
- }
47
- ```
48
-
49
- - **video** — source clips plus editable original-audio volume automation. In
50
- cut mode, explicit `--source-video` keeps references on the real source ranges.
51
- - **narration** — placed TTS segments. `source_path` points to the exact complete
52
- per-segment PCM used by the canonical mix (`_placed_*.wav`), never a longer
53
- pre-fit file that an editor would trim at `timeline_end`.
54
- - **bgm** — optional looped music with its own volume automation.
55
- - **subtitle** — display-ready narration subtitles.
56
- - **image** — optional local photo overlays. Transforms use normalized
57
- canvas-center coordinates with positive Y upward. `build_timeline(...,
58
- image_segments=[...])` is currently the programmatic entrypoint; recap does
59
- not invent image overlays automatically.
60
- - `volume_keyframes` are timeline-absolute `{t, gain}` points with linear ramps.
61
- Original-audio handoff keyframes stay low through the final source phoneme
62
- (`source_duck_end`) and release only inside the measured sentence pause, reaching
63
- idle at `source_restore_at`; ffmpeg and the editable timeline share this shape.
64
-
65
- Schema v2 also has additive JianYing authoring fields. Existing v1 timelines
66
- are copied and migrated to v2 at the exporter boundary; an unknown future
67
- schema version is rejected instead of being guessed:
68
-
69
- - video clips may add `speed`, `reverse`, `reverse_path`, `opacity`,
70
- `rotation_degrees`, `scale`, `position`, `flip`, `transition`, `mask`, `lut`,
71
- `compound`, `chroma`, and `green_background`;
72
- - audio/image segments may add constant `speed`; image segments may also add
73
- `transition`, `mask`, and `lut`;
74
- - text segments may add `style`, `style_id`, `words`, and the same visual
75
- transforms. `words[].index` / `length` are UTF-16 code-unit ranges, matching
76
- JianYing and Java rather than Python code-point indexes;
77
- - top-level `style_presets` is a name-to-style object;
78
- - top-level `resource_packages` is a name-to-offline-package object;
79
- - `build_timeline(..., extra_tracks=[...])` appends explicit `sound`, `sticker`,
80
- `text_template`, `video_effect`, or `face_effect` tracks without making the
81
- normal recap pipeline invent proprietary effects.
82
-
83
- For a video clip with constant speed, the authored ranges must satisfy
84
- `source_end - source_start == (timeline_end - timeline_start) * speed`; an
85
- inconsistent clip is rejected. Image and resource segments derive that source
86
- duration automatically. This keeps source selection unambiguous.
87
-
88
- ## Optional 剪映 / JianYing export
89
-
90
- `--export-jianying` / `EXPORT_JIANYING=1` maps the timeline into a folder with
91
- `draft_content.json`, `draft_info.json`, and `draft_meta_info.json`. The current
92
- adapter aligns its local-draft contract with
93
- [`duoec/duo-video`](https://github.com/duoec/duo-video) commit
94
- `ef4eb46c823910553f901649f2f13fd7575e748f`:
95
-
96
- - root schema profile `version: 360000`, `new_version: 111.0.0`, and template
97
- `app_version: 5.9.5-beta1`, including `common_mask` in the material skeleton;
98
- - all segment times converted to integer microseconds at one boundary;
99
- - narration interval ends are rounded outward before that conversion, and export
100
- probes bundled PCM duration; this prevents timestamp rounding from shaving even
101
- a few samples from the final word;
102
- - narration and BGM as audio tracks, video/photo as video tracks, subtitles as
103
- text tracks; regular segments use the schema `render_index` /
104
- `track_render_index` value `2`;
105
- - subtitle materials use `type: subtitle`, with a zero-based full
106
- `source_timerange` and timeline placement in `target_timerange`;
107
- - native `KFTypeVolume` keyframes and split BGM loops remain editable;
108
- - true half-open interval allocation: adjacent segments reuse a track, while
109
- overlapping image/video/text material is moved to a numbered sibling track;
110
- - same-type first tracks use `flag: 0`; additional tracks use `flag: 2`.
111
-
112
- The upstream README's “verified with 剪映 v10.1.0” is an application smoke-test
113
- claim. The embedded `5.9.5-beta1` value is the upstream JSON template profile;
114
- it is **not** a claim that this project installs or emulates 剪映 5.9.5. We keep
115
- those two facts separate and do not promise compatibility with every desktop
116
- release without a real-app smoke test.
117
-
118
- ### Portable media bundle
119
-
120
- Bundling is on by default because a clone or moved project must open without the
121
- original machine's absolute paths. The writer copies and de-duplicates media to:
122
-
123
- ```text
124
- Resources/local/video/
125
- Resources/local/audio/
126
- Resources/local/image/
127
- ```
128
-
129
- Material paths in `draft_content.json` use 剪映's
130
- `##_draftpath_placeholder_…_##/Resources/local/...` form. Type-0 entries in
131
- `draft_meta_info.json` index each copied file with `file_Path`, `metetype`
132
- (`video` / `music` / `photo`), ID, MD5, duration, dimensions, import timestamps,
133
- and rough-cut/sub ranges. Filename collisions are resolved within each resource
134
- kind. Missing media is reported and left as an honest external reference rather
135
- than being recorded as successfully bundled.
136
-
137
- `--jianying-no-bundle-media` is only for environments where 剪映 can reach the
138
- original paths. It trades portability for avoiding a copy and is not the
139
- recommended clone-ready workflow. Non-empty draft folders are never overwritten;
140
- a numbered sibling such as `recap_demo_2` is created. The entire folder is staged
141
- and atomically renamed, so a copy/write exception does not publish a half-draft.
142
-
143
- ### Duo-video capability alignment
144
-
145
- The adapter is pinned to `duo-video@ef4eb46`; it deep-copies the upstream MIT
146
- JSON templates before replacing authored values. Core categories use status
147
- `supported`; proprietary-resource categories use
148
- `supported_offline_payload`. The latter means a pre-adapted material/segment
149
- protocol can be emitted from caller data. It does **not** mean this project
150
- ships JianYing's proprietary resource catalog or reconstructs it from an ID.
151
-
152
- | Capability | Timeline authoring | Output |
153
- | --- | --- | --- |
154
- | Video / local photo / audio | normal `video`, `image`, `audio` tracks | `materials.videos` / `audios`; photos use `type: photo` |
155
- | Text / subtitle / style | `text` track plus `style`, `style_id`, `words`, `style_presets` | UTF-16 rich-text styles, font/stroke/shadow/background/effect-style payloads |
156
- | Constant speed | `speed > 0` on video/audio/image/resource segments | segment speed plus referenced `materials.speeds`; curve speed is not claimed |
157
- | Reverse | `reverse: true`, optionally `reverse_path` | export generates a local reversed file with ffmpeg when needed, then bundles it; direct `build_draft()` requires `reverse_path` |
158
- | Transform | opacity, rotation, scale, normalized position, flip | editable segment `clip` transform |
159
- | Sound / sticker / video effect / face effect | explicit resource track with one offline material source | `audios`, `stickers`, or `video_effects` plus the matching track |
160
- | Text template | explicit resource track with pre-adapted template/text/effect payloads | `text_templates` plus caller-supplied subordinate `texts` / `effects` |
161
- | Transition / mask / LUT | object or package name on a video/photo segment | referenced `transitions`; legacy + `common_mask`; LUT/skin-tone `effects` |
162
- | Green screen / compound | video clip with `compound`, local `green_background`, and `chroma` | nested `materials.drafts` with recursively bundled foreground/background |
163
-
164
- Resource-backed segments must define exactly one of:
165
-
166
- ```jsonc
167
- {"material": {"type": "sticker", "resource_id": "...", "path": "/local/file"}}
168
- {"resource_config": {
169
- "resource_id": "...",
170
- "main_config": {"type": "sticker", "path": "/local/file"},
171
- "resources": [
172
- {"source_path": "/local/file"},
173
- {"source_path": "/local/package-dir", "target_path": "package-dir"}
174
- ],
175
- "cover_img": "/local/cover.png",
176
- "texts": [],
177
- "effects": []
178
- }}
179
- {"resource_package": "named-package"}
180
- ```
181
-
182
- `resource_package` resolves a top-level `resource_packages` entry with the same
183
- canonical snake_case object shape as `resource_config`. `main_config` must be an
184
- object; callers adapt any external Jackson `JyResource` or JSON-file input before
185
- passing it to this skill.
186
-
187
- `resources` is an explicit local-file contract, never a filesystem guess. A
188
- descriptor must contain `source_path` and may additionally set `resource_kind`
189
- and a safe package-relative `target_path`. ZIP input is
190
- validated against path traversal, extracted under
191
- `Resources/local/<kind>/<archive-stem>`, and keeps its internal layout. Exact
192
- declared path values in material JSON, including rich-text JSON strings, are
193
- rewritten to draft placeholders. Missing declared resources, unsafe targets,
194
- unknown package names, and malformed payloads fail explicitly; semantic strings
195
- that happen to match local filenames are never copied. No network lookup,
196
- embedded demo credential, or silent resource-ID fallback is used.
197
-
198
- LUT skin-tone correction additionally requires an offline effect
199
- `main_config` with `lumi_hub_path`; the adapter emits the upstream `version: v3`
200
- skin-tone effect rather than deriving an effect directory from the `.cube`
201
- file's parent.
202
-
203
- Text-template **protocol emission** accepts the output of an offline template
204
- adapter in `main_config` / `texts` / `effects`. This repository does not bundle
205
- or download duo-video's separate `jy_text_template_adapter`, so it does not
206
- claim that an arbitrary official resource ID plus replacement strings can be
207
- adapted locally. The same boundary applies to official stickers/effects: callers
208
- must legally supply complete offline package data.
209
-
210
- ## Isolation and failure behavior
211
-
212
- - Export modules are lazy-imported only after `--export-jianying`; the ffmpeg
213
- render path does not import or depend on them.
214
- - The adapter is Python stdlib + ffprobe only; no vendored package is required.
215
- - Export failure is logged and never invalidates an already-rendered ffmpeg MP4.
216
- - The source clip is un-burned, so hardcoded source subtitles remain visible in
217
- the editable draft. ffmpeg remains the authoritative final mix.
218
-
219
- ## Verification boundary and manual smoke checklist
220
-
221
- Automated golden tests compare root, video, audio, text, rich-text, and
222
- base-segment templates against the pinned upstream revision. Structural tests
223
- cover compound/meta output and exercise every row in the matrix. On macOS,
224
- JianYing Pro `10.8.7-beta1` detected and registered a generated bundled smoke
225
- draft (`copy_draft_external`, `errno: 0`). Manual verification then opened it,
226
- confirmed online video/narration/BGM/subtitle/photo tracks and a valid preview,
227
- saved it, closed it, and reopened it with the same editable timeline. This does
228
- not prove that every caller-supplied official resource package renders correctly.
229
-
230
- AutoJY is a separate desktop-automation/export pipeline in the duo-video
231
- ecosystem, not part of the draft JSON protocol. This repository does not ship or
232
- claim AutoJY UI automation, rendered-file upload, task-status callbacks, or an
233
- automated final-video export smoke test.
234
-
235
- With a desktop 剪映 install, generate a bundled draft and verify:
236
-
237
- 1. it appears in the draft list;
238
- 2. video, narration, BGM, subtitles, and photo overlays are online/editable;
239
- 3. subtitle semantics, track order/flags, and overlap lanes survive reopening;
240
- 4. volume automation is visible/audible;
241
- 5. no absolute-path/offline-media warning appears.
242
-
243
- ## Acknowledgements
244
-
245
- The draft schema also follows
246
- [pyJianYingDraft](https://github.com/GuanYixuan/pyJianYingDraft) and
247
- [capcut-mate](https://github.com/Hommy-master/capcut-mate) (Apache-2.0). The
248
- duo-video alignment independently implements the builders and vendors only the
249
- pinned JSON protocol templates under duo-video's MIT license; no upstream
250
- executable code, resource package, adapter binary, or credential is vendored.