@dragonbyte/dsh-drama-skills 0.1.0 → 0.1.2

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.
@@ -0,0 +1,74 @@
1
+ ---
2
+ name: pipeline-a-3-prop-prompt
3
+ description: "Write, validate and generate cinematic prop reference images, including fictional objects and accurately identified real-world branded products, vehicles, electronics, bags, jewelry, documents and state variants. Inherit the approved series Visual Bible and Image Treatment; preserve object identity across views and revisions."
4
+ ---
5
+
6
+ # Prop Prompt
7
+
8
+ Create production-ready prop references for cinematic video production. This skill owns prompt composition and prop-specific QA, not independent visual style or pipeline routing.
9
+
10
+ ## 1. Sources and precedence
11
+
12
+ Read the approved series Visual Bible, adopted Image Treatment in Visual Standard, project rules, prop asset card, story requirements, `assets/references/prop-design.md`, and applicable `asset-images` technical requirements. Read approved reference images and existing prop states when available. Load `pipeline-a-3-cinematic-asset-design-engine` when required by the project contract.
13
+
14
+ The contract owns execution, approval gates and the sheet rule; Ark's pixel and ratio limits are tool law (300–6000 px per side, longer side ≤ 2.5× the shorter); the prop design owns object identity; the Visual Bible and Visual Standard own aesthetic treatment. Explicit user-approved product identity and story details must survive prompt composition. Report conflicts or missing approvals before generation rather than silently overriding them.
15
+
16
+ ## 2. Visual treatment inheritance
17
+
18
+ Derive once, reuse consistently. Use the approved prop-relevant Image Treatment from Visual Standard. Do not derive a new grade for each object or inject the entire Visual Bible. Omit facial, skin and architectural instructions irrelevant to the prop. Preserve approved color depth, contrast, clarity, dimensionality and material rendering. Camera and stock names may be included only as adopted references; they do not authorize a new grade, grain or exposure. Do not default to photorealism, hyperrealism, gritty realism, haze or soft focus. Premium cinematic rendering does not mean every object is luxurious, new or expensive.
19
+
20
+ ## 3. Prop design and identity lock
21
+
22
+ Before generation, establish or retrieve a Prop Identity Lock in the existing asset card: identity, function, period, geometry, proportions, scale, materials, physical colors, finish, permanent markings, functional parts, and approved state. Include exact text where story-critical. Preserve intentional wear and damage; do not invent decorative details, logos, accessories or damage. Distinguish permanent identity from temporary state and lighting. Use meaningful visible features, not generic adjectives alone.
23
+
24
+ ## 4. Real-world product fidelity
25
+
26
+ Branded products are allowed when requested or approved: cars, phones, luxury bags, watches, clothing, electronics and other real-world objects. Do not automatically anonymize or replace them with generic lookalikes. Use the exact brand, product family, model, generation/model year, trim, size, colorway and market variant where relevant and known. Preserve authentic logos, typography, badge placement and distinctive design features when requested. Do not add brands to unbranded props.
27
+
28
+ Verify uncertain specifications using official manufacturer product pages, catalogs or reliable reference imagery when available. Prefer user-approved reference images and exact product references over memory. Record source URLs and verified attributes in the asset card, not as clutter in the generation prompt. Distinguish verified facts from proposed details. If model year, trim or variant materially changes appearance and cannot be established, ask for clarification or propose a clearly labeled variant for approval. Never fabricate a product specification or claim exact fidelity without verification.
29
+
30
+ For vehicles, lock body style, generation, trim, grille, lights, wheels, badges, paint and relevant interior configuration. For phones, lock dimensions/proportions, camera arrangement, buttons, finish and front/back identity. For bags, lock model, size, leather, hardware, silhouette, closure, stitching and logo placement. Use only verified features; do not combine variants. Do not redesign an existing branded product merely to make it look more cinematic.
31
+
32
+ Use reference-based generation for exact product fidelity whenever approved references are available. Inspect output against those references; text and logo accuracy are not guaranteed by image generation. If precision is essential, use approved original product imagery where permitted or a verified compositing/text correction workflow. Flag unresolved deviations; do not label an approximation as exact. Product depiction does not imply endorsement, licensing or permission for commercial use; flag clearance questions when relevant.
33
+
34
+ **Gateway rule (this tenant, overrides convenience).** The image gateway refuses prompts that name a real brand, logo or wordmark and answers with an opaque `HTTP 400` that states no reason. So the brand and its lettering stay **out of the prompt text**: reach fidelity through an approved product reference image (`fission_generate_image_from_reference`, reference first) plus a description of geometry, proportions, materials, colourway and distinctive parts. Record the brand, model, year and source in the asset card only. Never resend a refused prompt or move it to another model id.
35
+
36
+ ## 5. Reference strategy
37
+
38
+ Select views according to production needs. **The pipeline contract adopts one frame per prop, or one frame per related prop group.** A sheet is used only if the contract is amended; additional views are separate files named in the asset card, never panels inside the picture. If a sheet is nevertheless required, say so before rendering rather than quietly switching layout.
39
+
40
+ **Prop group.** Objects a Scene uses together may share one 16:9 frame, laid out left to right at a consistent scale family, no object hidden behind another. Fix that order in the asset card; a clip citing the group names the object it means and excludes the rest.
41
+
42
+ Additional views must use the approved master reference and identity lock. Change viewpoint only; do not mirror asymmetric markings, move functional parts or change scale. State variants change only approved state features. Keep object fully visible unless the view is intentionally a detail. Use clean neutral backgrounds and controlled studio lighting unless project requirements specify otherwise. Vehicles and large objects may use a suitable neutral environment when necessary for scale and readability.
43
+
44
+ ## 6. Text and functional details
45
+
46
+ Quote required text exactly, including capitalization, punctuation and line breaks. Specify placement and orientation. Do not invent extra text. Inspect lettering and logos at full resolution or crop. For contracts, screens and badges requiring exact readable text, separate graphic/text assets or verified compositing may be necessary. Do not approve unreadable or incorrect story-critical text. Ensure visible functional geometry and state are consistent with intended use.
47
+
48
+ ## 7. Prompt construction
49
+
50
+ Use English unless explicitly instructed otherwise. Follow `references/prompt.md`. Include adopted treatment, identity, design, materials/colors, state, view, lighting, format and targeted exclusions. Avoid repetition and irrelevant scene, dialogue or acting instructions. Suggested budgets: simple 500–900 characters; important 800–1500; complex 1000–1800; revisions 300–800. These are targets, not tool limits. Verify actual tool limits and preserve critical identity details over redundant style language.
51
+
52
+ ## 8. Tools and workflow
53
+
54
+ Use project-approved image tools and model. Where the existing fission workflow applies, use `fission_generate_image` for a new master and `fission_generate_image_from_reference` for additional views, states or edits; use `gpt-image-2.5` only if approved and available. Follow the actual tool schema and project naming/revision rules.
55
+
56
+ 1. Read sources and confirm authorization, asset type and required views.
57
+ 2. Establish identity lock and verify branded product details when applicable.
58
+ 3. Select approved treatment and technical format.
59
+ 4. Compose final prompt and run pre-generation checklist.
60
+ 5. Save final prompt to the contract-defined path (e.g. `assets/<slug>_prompt.md` where applicable), and record intended state and references.
61
+ 6. Generate only with user/pipeline authorization.
62
+ 7. Inspect actual output and run post-generation checklist; crop details if necessary.
63
+ 8. Report matches, deviations and proposed corrections. Do not automatically spend on retries without authorization.
64
+ 9. Record version, approval status and production status. Register assets only at the contract-authorized stage.
65
+
66
+ ## 9. Quality gates
67
+
68
+ Before: correct approved treatment; exact identity and state; verified branded attributes or explicit uncertainty; coherent geometry and materials; meaningful view coverage; exact required text; approved references; correct format and tool limits; no contradictory instructions; saved prompt and authorization.
69
+
70
+ After: compare geometry, proportions, materials, colors, logos, markings, functional parts and state against approved design and references. Inspect clarity, tonal depth, highlights, material separation, unwanted objects, cropping and format. For multiple views verify the same object, not merely similar objects. Reject critical identity, text, geometry, state or technical failures. A beautiful but incorrect product is not approved.
71
+
72
+ ## 10. Continuity and integration
73
+
74
+ Maintain one identity per prop; distinguish master, view, state and revision using project naming rules. Never overwrite approved references. Preserve previous versions and map story states to the correct asset. `pipeline-a-3-assets` owns story-derived design; `pipeline-a-3-prop-prompt` owns final prompt and QA; `asset-images` owns technical formats; the contract owns routing and registration. Do not duplicate or silently override their rules.
@@ -0,0 +1,113 @@
1
+ # Prop Prompt Templates and Checklist
2
+
3
+ Use the approved prop-relevant treatment from Visual Standard. Replace placeholders with actual approved data; omit irrelevant fields. Never send unresolved placeholders. All examples are illustrative, not default style or product specifications.
4
+
5
+ ## 1. Master prop
6
+
7
+ ```text
8
+ Image treatment: [Approved prop-relevant treatment].
9
+ Prop: [Exact identity, function, period and scale].
10
+ Design: [Geometry, proportions, defining features and functional parts].
11
+ Materials and colors: [Approved materials, finishes and physical colors].
12
+ State: [Approved state].
13
+ View and lighting: [Useful master viewpoint], clean directional reference lighting, clear dimensional forms and controlled reflections.
14
+ Format: [Approved technical layout], neutral background, full object visible.
15
+ Avoid: [Specific identity, geometry, text and quality failures].
16
+ ```
17
+
18
+ ## 2. Real-world branded product
19
+
20
+ ```text
21
+ Image treatment: [Approved treatment].
22
+ Product: [Exact brand, model, generation/year, trim/size, colorway and market variant as relevant]. Match the approved product references.
23
+ Identity: [Verified silhouette, proportions, distinctive parts, materials, finish, authentic markings and their placement].
24
+ State: [Approved state].
25
+ View: [Required angle or approved sheet layout]. Preserve exact product design and color identity.
26
+ Lighting: Clean dimensional reference lighting, controlled highlights, readable details.
27
+ Avoid: Generic substitutes, mixed generations or trims, invented parts, incorrect logos or lettering, distorted geometry.
28
+ ```
29
+
30
+ Before using this template, verify material product details and record sources in the asset card. Do not guess unknown variant details. Use approved product images as reference inputs when available; a brand name alone is not a fidelity guarantee. **Do not write the brand, logo or wordmark into the prompt text** — the image gateway refuses it with an opaque `HTTP 400`; pass an approved product reference instead and describe geometry, materials, colourway and distinctive parts.
31
+
32
+ ## 3. Additional view
33
+
34
+ ```text
35
+ Show the exact same approved prop from [specific viewpoint]. Preserve geometry, scale, materials, color, functional parts, markings, logo placement and approved state. Reveal unseen surfaces according to the verified design. Change only viewpoint. Maintain the approved treatment and reference lighting. [Approved format]. Avoid mirrored text, redesigned parts and variant drift.
36
+ ```
37
+
38
+ ## 4. Detail view
39
+
40
+ ```text
41
+ Close reference view of [specific feature] on the exact approved prop. Preserve its geometry, finish, color and surrounding identifying features. Show [required engraving, connector, texture or mechanism] clearly and in focus. Maintain approved treatment. [Approved format]. No invented detail or unrelated decoration.
42
+ ```
43
+
44
+ ## 5. Text-bearing prop
45
+
46
+ ```text
47
+ [Approved treatment]. [Object identity, geometry, material and color]. Show [surface] directly and clearly. Exact text: "[literal text]". Placement: [position, line breaks, orientation and approved typography]. Keep text legible and correctly spelled. [Approved format]. No additional text or invented logos.
48
+ ```
49
+
50
+ For critical text, inspect a crop; if generation fails, use an approved graphic or compositing workflow rather than claiming correctness.
51
+
52
+ ## 6. State variant
53
+
54
+ ```text
55
+ Same exact prop as the approved master reference. Change ONLY its state to [approved state and visible changes]. Preserve all unaffected geometry, materials, colors, markings and functional features. Maintain the approved treatment and required viewpoint. [Approved format]. No redesign or unrelated changes.
56
+ ```
57
+
58
+ ## 7. Local revision
59
+
60
+ ```text
61
+ Keep the approved prop, viewpoint, format, lighting, color treatment and all unaffected features unchanged. Change ONLY [specific item] to [approved correction]. Preserve exact identity and state. Avoid [specific previous failure].
62
+ ```
63
+
64
+ ## 8. Prop group in one frame (pipeline default)
65
+
66
+ ```text
67
+ [Approved treatment]. A single studio frame of [N] related objects laid out left to right on a clean neutral seamless background under even readable lighting, consistent scale family, no object hiding another: [1. object], [2. object], [3. object] — in this fixed order. [Each object's geometry, material, colour and defining detail.] 16:9. No hands, no scene context, no labels.
68
+ Avoid: reordered, merged or missing objects, [specific identity and quality failures].
69
+ ```
70
+
71
+ The asset card records the same left-to-right order. A clip citing this frame names the object it means and excludes the others.
72
+
73
+ ## 9. Multi-view sheet (only if the contract is amended)
74
+
75
+ ```text
76
+ [Approved treatment]. Reference sheet of the same [exact prop identity] in every panel. [Layout and views required by the contract]. Consistent geometry, proportions, scale, materials, colors, markings and state across all views. Clean neutral background and consistent reference lighting. No invented variants or duplicated decorative views. [Technical format].
77
+ ```
78
+
79
+ The pipeline currently adopts one frame per prop or prop group; do not assume a fixed panel count or aspect ratio.
80
+
81
+ ## 10. Illustrative Modern Vibrant Cinematic treatment
82
+
83
+ Only use this example if adopted for the series; otherwise retrieve the approved treatment.
84
+
85
+ ```text
86
+ ARRI ALEXA 35-inspired cinematography, Kodak VISION3 250D 5207-inspired color aesthetic, premium modern Hollywood live-action imagery, vibrant clean colors, rich color depth, crisp color separation, bright clean midtones, rich controlled contrast, smooth highlight roll-off, crisp optical clarity, dimensional forms and refined material textures.
87
+ ```
88
+
89
+ ## 11. Checklists
90
+
91
+ ### Before generation
92
+
93
+ - [ ] Approved prop-relevant treatment reused without reinterpretation.
94
+ - [ ] Identity lock and story state established.
95
+ - [ ] Brand/model/variant and visible product features verified where relevant; uncertainty resolved or explicitly approved.
96
+ - [ ] Approved reference images supplied when needed and available.
97
+ - [ ] Geometry, scale, materials, colors and functional details specified.
98
+ - [ ] Exact text and markings specified where required.
99
+ - [ ] Views serve production needs and follow technical owner.
100
+ - [ ] Prompt concise, no contradictory instructions or unresolved placeholders.
101
+ - [ ] Tool/model/format verified; prompt saved; generation authorized.
102
+
103
+ ### After generation
104
+
105
+ - [ ] Correct object and exact approved variant, not a generic lookalike.
106
+ - [ ] Geometry, proportions, parts and state consistent.
107
+ - [ ] Materials, finish and physical colors correct.
108
+ - [ ] Logos, badges and text inspected against references.
109
+ - [ ] Clear optical detail, dimensionality and approved tonal quality.
110
+ - [ ] All views depict the same object; asymmetric features not mirrored.
111
+ - [ ] No unintended objects, cropping or redesign.
112
+ - [ ] Technical format and reference usability verified.
113
+ - [ ] Deviations recorded; critical failures not approved; no unauthorized retry.
@@ -31,21 +31,21 @@ The office door remains closed throughout this interval.
31
31
 
32
32
  # Plot Context
33
33
 
34
- Mei (Image2) is about to stop beside the office door and tell Lin (Image1) she will wait there. Lin (Image1) is still continuing their shared walk and receives her words while moving.
34
+ Mei (@Image2) is about to stop beside the office door and tell Lin (@Image1) she will wait there. Lin (@Image1) is still continuing their shared walk and receives her words while moving.
35
35
 
36
36
  # Spatial Setup
37
37
 
38
- In an office corridor during the workday, Mei (Image2) and Lin (Image1) are already walking at the same unhurried pace along the straight corridor with plain walls, hands empty. Mei (Image2) is half a pace behind Lin (Image1) with a closed door ahead in the wall beside Mei (Image2)'s lane. Lin (Image1)'s parallel walking lane lies between Mei (Image2) and the clear camera path.
38
+ In an office corridor during the workday, Mei (@Image2) and Lin (@Image1) are already walking at the same unhurried pace along the straight corridor with plain walls, hands empty. Mei (@Image2) is half a pace behind Lin (@Image1) with a closed door ahead in the wall beside Mei (@Image2)'s lane. Lin (@Image1)'s parallel walking lane lies between Mei (@Image2) and the clear camera path.
39
39
 
40
40
  # Shot Sequence
41
41
 
42
42
  ## Shot1|7s
43
43
 
44
- The camera travels alongside Mei (Image2) and Lin (Image1) from the clear corridor strip, looking across their lanes toward the door wall in a knee-up two-shot. Mei (Image2) walks half a pace behind on screen left and Lin (Image1) ahead on screen right, the gap visible between them and the approaching door in the same clear focus. The wall and door slide behind them as they walk.
44
+ The camera travels alongside Mei (@Image2) and Lin (@Image1) from the clear corridor strip, looking across their lanes toward the door wall in a knee-up two-shot. Mei (@Image2) walks half a pace behind on screen left and Lin (@Image1) ahead on screen right, the gap visible between them and the approaching door in the same clear focus. The wall and door slide behind them as they walk.
45
45
 
46
- At the door, Mei (Image2) shortens the last steps and stops, looking toward Lin (Image1) while the body still faces along the corridor. The camera slows with Mei (Image2) and stops with room for Lin (Image1) ahead on screen right. As the feet settle beside the door, Mei (Image2) says plainly to Lin (Image1) in English: {I'll wait here.} Hearing this, Lin (Image1) takes one more step at the walking pace before stopping and turning the head and upper body back toward Mei (Image2). That last step opens the gap inside the held frame. Lin (Image1)'s face turns away from the camera toward the companion beside the door as the same line continues.
46
+ At the door, Mei (@Image2) shortens the last steps and stops, looking toward Lin (@Image1) while the body still faces along the corridor. The camera slows with Mei (@Image2) and stops with room for Lin (@Image1) ahead on screen right. As the feet settle beside the door, Mei (@Image2) says plainly to Lin (@Image1) in English: {I'll wait here.} Hearing this, Lin (@Image1) takes one more step at the walking pace before stopping and turning the head and upper body back toward Mei (@Image2). That last step opens the gap inside the held frame. Lin (@Image1)'s face turns away from the camera toward the companion beside the door as the same line continues.
47
47
 
48
- The camera stays with both people in shared focus as Mei (Image2) finishes speaking. Mei (Image2) remains beside the closed door looking at Lin (Image1), who has turned back to listen across the newly opened gap. There is no spoken reply or additional sound cue before the Shot ends.
48
+ The camera stays with both people in shared focus as Mei (@Image2) finishes speaking. Mei (@Image2) remains beside the closed door looking at Lin (@Image1), who has turned back to listen across the newly opened gap. There is no spoken reply or additional sound cue before the Shot ends.
49
49
  ```
50
50
 
51
51
  ## Relationships Preserved in the Prompt
@@ -22,25 +22,25 @@ In a room during the day, soft window light leaves skin and fabric texture reada
22
22
 
23
23
  # Prop Descriptions and States
24
24
 
25
- The table edge provides the support B (Image2) uses after the strike.
25
+ The table edge provides the support B (@Image2) uses after the strike.
26
26
 
27
27
  # Plot Context
28
28
 
29
- A (Image1) is about to strike B (Image2) once. B (Image2) will recover from the blow while A (Image1) withdraws the striking hand; neither speaks in this interval.
29
+ A (@Image1) is about to strike B (@Image2) once. B (@Image2) will recover from the blow while A (@Image1) withdraws the striking hand; neither speaks in this interval.
30
30
 
31
31
  # Spatial Setup
32
32
 
33
- A (Image1) and B (Image2) face each other within arm's reach, hands empty. With the room's north and south bearings fixed, A (Image1) stands north of B (Image2) facing south, and B (Image2) faces north. A reachable table edge lies west of B (Image2), beside the left hand.
33
+ A (@Image1) and B (@Image2) face each other within arm's reach, hands empty. With the room's north and south bearings fixed, A (@Image1) stands north of B (@Image2) facing south, and B (@Image2) faces north. A reachable table edge lies west of B (@Image2), beside the left hand.
34
34
 
35
35
  # Shot Sequence
36
36
 
37
37
  ## Shot1|6s
38
38
 
39
- A fixed knee-up medium two-shot observes the face-to-face line side-on from A (Image1)'s right and B (Image2)'s left. A (Image1) is screen left and B (Image2) screen right, with the striking right hand and left cheek on the near side. Both heads, shoulders and hands remain visible, along with the table edge and room for B (Image2) to step backward toward screen right.
39
+ A fixed knee-up medium two-shot observes the face-to-face line side-on from A (@Image1)'s right and B (@Image2)'s left. A (@Image1) is screen left and B (@Image2) screen right, with the striking right hand and left cheek on the near side. Both heads, shoulders and hands remain visible, along with the table edge and room for B (@Image2) to step backward toward screen right.
40
40
 
41
- A (Image1) raises the right hand and strikes B (Image2)'s left cheek once with the palm. The blow travels east, away from the camera, turning B (Image2)'s head toward B (Image2)'s own right, into screen depth, as <One short slap sound> coincides with contact. The fixed view stays through the strike and recoil, allowing B (Image2)'s face to turn away from the camera; no blood appears.
41
+ A (@Image1) raises the right hand and strikes B (@Image2)'s left cheek once with the palm. The blow travels east, away from the camera, turning B (@Image2)'s head toward B (@Image2)'s own right, into screen depth, as <One short slap sound> coincides with contact. The fixed view stays through the strike and recoil, allowing B (@Image2)'s face to turn away from the camera; no blood appears.
42
42
 
43
- B (Image2) takes half a step south, back toward screen right, and grips the table edge with the left hand, leaning forward onto that support. A (Image1) draws the striking hand back to the side. Once steady, B (Image2) reaches the right hand across the jaw to the struck left cheek and gasps in pain at the touch. The Shot remains with B (Image2) touching that cheek and relying on the table for support. There is no spoken dialogue or other added sound effect.
43
+ B (@Image2) takes half a step south, back toward screen right, and grips the table edge with the left hand, leaning forward onto that support. A (@Image1) draws the striking hand back to the side. Once steady, B (@Image2) reaches the right hand across the jaw to the struck left cheek and gasps in pain at the touch. The Shot remains with B (@Image2) touching that cheek and relying on the table for support. There is no spoken dialogue or other added sound effect.
44
44
  ```
45
45
 
46
46
  ## Key Relationships
@@ -81,29 +81,29 @@ Restrictions: no subtitles, captions or text overlays.
81
81
 
82
82
  # Prop Descriptions and States
83
83
 
84
- The table edge provides the support B (Image2) uses after the strike and through the spoken response.
84
+ The table edge provides the support B (@Image2) uses after the strike and through the spoken response.
85
85
 
86
86
  # Plot Context
87
87
 
88
- A (Image1) is about to strike B (Image2) once. After steadying herself from the blow, B (Image2) will tell A (Image1) not to come closer. A (Image1) hears that boundary without replying.
88
+ A (@Image1) is about to strike B (@Image2) once. After steadying herself from the blow, B (@Image2) will tell A (@Image1) not to come closer. A (@Image1) hears that boundary without replying.
89
89
 
90
90
  # Spatial Setup
91
91
 
92
- A (Image1) and B (Image2) face each other within arm's reach, hands empty. The north and south bearings stay fixed: A (Image1) stands north of B (Image2) facing south, and B (Image2) faces north. A table edge is within reach west of B (Image2), beside the left hand.
92
+ A (@Image1) and B (@Image2) face each other within arm's reach, hands empty. The north and south bearings stay fixed: A (@Image1) stands north of B (@Image2) facing south, and B (@Image2) faces north. A table edge is within reach west of B (@Image2), beside the left hand.
93
93
 
94
94
  # Shot Sequence
95
95
 
96
96
  ## Shot1|4s
97
97
 
98
- A fixed knee-up two-shot observes A (Image1) on screen left and B (Image2) on screen right from A (Image1)'s right and B (Image2)'s left. The near-camera striking hand and struck cheek are visible, with the table edge and room for a backward step beside B (Image2). A (Image1) strikes B (Image2)'s left cheek once with the right palm. <One short slap sound> coincides with contact as B (Image2)'s head turns toward B (Image2)'s own right into screen depth. B (Image2) takes half a step south, back toward screen right, and leans forward onto the left hand braced on the table, while A (Image1) draws the striking hand back to the side. Once steady, B (Image2) begins reaching the right hand toward the struck cheek. No blood appears.
98
+ A fixed knee-up two-shot observes A (@Image1) on screen left and B (@Image2) on screen right from A (@Image1)'s right and B (@Image2)'s left. The near-camera striking hand and struck cheek are visible, with the table edge and room for a backward step beside B (@Image2). A (@Image1) strikes B (@Image2)'s left cheek once with the right palm. <One short slap sound> coincides with contact as B (@Image2)'s head turns toward B (@Image2)'s own right into screen depth. B (@Image2) takes half a step south, back toward screen right, and leans forward onto the left hand braced on the table, while A (@Image1) draws the striking hand back to the side. Once steady, B (@Image2) begins reaching the right hand toward the struck cheek. No blood appears.
99
99
 
100
100
  ## Shot2|3s
101
101
 
102
- Cut on the rising right hand to a fixed waist-up three-quarter view of B (Image2), on the same side of the face-to-face line. The face and both hands remain visible as the right hand continues across the jaw to touch the struck left cheek, the left still taking weight on the table. B (Image2) gasps at the touch, then looks back toward A (Image1) just offscreen left. With the right hand at the cheek and the left still braced, B (Image2) begins one low, firm sentence in English to A (Image1): {Don't come}
102
+ Cut on the rising right hand to a fixed waist-up three-quarter view of B (@Image2), on the same side of the face-to-face line. The face and both hands remain visible as the right hand continues across the jaw to touch the struck left cheek, the left still taking weight on the table. B (@Image2) gasps at the touch, then looks back toward A (@Image1) just offscreen left. With the right hand at the cheek and the left still braced, B (@Image2) begins one low, firm sentence in English to A (@Image1): {Don't come}
103
103
 
104
104
  ## Shot3|2s
105
105
 
106
- At the next word's onset, hard cut to a fixed medium close-up of A (Image1) on the same side of the axis, looking toward B (Image2) offscreen right. B (Image2)'s voice continues immediately in the same breath and delivery: {any closer.} A (Image1) listens with the mouth closed, the jaw tightening as the phrase lands. The right hand remains lowered outside the frame. Offscreen, B (Image2) still touches the struck cheek with the right hand and supports the body on the table with the left. After the line, the camera stays with A (Image1) looking toward B (Image2), the tension still in the jaw, without a reply.
106
+ At the next word's onset, hard cut to a fixed medium close-up of A (@Image1) on the same side of the axis, looking toward B (@Image2) offscreen right. B (@Image2)'s voice continues immediately in the same breath and delivery: {any closer.} A (@Image1) listens with the mouth closed, the jaw tightening as the phrase lands. The right hand remains lowered outside the frame. Offscreen, B (@Image2) still touches the struck cheek with the right hand and supports the body on the table with the left. After the line, the camera stays with A (@Image1) looking toward B (@Image2), the tension still in the jaw, without a reply.
107
107
  ```
108
108
 
109
109
  The first cut carries an action already in progress into a closer view. The second carries the speaker's ongoing voice over the listener: the two audible intervals join into the supplied sentence without repeating words or inserting a pause. Contact, support and recovery remain legible before the response takes over the image. The fixed cameras belong to this adopted design; translation would equally retain a supplied moving or compound camera path, with its simultaneous and successive changes intact.
@@ -42,7 +42,7 @@ Event timing belongs in the prose when it expresses an adopted performance durat
42
42
 
43
43
  In the character table, give each supplied character Image one row with its tag, the person's name and the depicted state or appearance purpose. Include the established identity, role or relationship that explains this person's part in the encounter; appearance alone need not reveal who holds authority or why one person responds to another. Use only source-supported facts. A person may have several state images; give each image its own row and retain that one person's identity across them. Multiple views of one appearance state instead describe the same person in the same state: name the common identity and the view each image contributes. When an Audio control is supplied, include its tag and timbre purpose on one of that person's rows, declaring the person's selected timbre only once. A voice-only person has an Audio-only row. Include only the supplied media, without Shot identifiers or repeated declarations for later Shots. People without Image or Audio references retain their source names and necessary descriptions in the table without invented reference tags.
44
44
 
45
- In spatial and event descriptions, combine each referenced person's name with the current appearance reference as `Name (ImageN)`, for example `Jack (Image3)`. The parentheses contain the image number without `@`; the character table retains the supplied reference tag. Use this name-and-reference form when identifying the people acting, speaking, receiving, looking or making contact, including offscreen participants. Clear pronouns can continue the same person's action. Names within adopted spoken or visible text remain unchanged.
45
+ In spatial and event descriptions, combine each referenced person's name with the current appearance reference as `Name (@ImageN)`, for example `Jack (@Image3)`. The parentheses contain the `@`-prefixed reference token itself — `@Image3`, never a bare `Image3` — because Seedance resolves a reference only when the token carries `@`; the character table retains the same supplied tag. Use this name-and-reference form when identifying the people acting, speaking, receiving, looking or making contact, including offscreen participants. Clear pronouns can continue the same person's action. Names within adopted spoken or visible text remain unchanged.
46
46
 
47
47
  At an adopted change of appearance state, connect the two Image references explicitly as the same person, then use the name with the resulting state's reference through the continuing action. When a person has only an Audio reference, retain the name and supplied Audio tag and identify the adopted audible source. Participants and groups with no Image or Audio reference retain the source's designation.
48
48
 
@@ -1,11 +1,13 @@
1
1
  ---
2
2
  name: pipeline-a-orchestrator
3
- description: Bộ điều phối luồng KỊCH BẢN → VIDEO (Pipeline-A) — nhận kịch bản/ý tưởng, chạy đúng trình tự khâu và gọi skill của từng khâu (pipeline-a-1-outline, pipeline-a-1-split-episodes, pipeline-a-4-director, pipeline-a-3-assets, pipeline-a-3-character-prompt, pipeline-a-2-screenplay, pipeline-a-4-storyboard, pipeline-a-5-clip-segmentation, pipeline-a-5-prompts); các khâu không có skill (khởi tạo, chuẩn bị asset, render R2V/extension, ghép) làm theo quy trình trong references/contract.md. Không tự sinh ảnh hay render khi user chưa xác nhận từng cái.
3
+ description: Bộ điều phối luồng KỊCH BẢN → VIDEO (Pipeline-A) — nhận kịch bản/ý tưởng, chạy đúng trình tự khâu và gọi skill của từng khâu (pipeline-a-1-outline, pipeline-a-1-split-episodes, pipeline-a-4-director, pipeline-a-3-assets, pipeline-a-3-character-prompt, pipeline-a-3-location-prompt, pipeline-a-3-prop-prompt, pipeline-a-2-screenplay, pipeline-a-4-storyboard, pipeline-a-5-clip-segmentation, pipeline-a-5-prompts); các khâu không có skill (khởi tạo, chuẩn bị asset, render R2V/extension, ghép) làm theo quy trình trong references/contract.md. Không tự sinh ảnh hay render khi user chưa xác nhận từng cái.
4
4
  ---
5
5
 
6
6
  # Kịch bản → Video — bộ điều phối
7
7
 
8
- Skill này **không chứa phương pháp của từng khâu**. Nó chỉ quy định thứ tự, đầu vào/đầu ra, cổng duyệt và skill phải load ở mỗi khâu. Đọc [references/contract.md](references/contract.md) trước khi bắt đầu — đó là nguồn chuẩn; nếu file này và contract khác nhau thì contract thắng.
8
+ Skill này **không chứa phương pháp của từng khâu**. Nó chỉ quy định thứ tự, đầu vào/đầu ra, cổng duyệt và skill phải load ở mỗi khâu. Đọc [references/contract.md](references/contract.md) trước khi bắt đầu — đó là nguồn chuẩn; nếu file này và contract khác nhau thì contract thắng. Quy tắc chọn model, bảng cổng duyệt và quy trình sinh asset / render / sửa / ghép nằm ở [references/render-and-gates.md](references/render-and-gates.md): **chỉ đọc file thứ hai khi công việc chạm tới B5, B8, B10 hoặc B11** — một ticket dừng ở B7 như pipeline này không cần mang theo nó.
9
+
10
+ Viết tài liệu lớn **theo từng cảnh hoặc từng mục**, mỗi lần một `write` vài nghìn ký tự rồi `edit` nối tiếp — không viết cả file bằng một lời gọi. Mọi thứ đã viết trong phiên được gửi lại ở mỗi bước sau đó, nên một `write` 80–90 nghìn ký tự bị tính lại ở từng bước còn lại và là chi phí lớn nhất của cả ticket.
9
11
 
10
12
  Không load skill `fission` cho luồng này — `fission` (bundle fission-skills) chỉ chuyển video/kịch bản nguồn thành kịch bản chuyển thể; kịch bản đã duyệt của nó là đầu vào cho A1. Các tool `fission_*`, `media_*` chỉ là công cụ có sẵn.
11
13
 
@@ -19,7 +21,7 @@ Không load skill `fission` cho luồng này — `fission` (bundle fission-skill
19
21
  | A1 | Outline → **user duyệt** | `pipeline-a-1-outline` |
20
22
  | A2 | Chia tập (chỉ khi có nguyên tác đầy đủ) | `pipeline-a-1-split-episodes` |
21
23
  | A3 | Series Direction + Visual Bible → **user duyệt** | `pipeline-a-4-director` (phạm vi dự án) |
22
- | A4 | Bối cảnh dùng chung | `pipeline-a-3-assets` (shared environments) |
24
+ | A4 | Bối cảnh dùng chung | `pipeline-a-3-assets` (shared environments); prompt ảnh: `pipeline-a-3-location-prompt` |
23
25
 
24
26
  **Mỗi tập:**
25
27
 
@@ -30,7 +32,7 @@ Không load skill `fission` cho luồng này — `fission` (bundle fission-skill
30
32
  | B2 | Shot plan cả tập → **user duyệt** | `pipeline-a-4-director` (phạm vi tập) |
31
33
  | B3 | Storyboard từng Scene | `pipeline-a-4-storyboard` |
32
34
  | B4 | Asset plan cả tập (cần storyboard mọi Scene) → **user duyệt** | `pipeline-a-3-assets` (whole-episode) |
33
- | B5 | Chuẩn bị asset — **từng ảnh chờ user yêu cầu** | `pipeline-a-3-character-prompt` cho ảnh nhân vật; còn lại contract mục 10 |
35
+ | B5 | Chuẩn bị asset — **từng ảnh chờ user yêu cầu** | `pipeline-a-3-character-prompt` cho ảnh nhân vật (kèm crowd, creature); `pipeline-a-3-location-prompt` cho ảnh bối cảnh; prompt ảnh đạo cụ theo `pipeline-a-3-prop-prompt`; voice theo contract mục 10 |
34
36
  | B6 | Chia segment: clip 1 R2V, clip 2+ extension | `pipeline-a-5-clip-segmentation` |
35
37
  | B7 | Prompt cho clip hiện tại | `pipeline-a-5-prompts` |
36
38
  | B8 | Render — **từng clip chờ user xác nhận** | — (contract mục 1b, 6, 10) |
@@ -45,5 +47,6 @@ Khâu B10 (sửa video) không có skill riêng: lỗi ở mức dựng (cắt b
45
47
  - **Mỗi cảnh:** clip 1 = R2V (prompt + ảnh asset); clip k ≥ 2 = extension với @Video 1 = clip k-1 **đã được chấp nhận**, prompt kiểu R2V + asset tương ứng. Cảnh mới bắt đầu lại bằng R2V. Render lại clip k-1 thì clip k trở đi phải làm lại.
46
48
  - **Model:** mặc định `dreamina-seedance-2-5-flash-261115`; clip có trên 10 ref (ảnh + video + audio) dùng `dreamina-seedance-2-5-260628`. Luôn truyền `model`.
47
49
  - **Cổng:** duyệt tài liệu không phải quyền chi tiền; mỗi ảnh và mỗi lần render cần xác nhận riêng; "test" = dừng ở prompt.
50
+ - **B7:** trước khi viết prompt, đọc `series/visual-standard.md` (dòng `Visual style:` 422 ký tự LOCKED, khối AVOID) và `series/prompt-template.md` (khung settings 5 dòng, bảng `@Audio`); prompt video **không** dùng `Avoid:` — chỉ giữ dòng `Restrictions` chuẩn.
48
51
  - Load skill của khâu **trước** khi làm khâu đó; làm theo skill đó cho phương pháp và định dạng đầu ra; lưu đầu ra vào đường dẫn trong contract mục 2.
49
52
  - Cập nhật `production-status.md` sau mỗi khâu; phiên sau kiểm lại file thật.
@@ -10,15 +10,15 @@ Mọi skill khâu của luồng `pipeline-a-orchestrator` tuân theo file này.
10
10
  | A1 | Outline | `pipeline-a-1-outline` (user gửi, nguyên văn) | `project.md`, `source/original.md` | `series/outline.md` |
11
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
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) |
13
+ | A4 | Bối cảnh dùng chung | `pipeline-a-3-assets` (user gửi; shared environments) — **prompt ảnh: `pipeline-a-3-location-prompt`** | visual bible | `assets/<location>.md` (card + layout + góc) |
14
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
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
16
  | B2 | Shot plan tập | `pipeline-a-4-director` (phạm vi tập) | screenplay đã duyệt | `storyboards/ep<NN>/direction.md` |
17
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` |
18
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 |
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 theo `pipeline-a-3-character-prompt`; prompt ảnh bối cảnh theo `pipeline-a-3-location-prompt`; prompt ảnh đạo cụ theo `pipeline-a-3-prop-prompt`** | asset plan đã duyệt | ảnh/voice + `.ark.json` Active |
20
20
  | B6 | Chia segment (render unit) | `pipeline-a-5-clip-segmentation` (user 21/11/2026) | storyboard + asset ready | `storyboards/ep<NN>/segments.md` + `fission_save_clip_plan` từng clip |
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` |
21
+ | B7 | Prompt cho segment hiện tại | `pipeline-a-5-prompts` (user gửi, nguyên văn) | segment, card, asset Active; **bắt buộc đọc `series/visual-standard.md` (dòng `Visual style:` LOCKED + AVOID)**, `series/prompt-template.md` (khung settings 5 dòng + bảng `@Audio`), `series/visual-bible.md` (film stock + Image Style); clip k-1 đã chấp nhận nếu là extension | `storyboards/ep<NN>/clip_<NN>[_r<R>]_prompt.md` |
22
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
23
  | B9 | Duyệt hình — user tự xem clip ngoài luồng | — (không có bước agent duyệt hình) | MP4 | quyết định của user: chấp nhận, hoặc clip cần render lại |
24
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 |
@@ -52,6 +52,9 @@ source/original.md nguồn nguyên văn, không sửa
52
52
  series/outline.md
53
53
  series/episodes/allocation.json, ep<NN>-source.md
54
54
  series/direction.md, series/visual-bible.md
55
+ series/visual-standard.md style đã khóa: khối VISUAL STYLE, dòng `Visual style:` 422 ký tự LOCKED, khối AVOID
56
+ series/prompt-template.md khung settings 5 dòng (R2V + extension) + bảng `# Character Descriptions` và `@Audio`
57
+ series/sample-prompt.md prompt mẫu đã kiểm, dùng để đối chiếu định dạng
55
58
  script/ep<NN>.md
56
59
  storyboards/ep<NN>/direction.md
57
60
  storyboards/ep<NN>/scenes/S<NN>.md card storyboard từng Scene
@@ -83,32 +86,12 @@ File chấm (`.*.seedance.json`, `.*.ark.json`, `.ark-group.json`) và MP4 đã
83
86
 
84
87
  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.
85
88
 
86
- ## 6. Model
89
+ ## 6–7. Model, cổng, render và ghép — xem [render-and-gates.md](render-and-gates.md)
87
90
 
88
- **Quy tắc chọn model theo từng clip (user chốt 20/11/2026):**
91
+ Bảng chọn model, bảng cổng duyệt và quy trình B5/B8/B10/B11 nằm trong `render-and-gates.md`. Đọc file đó khi công việc chạm tới sinh ảnh, render, sửa hoặc ghép; một ticket chỉ viết tài liệu (dừng ở B7) không cần đọc.
89
92
 
90
- | Điều kiện | Model | ID |
91
- |---|---|---|
92
- | Mặc định (R2V clip 1 và extension clip 2+) | Seedance 2.5 flash | `dreamina-seedance-2-5-flash-261115` |
93
- | Clip có **trên 10 ref** (≥ 11) | Seedance 2.5 | `dreamina-seedance-2-5-260628` |
93
+ Ba điều trong đó phải biết kể cả khi không đọc: khâu ghép (B11) đi qua skill `video-editor`, mà skill đó nằm trong plugin `dsh-video-editor` và **cần được grant** — không có grant thì theo mục 10 và chỉ còn đường miễn phí `media_concat` / `media_compose`. Có grant thì cut được `editor_export` ra MP4 và `editor_convert` ra draft CapCut, với `editor_check` làm cổng. Sửa nội dung trong khung hình thì không đường nào ở đây làm được — quay về mục 8.
94
94
 
95
- - **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.
96
- - Đế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.
97
- - Extension chạy được trên cả hai model.
98
- - 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.
99
- - 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.
100
- - Resolution 480p mặc định; tỉ lệ mặc định 9:16.
101
-
102
- ## 7. Cổng (gate)
103
-
104
- | Cổng | Ai mở |
105
- |---|---|
106
- | 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 đó |
107
- | Sinh từng ảnh / voice (B5) | user yêu cầu đích danh |
108
- | Render từng segment/revision (B8) | user xác nhận đúng clip + revision + prompt sha256 + thứ tự ref |
109
- | Audit độc lập | teammate không viết tài liệu đó |
110
-
111
- Duyệt tài liệu không bao giờ là quyền chi tiền. “Test” = dừng ở prompt.
112
95
 
113
96
  ## 8. Truy lỗi về khâu sớm nhất
114
97
 
@@ -119,32 +102,17 @@ Duyệt tài liệu không bao giờ là quyền chi tiền. “Test” = dừng
119
102
  | Vị trí đứng, đường đi, góc máy cụ thể, điểm cắt, ai thấy gì | B3 |
120
103
  | Ngoại hình, trạng thái, layout bối cảnh, thiếu góc | B4/B5 |
121
104
  | Prompt diễn đạt sai khi thiết kế đúng (segment chưa adopt) | B7, sửa trong cùng run |
122
- | Đổi thứ đã adopt | Fork run mới, restart từ khâu đó (B0) |
123
105
 
124
106
  ## 9. Skill khâu do user cung cấp
125
107
 
126
- `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-3-character-prompt` (B5, prompt ảnh nhân vật), `pipeline-a-5-clip-segmentation` (B6), `pipeline-a-5-prompts`, cùng hai skill phụ `pipeline-a-3-cinematic-asset-design-engine` (do `pipeline-a-3-character-prompt` load) và `location-sheets` (do engine load) do bundle `@dragonbyte/dsh-drama-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, B8, B10) làm theo mục 10; B5 ngoài prompt ảnh nhân vật và B11 khi không có grant `video-editor` cũng theo mục 10.
108
+ `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-3-character-prompt` (B5, prompt ảnh nhân vật), `pipeline-a-3-location-prompt` (B5, prompt ảnh bối cảnh), `pipeline-a-3-prop-prompt` (B5, prompt ảnh đạo cụ), `pipeline-a-5-clip-segmentation` (B6), `pipeline-a-5-prompts`, cùng hai skill phụ `pipeline-a-3-cinematic-asset-design-engine` (do `pipeline-a-3-character-prompt` load) và `location-sheets` (do engine load) do bundle `@dragonbyte/dsh-drama-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, B8, B10) làm theo mục 10; B5 ngoài ba prompt ảnh (nhân vật, bối cảnh, đạo cụ) và B11 khi không có grant `video-editor` cũng theo mục 10.
127
109
 
128
110
  ## 10. Quy trình cho khâu không có skill
129
111
 
130
- **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`.
112
+ **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`. Dựng `series/` bằng cách chép `references/series-template/` của skill này vào `fission/<version>/series/`, rồi điền theo phim: dòng `Visual style:` 422 ký tự và bảng `@Audio` là giá trị của **dự án này**, không phải mặc định dùng chung.
131
113
 
132
114
  **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.
133
115
 
134
- **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.
135
-
136
- **B6 Chia segment** — dùng skill `pipeline-a-5-clip-segmentation`: 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`.
137
-
138
- **B8 Render** — chỉ sau khi prompt (B7) xong và user xác nhận đúng clip/revision/sha256 prompt/thứ tự ref:
139
- - Clip 1 (R2V): `fission_submit_video` với `name`, `version`, `episode`, `revision`, `model`, `ratio`, `duration`, `referenceNames` (+ `referenceAudioUris` nếu có).
140
- - 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`.
141
- - 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.
142
- - Duyệt hình (B9): user tự xem clip ngoài luồng và nói chấp nhận/không; clip bị chê thì render revision mới (B8). Không có bước agent tự duyệt hình.
143
-
144
- **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.
145
-
146
- **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.
147
-
148
116
  ## 11. Cấu hình hình ảnh & ngôn ngữ của dự án
149
117
 
150
118
  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.
@@ -0,0 +1,55 @@
1
+ # Model, cổng, render và ghép
2
+
3
+ Phần này tách khỏi `contract.md` để một ticket dừng ở **B7** — trường hợp của pipeline này, vì nó không render — không phải mang theo quy tắc chọn model, tham số `fission_*`, chỉnh sửa và ghép cut. `contract.md` vẫn là nguồn chuẩn; đọc file này khi công việc chạm tới render (B8), sửa (B10) hoặc ghép (B11), hoặc khi cần bảng cổng và model.
4
+
5
+ ## 6. Model
6
+
7
+ **Quy tắc chọn model theo từng clip (user chốt 20/11/2026):**
8
+
9
+ | Điều kiện | Model | ID |
10
+ |---|---|---|
11
+ | Mặc định (R2V clip 1 và extension clip 2+) | Seedance 2.5 flash | `dreamina-seedance-2-5-flash-261115` |
12
+ | Clip có **trên 10 ref** (≥ 11) | Seedance 2.5 | `dreamina-seedance-2-5-260628` |
13
+
14
+ - **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.
15
+ - Đế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.
16
+ - Extension chạy được trên cả hai model.
17
+ - 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.
18
+ - 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.
19
+ - Resolution 480p mặc định; tỉ lệ mặc định 9:16.
20
+
21
+ ## 7. Cổng (gate)
22
+
23
+ | Cổng | Ai mở |
24
+ |---|---|
25
+ | 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 đó |
26
+ | Sinh từng ảnh / voice (B5) | user yêu cầu đích danh |
27
+ | Render từng segment/revision (B8) | user xác nhận đúng clip + revision + prompt sha256 + thứ tự ref |
28
+ | Audit độc lập | teammate không viết tài liệu đó |
29
+
30
+ Duyệt tài liệu không bao giờ là quyền chi tiền. “Test” = dừng ở prompt.
31
+
32
+ ## 8. Truy lỗi về khâu sớm nhất
33
+
34
+ | Lỗi | Khâu |
35
+ |---|---|
36
+ | Sự kiện, thoại, kiến thức nhân vật | B1 (A1 nếu lệch cốt truyện) |
37
+ | Thứ tự/danh tính shot, cỡ cảnh, chuyển động, nhịp, thời lượng nhấn | B2 |
38
+ | Vị trí đứng, đường đi, góc máy cụ thể, điểm cắt, ai thấy gì | B3 |
39
+ | Ngoại hình, trạng thái, layout bối cảnh, thiếu góc | B4/B5 |
40
+ | Prompt diễn đạt sai khi thiết kế đúng (segment chưa adopt) | B7, sửa trong cùng run |
41
+ | Đổi thứ đã adopt | Fork run mới, restart từ khâu đó (B0) |
42
+
43
+ ## B5, B8, B10, B11 — quy trình
44
+
45
+ **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`; ảnh bối cảnh: theo skill `pipeline-a-3-location-prompt`; ảnh đạo cụ: theo skill `pipeline-a-3-prop-prompt`) → **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. **Cấu trúc ảnh của pipeline này:** bối cảnh = **một ảnh ngang Master View** cho mỗi nơi/trạng thái, trống người, đúng phía máy mà clip dùng; cảnh cần trục ngược thì thêm **Reverse View** riêng, ghi trong card và đối chiếu Spatial Lock. Đạo cụ = **một ảnh** cho một món hoặc một nhóm liên quan, nền studio, thứ tự trái→phải ghi trong card. Không dùng lưới nhiều góc của `asset-images` cho hai loại này; giới hạn Ark (300–6000 px, cạnh dài ≤ 2,5× cạnh ngắn) vẫn áp dụng. **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` chỉ **chuyển định dạng** file giọng user đã cung cấp thành WAV mono mà Ark nhận (nó không tạo giọng từ chữ; không có file giọng thì hỏi user, không tự sinh) → `fission_register_ark_audio_asset` (`audioPath`, `audioSha256`, `version`) → poll Active. Ảnh làm lại = tên file mới. Asset dùng lại thì chỉ chọn, không sinh.
46
+
47
+ **B8 Render** — chỉ sau khi prompt (B7) xong và user xác nhận đúng clip/revision/sha256 prompt/thứ tự ref:
48
+ - Clip 1 (R2V): `fission_submit_video` với `name`, `prompt`, `version`, `episode`, `revision`, `model`, `ratio`, `duration`, `referenceNames` (+ `referenceAudioUris` nếu có). `name`, `prompt`, `version`, `episode`, `duration` là **bắt buộc**; tool từ chối khi thiếu. `generateAudio` mặc định `true` — chỉ truyền `false` khi tiếng được ghép riêng ở B11.
49
+ - 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 `name`, `prompt`, `version`, `episode`, `referenceVideoUri`, `assetUris` (ảnh Active theo thứ tự), `referenceAudioUris` nếu có, `model`, `duration`, `revision`; prompt mở bằng `Extend @Video 1 forward`. `name`, `prompt`, `version`, `episode`, `referenceVideoUri`, `duration` là **bắt buộc**. Tool kiểm prompt: phải cite `@Video 1`, và cite `@Image 1`…`@Image N` đủ, không thiếu không thừa, đúng thứ tự `assetUris`.
50
+ - 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.
51
+ - Duyệt hình (B9): user tự xem clip ngoài luồng và nói chấp nhận/không; clip bị chê thì render revision mới (B8). Không có bước agent tự duyệt hình.
52
+
53
+ **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.
54
+
55
+ **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.