@dragonbyte/dsh-fission-skills 0.1.25 → 0.2.0

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 (56) hide show
  1. package/index.mjs +6 -41
  2. package/package.json +2 -2
  3. package/skills/fission/SKILL.md +32 -369
  4. package/skills/fission/team-profile.md +41 -110
  5. package/skills/asset-extractor/SKILL.md +0 -173
  6. package/skills/depth-quality-gate/SKILL.md +0 -65
  7. package/skills/fission-clip-prompt/SKILL.md +0 -174
  8. package/skills/location-sheets/SKILL.md +0 -53
  9. package/skills/pipeline-a-1-outline/SKILL.md +0 -63
  10. package/skills/pipeline-a-1-outline/references/method.md +0 -81
  11. package/skills/pipeline-a-1-outline/references/output.md +0 -31
  12. package/skills/pipeline-a-1-split-episodes/SKILL.md +0 -49
  13. package/skills/pipeline-a-1-split-episodes/references/method.md +0 -57
  14. package/skills/pipeline-a-1-split-episodes/references/output.md +0 -43
  15. package/skills/pipeline-a-2-screenplay/SKILL.md +0 -74
  16. package/skills/pipeline-a-2-screenplay/references/output.md +0 -121
  17. package/skills/pipeline-a-2-screenplay/references/performance-design.md +0 -153
  18. package/skills/pipeline-a-2-screenplay/references/screenplay-authoring.md +0 -101
  19. package/skills/pipeline-a-3-assets/SKILL.md +0 -73
  20. package/skills/pipeline-a-3-assets/references/character-design.md +0 -117
  21. package/skills/pipeline-a-3-assets/references/environment-design.md +0 -115
  22. package/skills/pipeline-a-3-assets/references/environment-layout.md +0 -71
  23. package/skills/pipeline-a-3-assets/references/output.md +0 -97
  24. package/skills/pipeline-a-3-assets/references/planning-and-reuse.md +0 -53
  25. package/skills/pipeline-a-3-assets/references/prop-design.md +0 -136
  26. package/skills/pipeline-a-3-assets/references/voice-design.md +0 -35
  27. package/skills/pipeline-a-3-character-prompt/SKILL.md +0 -56
  28. package/skills/pipeline-a-3-character-prompt/references/examples/character-sheet-layout.png +0 -0
  29. package/skills/pipeline-a-3-character-prompt/references/prompt.md +0 -65
  30. package/skills/pipeline-a-4-director/SKILL.md +0 -80
  31. package/skills/pipeline-a-4-director/references/camera-techniques.md +0 -185
  32. package/skills/pipeline-a-4-director/references/directing.md +0 -179
  33. package/skills/pipeline-a-4-director/references/output.md +0 -163
  34. package/skills/pipeline-a-4-director/references/visual-direction.md +0 -123
  35. package/skills/pipeline-a-4-storyboard/SKILL.md +0 -53
  36. package/skills/pipeline-a-4-storyboard/references/blocking.md +0 -61
  37. package/skills/pipeline-a-4-storyboard/references/cinematography.md +0 -293
  38. package/skills/pipeline-a-4-storyboard/references/editing.md +0 -150
  39. package/skills/pipeline-a-4-storyboard/references/output.md +0 -113
  40. package/skills/pipeline-a-4-storyboard/references/review.md +0 -75
  41. package/skills/pipeline-a-5-prompts/SKILL.md +0 -62
  42. package/skills/pipeline-a-5-prompts/references/examples/corridor-tracking.md +0 -56
  43. package/skills/pipeline-a-5-prompts/references/examples/face-to-face-slap.md +0 -109
  44. package/skills/pipeline-a-5-prompts/references/output.md +0 -109
  45. package/skills/pipeline-a-5-prompts/references/prompt-writing.md +0 -132
  46. package/skills/pipeline-a-5-prompts/references/review.md +0 -90
  47. package/skills/pipeline-a-6-video-review/SKILL.md +0 -42
  48. package/skills/pipeline-a-6-video-review/references/method.md +0 -54
  49. package/skills/pipeline-a-6-video-review/references/output.md +0 -17
  50. package/skills/pipeline-a-orchestrator/SKILL.md +0 -49
  51. package/skills/pipeline-a-orchestrator/references/contract.md +0 -151
  52. package/skills/render-gate/SKILL.md +0 -70
  53. package/skills/storybreaker/SKILL.md +0 -134
  54. package/skills/us01-image-config/SKILL.md +0 -56
  55. package/skills/visual-style/SKILL.md +0 -283
  56. package/skills/wardrobe-sheets/SKILL.md +0 -71
@@ -1,151 +0,0 @@
1
- # Hợp đồng chung của luồng script-to-video
2
-
3
- Mọi skill khâu của luồng `pipeline-a-orchestrator` tuân theo file này. Skill khâu không được mâu thuẫn với nó; nếu cần đổi, sửa file này trước.
4
-
5
- ## 1. Danh sách khâu và skill
6
-
7
- | Mã | Khâu | Skill | Đầu vào bắt buộc | Đầu ra chính |
8
- |---|---|---|---|---|
9
- | A0 | Khởi tạo dự án, settings | quy trình (không skill) — mục 10 | yêu cầu user | `source/original.md`, `project.md`, `production-status.md` |
10
- | A1 | Outline | `pipeline-a-1-outline` (user gửi, nguyên văn) | `project.md`, `source/original.md` | `series/outline.md` |
11
- | A2 | Chia tập (chỉ khi có nguyên tác đầy đủ) | `pipeline-a-1-split-episodes` (user gửi, nguyên văn) | outline đã duyệt, nguyên tác | `series/episodes/ep<NN>-source.md`, `series/episodes/allocation.json` (định dạng JSON theo `pipeline-a-1-split-episodes` output.md) |
12
- | A3 | Series Direction + Visual Bible | `pipeline-a-4-director` (phạm vi dự án) | outline đã duyệt | `series/direction.md`, `series/visual-bible.md` |
13
- | A4 | Bối cảnh dùng chung | `pipeline-a-3-assets` (user gửi; shared environments) | visual bible | `assets/<location>.md` (card + layout + góc) |
14
- | B0 | Mở run tập / fork run | quy trình (không skill) — mục 10 | dự án đã có | dòng tập + run trong `production-status.md` |
15
- | B1 | Screenplay | `pipeline-a-2-screenplay` (user gửi, nguyên văn) | outline, ep source (nếu có), state-out tập trước | `script/ep<NN>.md` |
16
- | B2 | Shot plan tập | `pipeline-a-4-director` (phạm vi tập) | screenplay đã duyệt | `storyboards/ep<NN>/direction.md` |
17
- | B3 | Storyboard từng Scene | `pipeline-a-4-storyboard` (user gửi, nguyên văn) | shot plan đã duyệt | card mỗi Scene trong `storyboards/ep<NN>/scenes/S<NN>.md` + `fission_save_clip_plan` |
18
- | B4 | Asset planning tập | `pipeline-a-3-assets` (user gửi; whole-episode) | storyboard **mọi** Scene | `assets/ep<NN>-plan.md` + `assets/<entity>.md` |
19
- | B5 | Chuẩn bị asset (sinh ảnh, voice, đăng ký) | quy trình (không skill) — mục 10; thiết kế do `pipeline-a-3-assets` viết; **prompt ảnh nhân vật cuối cùng theo `pipeline-a-3-character-prompt`** | asset plan đã duyệt | ảnh/voice + `.ark.json` Active |
20
- | B6 | Chia segment (render unit) | quy trình (không skill) — mục 1b + 10 | storyboard + asset ready | `storyboards/ep<NN>/segments.md` |
21
- | B7 | Prompt cho segment hiện tại | `pipeline-a-5-prompts` (user gửi, nguyên văn) | segment, card, asset Active | `storyboards/ep<NN>/clip_<NN>[_r<R>]_prompt.md` |
22
- | B8 | Render | quy trình (không skill) — mục 1b + 6 + 7 + 10 | prompt đã duyệt + xác nhận user | MP4 + `.seedance.json` |
23
- | B9 | Duyệt hình — **mặc định TẮT** (user chốt 20/11/2026) | `pipeline-a-6-video-review` (user gửi; chỉ chạy khi user bật) | MP4 | `storyboards/ep<NN>/reviews/clip_<NN>-r<R>.md` |
24
- | B10 | Sửa video có sẵn | **Bỏ — không có skill riêng (user 20/11/2026).** Lỗi nhỏ (dư giây, đuôi chết, sai khung) → `media_edit` trim/frame, miễn phí; lỗi nội dung → quay về khâu sớm nhất (mục 8) rồi render revision mới | review có lỗi | MP4 mới cạnh bản gốc |
25
- | B11 | Ghép / giao file | `video-editor` (plugin `dsh-video-editor`, cần grant) hoặc quy trình mục 10 | clip đã duyệt | `ep<NN>-cut.mp4` |
26
-
27
- Thứ tự dự án: A0 → A1 → (A2) → A3 → A4. Thứ tự tập: B0 → B1 → B2 → B3 (từng Scene) → B4 → B5 → B6 → B7 (segment hiện tại) → B8 → B9 → segment kế tiếp → B11. Dự án viết mới (không nguyên tác) bỏ A2; outline đóng vai brief.
28
-
29
- ## 1b. Logic render theo cảnh (user chốt 20/11/2026)
30
-
31
- ```
32
- Kịch bản → Tập → Cảnh (chia theo skill) → Clip
33
- Cảnh S<NN>:
34
- Clip 1 = Reference-to-video: prompt + ảnh asset (+ audio nếu có)
35
- Clip 2 = Extension: @Video 1 = Clip 1 ĐÃ DUYỆT + prompt kiểu R2V + asset tương ứng
36
- Clip 3 = Extension: @Video 1 = Clip 2 ĐÃ DUYỆT + …
37
- Clip k = Extension từ Clip k-1 đã duyệt (chuỗi nối tiếp)
38
- Cảnh mới → lại bắt đầu bằng R2V.
39
- ```
40
-
41
- - Chuỗi là tuần tự bắt buộc: clip k chỉ viết prompt chốt và render sau khi clip k-1 được duyệt. Clip k-1 render lại (revision mới) → clip k trở đi phải làm lại từ revision mới đó.
42
- - @Video 1 luôn là **một** clip đơn (2–30 s), không phải đoạn đã ghép.
43
- - Tool: R2V `fission_submit_video`; extension `fission_register_ark_edit_video_asset` (MP4 đã duyệt) → `fission_check_ark_asset` Active → `fission_submit_video_extend` với `referenceVideoUri`, `assetUris`, prompt bắt đầu `Extend @Video 1 forward`.
44
- - Chưa xác minh: video extension trả về chỉ phần mới hay gồm cả phần cũ → kiểm bằng `media_probe` + frame ở lần đầu; nếu có phần trùng thì cắt bằng `media_edit` khi ghép.
45
-
46
- ## 2. Thư mục (gốc: `fission/<version>/` trong thư mục làm việc)
47
-
48
- ```
49
- project.md settings dự án (A0)
50
- production-status.md sổ tiến độ, chỉ lead sửa
51
- source/original.md nguồn nguyên văn, không sửa
52
- series/outline.md
53
- series/episodes/allocation.json, ep<NN>-source.md
54
- series/direction.md, series/visual-bible.md
55
- script/ep<NN>.md
56
- storyboards/ep<NN>/direction.md
57
- storyboards/ep<NN>/scenes/S<NN>.md card storyboard từng Scene
58
- storyboards/ep<NN>/ep<NN>.md do fission_save_clip_plan ghi (không sửa tay)
59
- storyboards/ep<NN>/segments.md
60
- storyboards/ep<NN>/clip_<NN>_prompt.md, clip_<NN>_r<R>_prompt.md
61
- storyboards/ep<NN>/reviews/
62
- storyboards/working/ nháp của teammate
63
- assets/<entity>.md, <slug>_prompt.md, <slug>.png, <entity>-voice.wav
64
- audits/ biên bản kiểm độc lập
65
- ```
66
-
67
- File chấm (`.*.seedance.json`, `.*.ark.json`, `.ark-group.json`) và MP4 đã render: không xoá, không ghi đè, không tạo tay.
68
-
69
- ## 3. Quy ước tên
70
-
71
- - Version: chữ/số/`_`/`-`. Tập `ep01`, cảnh `S01`, clip `EP01 Clip 03`, file `clip_03_prompt.md` — luôn hai chữ số.
72
- - Thực thể: `snake_case` duy nhất, khai một lần trong bảng thực thể của outline, dùng nguyên văn mọi nơi; trong tài liệu viết `@entity`.
73
- - Trạng thái xuất hiện: `<entity>_<state>` (ví dụ `an_office`, `an_injured`); mỗi trạng thái = một ảnh.
74
- - Ảnh sửa lại = tên mới (`_v2`, `_b`), không ghi đè.
75
-
76
- ## 4. Định dạng chung
77
-
78
- - Screenplay: heading `## S<NN> | INT/EXT · <bối cảnh> | <thời điểm> | Estimated <N> seconds`; thoại `@Tên[cách nói]{lời}`; âm thanh `<…>`; `[STATE-IN]`, `[STATE-OUT]`, `[HOOK-OUT]`.
79
- - Storyboard card 10 mục: Screenplay Location and Purpose · Action Process · Dialogue and Sound Mapping · Shot Scale and Composition · Camera Position and Viewing Direction · Camera Movement · Focus and Lighting · Opening Frame Description · Dynamic Prompt · Reference Materials; kèm Estimated Duration (có phép tính), State In/Out, Risk.
80
- - Prompt: heading shot `Shot1|7s` (2.5 có span giây); tối đa 14000 ký tự nhưng khi có ảnh giữ ngắn (~≤1000 ký tự phần mô tả). Viết `Tên's (Image 4)`, không `Tên (Image4)'s`.
81
- - Ngôn ngữ: tài liệu theo ngôn ngữ user; prompt ảnh/video tiếng Anh; thoại giữ ngôn ngữ nói.
82
-
83
- ## 5. Nhịp thoại (không có code kiểm — skill là chốt chặn)
84
-
85
- Tiếng Anh ~3 từ/giây; tiếng Việt ~4–5 âm tiết/giây; tiếng Trung ~4,5 chữ/giây; +~1 s khi đổi người nói. Thời gian không lời ≤ ~1/5 thời gian thoại; hành động đơn ~1–1,5 s; chuyển tư thế/đi lại 1,5–3 s. Thoại là sàn, không nén, không bỏ câu.
86
-
87
- ## 6. Model
88
-
89
- **Quy tắc chọn model theo từng clip (user chốt 20/11/2026):**
90
-
91
- | Điều kiện | Model | ID |
92
- |---|---|---|
93
- | Mặc định (R2V clip 1 và extension clip 2+) | Seedance 2.5 flash | `dreamina-seedance-2-5-flash-261115` |
94
- | Clip có **trên 10 ref** (≥ 11) | Seedance 2.5 | `dreamina-seedance-2-5-260628` |
95
-
96
- - **Ref = mọi tham chiếu gửi kèm**: `@Image N` + `@Video N` (clip trước khi extension) + `@Audio N` (voice, nhạc nền). Ví dụ extension có 8 ảnh + @Video 1 + 2 voice = 11 ref → dùng 2.5.
97
- - Đếm tổng ref thực tế của từng clip rồi chọn model; ghi phép đếm (`ảnh + video + audio = N`) và model vào card và segments.md.
98
- - Extension chạy được trên cả hai model.
99
- - Seedance 2.5: 4–30 s/clip, tối đa 30 ảnh. Giới hạn giây của 2.5 flash: chưa kiểm chứng — ghi là chưa kiểm chứng cho đến khi có lần render xác nhận.
100
- - Luôn truyền `model` rõ ràng: tool R2V mặc định 2.0 mini, tool extension mặc định 2.5 thường.
101
- - Resolution 480p mặc định; tỉ lệ mặc định 9:16.
102
-
103
- ## 7. Cổng (gate)
104
-
105
- | Cổng | Ai mở |
106
- |---|---|
107
- | Duyệt outline (A1), direction/visual bible (A3), screenplay (B1), shot plan (B2), asset plan (B4) | user, bằng câu trả lời cho đúng tài liệu đó |
108
- | Sinh từng ảnh / voice (B5) | user yêu cầu đích danh |
109
- | Render từng segment/revision (B8) | user xác nhận đúng clip + revision + prompt sha256 + thứ tự ref |
110
- | Audit độc lập | teammate không viết tài liệu đó |
111
-
112
- Duyệt tài liệu không bao giờ là quyền chi tiền. “Test” = dừng ở prompt.
113
-
114
- ## 8. Truy lỗi về khâu sớm nhất
115
-
116
- | Lỗi | Khâu |
117
- |---|---|
118
- | Sự kiện, thoại, kiến thức nhân vật | B1 (A1 nếu lệch cốt truyện) |
119
- | Thứ tự/danh tính shot, cỡ cảnh, chuyển động, nhịp, thời lượng nhấn | B2 |
120
- | Vị trí đứng, đường đi, góc máy cụ thể, điểm cắt, ai thấy gì | B3 |
121
- | Ngoại hình, trạng thái, layout bối cảnh, thiếu góc | B4/B5 |
122
- | Prompt diễn đạt sai khi thiết kế đúng (segment chưa adopt) | B7, sửa trong cùng run |
123
- | Đổi thứ đã adopt | Fork run mới, restart từ khâu đó (B0) |
124
-
125
- ## 9. Skill khâu do user cung cấp
126
-
127
- `pipeline-a-1-outline`, `pipeline-a-1-split-episodes`, `pipeline-a-2-screenplay`, `pipeline-a-4-director`, `pipeline-a-4-storyboard`, `pipeline-a-3-assets`, `pipeline-a-5-prompts`, `pipeline-a-6-video-review` do bundle `@dragonbyte/dsh-fission-skills` cung cấp. Tenant muốn bản riêng thì đặt skill cùng tên ở `/workspace/skills/<tên>/` — bản trong workspace thắng bản bundle. Khâu không có skill (A0, B0, B5, B6, B8, B10, B11) làm theo mục 10.
128
-
129
- ## 10. Quy trình cho khâu không có skill
130
-
131
- **A0 Khởi tạo** — chốt (hỏi nếu thiếu): version, nguồn (nguyên tác đầy đủ / ý tưởng), tỉ lệ (mặc định 9:16), ngôn ngữ thoại, voice tham chiếu (mặc định không). Lưu nguồn nguyên văn `source/original.md`; ghi `project.md`; tạo `production-status.md`.
132
-
133
- **B0 Mở tập** — thêm dòng tập vào `production-status.md`. Thứ đã duyệt/adopt không ghi đè: sửa = revision mới, đánh dấu các khâu sau là cần kiểm lại.
134
-
135
- **B5 Chuẩn bị asset** — với mỗi ảnh/voice trong asset plan đã duyệt: lưu prompt (`assets/<slug>_prompt.md`) do `pipeline-a-3-assets` viết (ảnh nhân vật: prompt cuối viết và kiểm theo skill `pipeline-a-3-character-prompt`, chạy checklist của nó) → **chờ user yêu cầu đích danh ảnh đó** → `fission_generate_image` (ảnh gốc) hoặc `fission_generate_image_from_reference` (trạng thái/góc phụ từ ảnh gốc) → mở xem ảnh → user duyệt. **Không đăng ký Ark ở bước sinh ảnh** (user 20/11/2026: ảnh còn duyệt/huỷ nhiều). Đăng ký (sha256 → `fission_register_ark_asset` → poll `fission_check_ark_asset` tới Active) chỉ khi viết storyboard/chuẩn bị render, cho đúng các ảnh clip sẽ trích dẫn. Voice: `fission_convert_voice` → `fission_register_ark_audio_asset` → Active. Ảnh làm lại = tên file mới. Asset dùng lại thì chỉ chọn, không sinh.
136
-
137
- **B6 Chia segment** — theo từng Scene đã có storyboard: chia các Shot thành clip theo mục 1b (clip 1 R2V, clip 2+ extension); mỗi clip 4–30 s, không cắt giữa câu thoại; ghi vào `storyboards/ep<NN>/segments.md` mỗi clip: Scene, dải Shot, giây, kiểu (R2V/Extension từ clip nào), danh sách ref có thứ tự, phép đếm `ảnh + video + audio = N`, model theo mục 6. Lưu từng clip bằng `fission_save_clip_plan`.
138
-
139
- **B8 Render** — chỉ sau khi prompt (B7) xong và user xác nhận đúng clip/revision/sha256 prompt/thứ tự ref:
140
- - Clip 1 (R2V): `fission_submit_video` với `name`, `version`, `episode`, `revision`, `model`, `ratio`, `duration`, `referenceNames` (+ `referenceAudioUris` nếu có).
141
- - Clip k ≥ 2 (Extension): clip k-1 đã được user chấp nhận → `fission_register_ark_edit_video_asset` (MP4 clip k-1, sha256) → `fission_check_ark_asset` Active → `fission_submit_video_extend` với `referenceVideoUri`, `assetUris` (ảnh Active theo thứ tự), `referenceAudioUris` nếu có, `model`, `duration`, `revision`; prompt mở bằng `Extend @Video 1 forward`.
142
- - Poll `fission_check_video` / kiểm task extension; không gửi lại khi kết quả mơ hồ. `media_probe` để biết thời lượng, kích thước thật.
143
- - Duyệt hình (B9) mặc định tắt: user tự xem và nói chấp nhận/không. Chỉ chạy `pipeline-a-6-video-review` khi user bật.
144
-
145
- **B10 Sửa** — không có skill riêng. Sửa ở mức dựng (cắt bỏ đoạn lỗi, thay clip đã render lại bằng `remove` + `insert`, mức tiếng bằng `audio_level`, chữ overlay nhiều giây bằng `caption`) thì dùng `editor_*` của plugin `video-editor` nếu có grant — miễn phí vì chưa render gì. Lỗi bên trong khung hình thì `editor_*` không sửa được: nó chỉ ghi document, không có model sinh pixel và không đọc được cả geometry. Việc đó là `media_edit` hoặc `video-repair` (bundle motion), và clip sửa xong đi vào cut như một clip thay thế, nên draft thể hiện đúng chỗ đã thay. Dư giây/đuôi chết/sai khung → `media_edit` (miễn phí, file mới). Lỗi nội dung → quay về khâu sớm nhất (mục 8) → revision mới (cần xác nhận); clip sau trong cùng cảnh phải làm lại.
146
-
147
- **B11 Ghép** — các clip đã chấp nhận theo thứ tự Scene/clip; nếu extension trả về có phần trùng thì cắt trước. Cùng thông số → `media_concat`; khác fps/kích thước hoặc cần cắt → timeline JSON + `media_compose`. Output `fission/<version>/ep<NN>-cut.mp4`, probe trước khi báo. Có grant plugin `video-editor`: dùng skill `video-editor` — cut là một file JSON trong workspace nên dựng và sửa không tốn gì và không đụng clip gốc. Trình tự: `editor_open` → `editor_apply` (trim, split, move, remove, insert, transition, caption, audio_level, effect) → `editor_audit` → `editor_preview` → `editor_check` → `editor_export` ra MP4, `editor_convert` ra draft CapCut để mở lên là thấy đang edit gì. `editor_check` là cổng, vì draft CapCut từ chối bốn thứ: look/grade (`effect`), caption đặt lệch ngang (CapCut chỉ đặt theo dải dọc), transition có style không phải resource `vimo://` thật hoặc vắt qua gap, và keyframe (không có entry point, field viết tay đã đo là mất khi đọc lại). Thứ nào bị từ chối thì cut đó chỉ còn đường export ffmpeg — đừng báo đã giao bản CapCut khi `editor_check` không cho.
148
-
149
- ## 11. Cấu hình hình ảnh & ngôn ngữ của dự án
150
-
151
- Nếu user đưa chuẩn hình ảnh riêng: lưu nguyên văn vào `series/visual-standard.md`, ghi vào `project.md`. Câu cấu hình user chỉ định được chèn nguyên văn vào đầu dòng `Visual style:` của mọi prompt video (skill `pipeline-a-5-prompts`) và đầu mọi prompt ảnh asset (skill `pipeline-a-3-assets`). Ngôn ngữ thoại user khóa → dòng `Dialogue language:` của mọi prompt video theo đúng ngôn ngữ đó. Visual Bible (skill `pipeline-a-4-director`) phải khớp chuẩn này.
@@ -1,70 +0,0 @@
1
- ---
2
- name: render-gate
3
- description: Gate every paid video render behind an explicit per-clip confirmation. Use when the user asks to test a clip, says "chạy test", approves a plan, or answers a question about rendering, so a test stops at the written prompt and no clip is submitted on a general instruction.
4
- ---
5
-
6
- # Render gate — a test stops at the prompt
7
-
8
- A render is a paid, irreversible submission. Two rules override any earlier approval, however broad it sounded.
9
-
10
- ## Rule 1 — "test one clip" means write the prompt, then stop
11
-
12
- When the user says any form of **test a clip** — "chạy test clip 3", "test 1 clip", "xem kết quả trước", "thử xem sao" — the deliverable of that turn is:
13
-
14
- 1. the storyboard plan for that clip (saved with `fission_save_clip_plan` when the plan changed),
15
- 2. the saved prompt file `storyboards/ep<N>/clip_<NN>_r<R>_prompt.md`,
16
- 3. the exact submission facts: clip name, revision, model, duration, ratio, ordered `assetUris`, `referenceVideoUri`, audio references, prompt character count,
17
- 4. a one-line statement of what is being tested and which defects the test is meant to expose.
18
-
19
- Then **stop and ask for confirmation**. Do not submit. A test is a cheap dry run of the prompt and the plan, not a purchase.
20
-
21
- "Test" is never standing permission for the following clips, for a batch, or for a retry of the same clip.
22
-
23
- ## Rule 2 — every clip needs its own confirmation, every time
24
-
25
- Before **each** `fission_submit_video` call, ask, and include the facts that make the answer checkable:
26
-
27
- - clip name and episode (`EP01 Clip 03`) and the **revision number**;
28
- - model id and duration, and that duration is inside that model's range;
29
- - the ordered reference map, each entry with its entity name;
30
- - whether a depth video is attached, and which asset URI;
31
- - the prompt file path plus its sha256 or character count, so the user confirms the text that will actually be sent;
32
- - the previous render of this clip, if any, and what the new one changes.
33
-
34
- A confirmation is valid only for that clip, that revision, that prompt bytes and that reference order. If any of them changes, ask again. A change of one word in the prompt invalidates the confirmation.
35
-
36
- These do **not** count as confirmation:
37
-
38
- - approval of the outline, the script, the storyboard or the audit;
39
- - "continue", "tiếp tục", "làm đi", "ok" in answer to something else;
40
- - an approval of an earlier revision of the same clip;
41
- - a budget statement, a deadline, or a request to move faster;
42
- - the user's own earlier instruction to build the pipeline.
43
-
44
- ## How to ask
45
-
46
- One compact block, not a wall:
47
-
48
- ```
49
- Render gate — EP01 Clip 03, revision 7
50
- model dreamina-seedance-2-5-260628 · 17 s · 9:16 · 480p
51
- refs 1 elena_burgundy_day_f · 2 chase_bare_d · 3 dana_bed_slip_e · 4 marcus_suit_c · 5 vantage_suite_v2
52
- video @Video 1 = asset://asset-… (depth, 54.6–71.6 s)
53
- prompt clip_03_r7_prompt.md (sha256 …, 3 918 chars)
54
- changes vs r6: strict shot order, Dana stays on the bed, no legible mic branding, Chase in frame for line 2
55
- Submit? (paid task)
56
- ```
57
-
58
- ## After submission
59
-
60
- - Poll with `fission_check_video`; never resubmit the same clip/revision because a check looked ambiguous.
61
- - A rendered file is not an accepted clip: cut frames, inspect them, then have an independent render audit before reporting it as good.
62
- - One revision is one charge; a repair is a new revision and needs its own confirmation.
63
- - **Before treating a defect as a re-render, check whether it is a free repair.** A dead tail, a clip that runs a second long, or a clip whose shape stops it joining the others are all `media_edit` on the render already paid for: `trim` cuts it, `frame` matches it to the other clips' size, and both write a new MP4 beside the original at no cost. Only a defect in what the model actually rendered -- the wrong action, the wrong person, a missing beat -- needs a new revision and a new confirmation.
64
-
65
- ## What the assistant must never do
66
-
67
- - submit a clip "to see if it works" without a fresh confirmation;
68
- - bundle several clips into one confirmation;
69
- - treat its own audit pass as approval to spend;
70
- - claim a render happened, or that it is accepted, without the task result and inspected frames.
@@ -1,134 +0,0 @@
1
- ---
2
- name: storybreaker
3
- description: Split a measured source drama into render clips with a deterministic, auditable rule - cuts, dialogue cues and place changes in, DP-optimal clip boundaries out. Use before writing any storyboard, so no clip starts or ends mid-line, no cue is dropped, no beat is invented and total duration is preserved.
4
- ---
5
-
6
- # Storybreaker — deterministic clip segmentation
7
-
8
- A storyboard is not written, it is **solved**. Given measured evidence (cuts, dialogue cues, place changes), clip boundaries are the minimum-cost segmentation under hard constraints. No random splitting, no "about 18 seconds" estimates, no cutting at a script heading the footage does not have.
9
-
10
- ## 0. Inputs (measured, never estimated)
11
-
12
- | Input | Where it comes from | Required |
13
- |---|---|---|
14
- | `duration` | `media_probe` | yes |
15
- | `cuts[]` | `motion_cuts_window`, each verified with frames | yes |
16
- | `cues[]` = (start, end, speaker) | `motion_transcribe_window` | yes if the scene speaks |
17
- | `places[]` = times where the location or cast set changes | frame inspection | yes |
18
- | `min`, `max` | model caps: 2.0 = 4–15 s; 2.5 = 4–30 s | yes |
19
- | `target` | preferred clip length; default `0.8 × max` | no |
20
-
21
- **If a boundary is not supported by a cut, a cue edge or a place change, it does not exist.** Estimates are not evidence.
22
-
23
- **`motion_cuts_window` is a candidate list, not a cut list** — which is why the table above says *verified with frames*. Measured on EP02 (99.093 s) in the session of 2026-11-07 and recorded in that session's own memory observation, not re-derived since: the detector returned 22 candidates, of which **17 were real, 3 were false positives and 1 stayed unresolved**, and it **missed four real cuts** (31.85, 38.35, 46.50, 51.40) that only dense `media_frames` windows found. The episode has 24 shots / 23 cuts; the saved `ep02-detail.md` had listed 9. So:
24
-
25
- - **Detector times run ~0.15–0.3 s late.** Take the boundary from the frames, not from the candidate timestamp, or every clip inherits a third of a second of the previous shot.
26
- - **The false positives have recognisable causes** — a single long take misread as a cut (29.00, a kiss), foreground occlusion scoring high (62.44, a black coat), and a subject moving behind a door (65.08). A candidate that frames do not confirm is dropped, and an unresolved one (51.68, a glass reflection) is recorded as unresolved rather than counted either way.
27
- - **Missed cuts are the expensive direction**, because a boundary that does not exist in the candidate list cannot be chosen by the segmentation below. Where dialogue or action implies a shot change with no candidate nearby, cut a dense frame window and look.
28
- - **Camera motion cannot be read from stills.** Push-ins can be *inferred* from a frame pair and must be labelled inferred, never verified.
29
-
30
- ## 1. Candidate boundary set
31
-
32
- A time `b` is a candidate iff it is one of:
33
-
34
- - a verified source `cut`;
35
- - a **cue edge** (`cue.start` or `cue.end`) where either the speaker changes there, or the adjacent silence is ≥ `G = 0.35 s`;
36
- - a `place` change;
37
- - `0` and `duration`.
38
-
39
- A boundary is **illegal** when it falls *strictly inside* one cue, or inside one speaker's continuous run (same speaker with ≤ 0.35 s between cues). That single rule already prevents the classic defect: cutting a question away from its answer.
40
-
41
- **ASR caveat that decides most segmentations:** transcripts of continuous dialogue usually report cue gaps of ~0 s, because segments butt together. Silence is therefore *not* the main evidence — **speaker turns** are. Never require a silence to place a cut; require a turn change or a real gap.
42
-
43
- ## 2. Cost function
44
-
45
- For a candidate clip `[a, b)`, `d = b − a`:
46
-
47
- ```
48
- cost = W_LEN * ((d − target) / max)² # prefer packed, not saturated
49
- + W_BND * class_weight(b) # where the clip ends
50
- + W_EMPTY* [no cue and no cut inside] # no filler clips
51
- + W_PLACE* (place changes inside) # soft: a montage may cross places
52
- ```
53
-
54
- | Class | Weight | Meaning |
55
- |---|---|---|
56
- | `LOC` | 0.0 | place/cast change at the boundary |
57
- | `CUT` | 1.0 | verified source cut |
58
- | `TURN` | 1.6 | speaker turn change |
59
- | `GAP` | 2.0 | silence ≥ 0.35 s |
60
- | `TAIL` | 0.0 | end of source |
61
-
62
- Defaults: `W_LEN 1.0`, `W_BND 0.35`, `W_EMPTY 5.0`, `W_PLACE 0.25`.
63
-
64
- `W_PLACE` is the one dial worth arguing about. `0.25` says "a fast montage inside one clip is allowed" (proven: a 14-cut 25 s R2V clip rendered its cuts correctly). Set `place_hard: true` in the evidence file when the model cannot hold internal cuts, and every place change becomes a mandatory boundary.
65
-
66
- ## 3. DP
67
-
68
- ```
69
- f(0) = 0
70
- f(b) = min over legal a with min ≤ b−a ≤ max of f(a) + cost(a,b)
71
- ```
72
-
73
- Backtrack from `duration`. Deterministic: same evidence in, same boundaries out.
74
-
75
- Report the segmentation as a table — one row per clip with span, length, the class of its ending boundary, its cue count and the evidence for that boundary — then the totals: clip count, summed duration against the measured source duration, and cues placed against cues in the transcript. **A boundary whose row has no evidence does not exist**, which is the whole discipline: the table is what makes a segmentation checkable by someone who did not produce it.
76
-
77
- ## 4. Acceptance checks (all must pass before a storyboard is written)
78
-
79
- 1. **Coverage**: clips tile `[0, duration]`, no gap, no overlap, sum equal within 0.05 s.
80
- 2. **No cue split**: no boundary strictly inside a cue.
81
- 3. **No cue dropped**: cues inside the union of clips == **saved-transcript** count.
82
-
83
- **Count against the transcript, not against the evidence you assembled.** A segmentation checked against its own input always agrees with itself. Measured 2026-11-08: the EP01 evidence held **47** cues ending at 137.10 s while the saved transcript `media/transcripts/96e4012a…-0-163.605.json` held **48** ending at 149.26 s. The final cue (`137.32–149.26`) was absent entirely, and the thirteen club cues from 88.55 s on were hand-copied approximations off by up to **9 s** each — `115.90–117.05` where the transcript says `106.55–117.72` — carrying invented `FRIEND`/`JAKE` attributions. Three EP01 clips were cut from those numbers, and every self-consistency check they were put through passed.
84
-
85
- So before segmenting, walk the two cue lists side by side in timestamp order and name the first index where `start` differs by more than 0.05 s, plus the two lengths. If they diverge, the evidence is wrong and the segmentation is void — fix the cue list, do not adjust the boundaries.
86
-
87
- **A transcript on disk is the authority, and copying its cues by hand re-introduces exactly the measurement error this skill exists to remove.** Read them from the transcript file, cite that filename and its `sha256sum` in the evidence, and quote the transcript's own cue count in the acceptance table so the next reader can tell which list was used.
88
- **A padded ASR segment spanning a boundary is not a split line.** Before reporting one, divide the segment's duration by its character count and compare against the episode median. Measured on EP01 2026-11-08: the median is **0,138 s/char**, and segment `72,15–79,71` carries `말해` — 2 characters in 7,56 s, about 0,28 s of actual speech. A second decode separated it as `나가세요. 말해.`, two sentences 7,6 s apart, each wholly inside one scene. Three of the four "split cue" findings in that episode were this artefact. Where the rate says padding, check the speech; where it says real speech, the boundary is genuinely wrong.
89
- 4. **No cue duplicated**: no cue lands in two clips.
90
- 5. **Order preserved**: reading cues across clips reproduces transcript order.
91
- 6. **Turn integrity**: no clip ends inside one speaker's continuous run.
92
- 7. **Caps**: every clip within `[min, max]`.
93
- 8. **Place logic**: either a boundary at every place change, or `place_hard` explicitly off and the crossing declared in the plan.
94
- 9. **Beat density**: every clip contains at least one cue or one verified cut.
95
- 10. **Audit trail**: every boundary prints its class and its evidence.
96
-
97
- If a check fails, the segmentation is wrong. Never "adjust the script to fit" — adjust the evidence or the weights.
98
-
99
- ## 5. What happens after
100
-
101
- The clip list feeds `fission`'s storyboard stage, which owns prompt and reference order per clip. This skill owns **only the boundaries**. A script scene heading must never override a boundary produced here: a heading is a label, a measurement is a fact. Corollary: **a scene and a clip are different objects** — a 34 s continuous scene becomes two clips at a turn, and a 5 s montage of three places may become one clip.
102
-
103
- ## 6. Worked example — EP01 (measured)
104
-
105
- Evidence, re-derived 2026-11-08 from the source itself rather than from a saved cue list: `duration 163.605011` (`media_probe`; this container has no ffprobe); **71** scene-detection cuts above 0.30 measured on `fission/source/tap01.mp4`; **48** cues read from `media/transcripts/96e4012a…-0-163.605.json` (sha256 `67ec1387822e…`); `min 4`, `max 30`.
106
-
107
- Output — **8** clips, every join tiling to 0.01 s, all 48 cues placed, no boundary splitting real speech:
108
-
109
- | Clip | Span | Len | Ends on | Cues |
110
- |---|---|---|---|---|
111
- | 1 | 0.00–21.20 | 21.20 | CUT 21.20 | 0 |
112
- | 2 | 21.20–48.87 | 27.67 | GAP 0.52 s | 12 |
113
- | 3 | 48.87–73.00 | 24.13 | CUT 73.00 | 17 |
114
- | 4 | 73.00–89.00 | 16.00 | CUT 89.00 (flash dissolve) | 6 |
115
- | 5 | 89.00–106.60 | 17.60 | CUT 106.60 | 4 |
116
- | 6 | 106.60–133.12 | 26.52 | CUT 133.12 | 7 |
117
- | 7 | 133.12–149.36 | 16.24 | CUT 149.36 | 2 |
118
- | 8 | 149.36–163.605 | 14.24 | TAIL | 0 |
119
-
120
- Totals: 8 clips, sum **163.605** against a probed 163.605, **48 of 48** cues placed.
121
-
122
- **The episode needs eight clips, and that is the finding.** Every earlier plan used seven, because seven was chosen before the boundaries were measured. Tiling the real cuts puts **30.48 s** in the last of seven — over the 30 s cap — so the clip count is an *output* of the segmentation, not an input to it. The superseded seven-clip table rested on a hand-copied 47-cue list ending 137.10 s whose club times were off by up to 9 s with invented `FRIEND`/`JAKE` speakers, and it passed every self-consistency check it was given.
123
-
124
- Two boundaries are worth keeping as examples. **73.00** is the only scene score in 71.5–73.5 (0.574; next 0.024 at 73.20) — the 72.30 used before it is supported by no cut at any threshold. **89.00** is a flash dissolve, which scores low and is easy to miss: luminance holds Y≈93.8 through 88.58, peaks Y=217 at 88.86, and settles to Y≈55 from 89.06. The 88.55 used before it is an ASR cue start inside the previous shot. A dissolve is found by reading luminance across the candidate window, not by raising the detector threshold.
125
-
126
- Compare the discarded hand-made plan (25/24/30/28/23/24 = 154 s): it lost 9.6 s, cut a turn at 18 s and split a cue — it fails checks 1, 2 and 6. That is exactly what this skill exists to prevent.
127
-
128
- ## 7. Failure modes this skill is built against
129
-
130
- - splitting by script scene heading instead of by measurement;
131
- - estimating a scene at "18 s" then finding the dialogue needs 34 s;
132
- - a boundary that lands inside a sentence, so the clip ends with a half-spoken line;
133
- - an implied 30 s that swallows the next scene's first line, which then has to be invented later;
134
- - clips that tile to 154 s while the source is 163.6 s and nobody notices.
@@ -1,56 +0,0 @@
1
- ---
2
- name: us01-image-config
3
- description: "Use before any fission_generate_image or fission_generate_image_from_reference call in the us01/hollow-khan project: pins the image model and quality, the camera wording that keeps character sheets sharp, the banned soft-focus terms, the 2x3 sheet layout on chroma blue, and the rule that each outfit state is a new asset id derived image-to-image. Holds only project settings; approval and registration stay with asset-images."
4
- ---
5
-
6
- # us01 image configuration
7
-
8
- Settings for this project only. Read them here instead of keeping a config file in the workspace.
9
-
10
- ## Model
11
-
12
- - Always `fission_generate_image` / `fission_generate_image_from_reference` with **model `gpt-image-2.5`**.
13
- - No other model unless the user names one for a specific asset.
14
- - Output is the model's original file — no preview crops, no local upscaling, no post-processing step.
15
-
16
- ## Camera wording (keeps sheets sharp)
17
-
18
- Put this in every character and location prompt:
19
-
20
- > 50mm at f/11, deep focus, tack-sharp from the front panel edge to the back edge, entire figure and whole backdrop equally sharp, crisp micro-detail in the fabric weave, leather grain, hair strands and eyelashes
21
-
22
- ## Banned prompt terms
23
-
24
- `f/4` · `shallow depth of field` · `bokeh` · `background blur` · `soft focus` · `glow bloom` · `haze` · `dreamy diffusion`
25
-
26
- These were the cause of sheets that looked blurred: a deliberate shallow-focus request softens cloth edges and the backdrop.
27
-
28
- ## Wardrobe language
29
-
30
- **Pre-industrial fantasy. No modern clothing of any kind** — this is an ancient world with dragons, magic, stone
31
- arches, candles, carriages and blood oaths. Materials are period: coarse woven wool, linen, silk, velvet, brocade,
32
- tooled leather, fur, hand-dyed cloth, cast bronze and iron fittings. Garments are long coats and cloaks, laced
33
- bodices, high collars, long fitted sleeves, hoods and leather belts with iron buckles. Footwear is wooden clogs,
34
- hand-stitched leather boots, laced cloth shoes. Palette is lush jewel-tone: deep crimson, emerald, antique gold,
35
- plum, sapphire — never concrete grey or office beige. Status reads through material and make, never through
36
- branding: the disgraced daughter wears coarse worn wool; the great houses wear velvet, brocade and gold thread.
37
-
38
- ## Sheet layout
39
-
40
- - Landscape, **two rows of three**: top row full body with feet visible (front, three-quarter, side), bottom row head-and-shoulders (front, three-quarter, side), same person, same hair, same expression family.
41
- - Background: **flat chroma blue, uniform #1E88E5**, evenly lit, no gradient, no vignette, clean panel edges.
42
- - No captions, labels, arrows or text in the image.
43
-
44
- ## Outfit states
45
-
46
- Changing an outfit is a **new asset id**, generated **image-to-image from that character's previous approved sheet** so the face does not drift. Never dress a new garment onto a base sheet by text alone.
47
-
48
- A state sheet may carry what the story does to the clothes (torn, wet, mud-streaked, blood at the hem) when that condition persists across shots; it may not carry scene lighting, props or a set.
49
-
50
- ## Location sheets
51
-
52
- Six panels are six real camera setups from the script, all reading as one place under one light — not six decorative angles. Put the deep-focus wording in location prompts too.
53
-
54
- ## Hand-off
55
-
56
- Approval of a sheet, Ark registration and any paid video render stay outside this skill: approval with the user, registration with `fission_register_ark_asset`, renders with `render-gate`.