
short-drama-produce
PopularExecutes image, video, TTS/voiceover, or timeline music generation tasks for short-drama projects after explicit creator confirmation, returning the results and concise execution records back to the project. Use when the user says "generate this image / video / voiceover / music track", "start generating images / video / synthesizing speech / producing music", "send confirmed prompts to production", or requests batch execution of confirmed media tasks. Not responsible for authoring prompts, shots, dialogue, lyrics, or voice identities. Never treat previews, continuing, budget explanations, or existing acceptance states as confirmation for paid production.
Executes image, video, TTS/voiceover, or timeline music generation tasks for short-drama projects after explicit creator confirmation, returning the results and concise execution records back to the project. Use when the user says "generate this image / video / voiceover / music track", "start generating images / video / synthesizing speech / producing music", "send confirmed prompts to production", or requests batch execution of confirmed media tasks. Not responsible for authoring prompts, shots, dialogue, lyrics, or voice identities. Never treat previews, continuing, budget explanations, or existing acceptance states as confirmation for paid production.
Post-Confirmation Production
This skill is strictly responsible for safely delivering authored production specifications to the adapter configured in the execution environment. Image prompts remain under $short-drama-image-prompts, video prompts under $short-drama-video-prompts, dialogue and recording tables under $short-drama-write, and voice identities under $short-drama-assets.
Quick Start
Only after the user explicitly requests actual generation, extract the current prompt from 图片提示词.md, 分镜.md, or 视频提示词.md to create a bounded execution job. A creator-first job's source must point to the current Markdown file containing the prompt, and source_entry must specify an allowed level-2 heading for that document: IMG-* for 图片提示词.md, MOTION-* for 视频提示词.md, and SHOT-* for 分镜.md (where modality is image, and the body text is pulled from that shot's ### 冻结关键帧提示词). This selector extracts the first frame only; tail frames must first have an independent IMG-* keyframe entry established during the image prompt stage, with an image job prepared from 图片提示词.md. Creators may also provide an existing start frame—generating an image in their own tools and placing it into the project is equally valid; when an image is never added to the project, fall back to the storyboard's PLAN-.... Once the output lands in 剧集/<EP>/制作成果/images/, the storyboard owner can bind it as a REF-... with 用途:起始帧. When real reference images exist, you must fill in reference_bindings slot by slot, including order, path, Chinese display name, usage purpose, and allowed/prohibited control scopes. Built-in video adapters map the 用途 field to their vendor-specific roles and only accept published values (MiniMax accepts first_frame/last_frame/reference_image/reference_video/reference_audio; Seedance accepts three reference_* roles). Jobs with reference images that lack bindings fail directly rather than guessing a role. Local images are sent directly as base64 data URIs by built-in adapters without requiring a self-hosted upload service. "Reference Audio" lines in MOTION-* entries also enter reference_bindings item by item, placed after images, with role fixed as reference_audio and character copied directly from the line's 角色 field. If the adapter profile does not declare support for reference_audio, run fails before submission; see adapter-contract.md. When an entry's "Input Reference Image" is set to PLAN-..., those images reside in the creator's external tools and no local file exists in the project: prepare fails directly with an explanation to place the actual file into the project and rewrite it as REF-..., refusing to use plans as input or silently drop references. references may be omitted and generated from the binding order, or provided as an explicit mirror in the same order. Outputs are stored under 剧集/<EP>/制作成果/. This job serves as a temporary input for the production tool, not a sixth creative document:
python3 {skill_directory}/scripts/production_tool.py prepare <project> --job <temp-job.json>
Display the complete preview from prepare first. No vendors are invoked at this stage.
Hard Gates
Every production run must go through the following four sequential steps, which cannot be merged:
- Create a bounded job: a single modality, explicit count, full prompt/spec, reference files, parameters, output path, and adapter profile.
- Run
prepareand present the returned full preview to the creator, specifically highlighting count, prompt, source entry, reference bindings, references, outputs, overwrite status, and adapter. Creator-first jobs mechanically verify the copyable prompt text from the selected heading, as well as reference image slots, order, paths, Chinese names, and control boundaries at this step; any drift fails closed. - Wait for explicit creator confirmation after they have seen this preview. Run
confirmonly upon explicit approval for this specific task. "Continue", "finish them all", "budget is fine", upstream content acceptance, or prior approval of another version do not count as confirmation for the current production run. - Run
run. It consumes the single-use confirmation before launching the adapter. Subsequent executions after success or failure require re-confirmation to prevent accidental secondary costs during retries.
If the job, prompt, parameters, output paths, or direct inputs change, the previous confirmation immediately expires. Never fill in confirmation on behalf of the creator. The currently confirmed job is the sole unit of work for this round; report results and return control upon completion without automatically preparing the next batch or triggering a review.
Path references in 分镜.md under "Input Reference Image" serve only as readable context and usage intent during authoring, not as a production input snapshot. When entering production, a creator-first job must establish bindings from the corresponding entry in 图片提示词.md or 视频提示词.md. The reference_bindings, references, and the confirmed job shown during prepare serve as the authoritative reference for which file bytes the adapter actually reads and what each is permitted to control. Non-creator structured specs may leave source_entry/reference_bindings empty and continue using explicit references only. However, for new image/video jobs, as long as source points to the canonical 图片提示词.md or 视频提示词.md, using the corresponding selector is enforced and cannot be bypassed by omitting fields. Legacy jobs prepared and saved to disk prior to upgrades can still be read using their original fingerprints. New production outputs do not automatically update or refresh the storyboard; to use an output as a subsequent input, the storyboard owner must revise the document, create a new job, and go through preview and confirmation again.
Commands
Write current prompts and runtime parameters into a temporary JSON file only after entering the production boundary. The parameters.prompt_language for video and image jobs follows the prompt language already parsed from the current copyable body text, ensuring adapter-appended reference constraints use the same language rather than falling back to fixed English. Do not pre-create jobs for every prompt during the creative phase. See adapter-contract.md for format and adapter contracts. Commands are provided by production_tool.py, executed as follows:
python3 <skill_directory>/scripts/production_tool.py prepare <project> --job <job.json>
python3 <skill_directory>/scripts/production_tool.py confirm <project> --job-id <id> --confirmation "CONFIRM <id> <code>"
python3 <skill_directory>/scripts/production_tool.py run <project> --job-id <id> --adapter-config <outside-project-config.json>
python3 <skill_directory>/scripts/production_tool.py status <project> --job-id <id>
python3 <skill_directory>/scripts/production_tool.py collect <project> --job-id <id> --adapter-config <outside-project-config.json>
python3 <skill_directory>/scripts/production_tool.py audit <project>
prepare validates and previews only, without running production. confirm saves a single-use confirmation bound to the current job fingerprint. run launches the adapter. collect retrieves results for an already submitted and billed task without resubmitting or requiring new confirmation—see "Interruption Does Not Mean Re-running" below. audit reconciles local task history, post-failure recovery, repeated content attempts, and output file bytes without invoking vendors or drawing media quality conclusions from technical success, file existence, or hash matches. If an unresolved running attempt exists for the same job, re-preparing, confirming, or running is prohibited; wait for completion or inspect the leftover attempt first.
Input Selection
- image: Reads current
IMG-*copyable body text from图片提示词.md, or currentSHOT-*frozen keyframe text from分镜.md, alongside necessary reference images and explicit output dimensions/counts; creator-first jobs lock this entry viasource_entry. Asset boards useIMG-*, while initial frames for a shot useSHOT-*; the two are not interchangeable. - video: Reads current
MOTION-*copyable body text from视频提示词.mdand verifies against the corresponding shot, frozen keyframes, duration, and aspect ratio in分镜.md; creator-first jobs lock this entry viasource_entry. When continuing from a previous segment's generation result, the next segment job binds both the previous actual video and the actual tail frame extracted from it, preserving distinct responsibilities forcontinuity_videoandactual_tail_frame; vendor roles are translated by the target model adapter. For H3, this input group translates toreference_video + reference_imageand must not be mixed intoreference_video + first_frame; real files cannot be replaced with planned tail frames or text descriptions. - tts: Reads original lines and performance instructions from
剧本.md, with voice references explicitly provided by the user or existing media. Do not alter dialogue text in production jobs or create a sixth creative document for TTS. Performance instructions come from brackets and context around the dialogue: if the execution endpoint accepts natural language tone, append a tone instruction before the line (e.g., "Lower your voice aggrievedly, gritting your teeth: Yes."), attaching the same reference voice to lines by the same character; if it only accepts enumerated emotions, map to the closest tier and fine-tune with intensity and pitch. If only timber is provided without tone, short drama dialogue will sound like news broadcasting. - music: Reads confirmed timeline music sections from
视频提示词.md; theme songs use confirmed lyrics, while pure score carries no lyrics. If a vendor cannot commit to exact durations, output tracks are generated and delivered to$short-drama-editto adjust hit points, loops, fades, and dialogue ducking according to document mixing intent.
A single job does not mix modalities. Split large batch tasks into smaller jobs where creators can clearly see count and cost boundaries; do not implicitly stuff an entire season into a single confirmation for convenience.
Adapter Boundaries
Adapter configurations must reside outside the project and contain only argv commands and timeouts; credentials must be read by the adapter itself from process environment variables or system credential stores. Project jobs, confirmation records, execution logs, and Dashboards must never store secret keys.
Scripts invoke argv arrays via JSON stdin without using a shell or concatenating commands. Adapters return local temporary files; the tool accepts only outputs matching confirmed targets and atomically copies full files into the project's 剧集/<EP>/制作成果/ directory. Projects and upstream skills do not hardcode vendors, models, or unstable APIs.
Built-in image/video compilers append deterministic reference semantic instructions (Chinese display name, usage, allowed control, and prohibited control boundaries) to the vendor prompt based on confirmed reference_bindings; slot names are never mistaken for text to render on screen. External adapters must also preserve these semantics or explicitly reject them, rather than uploading files while silently dropping control boundaries.
This skill optionally provides four stdlib adapters selected via external adapter configs, reading credentials exclusively from the execution environment:
- Seedance: Model/Endpoint IDs must be explicitly configured by the account; compiler supports official image, video, and audio reference roles; built-in runtime rejects local reference files if trusted upload is unconfigured.
- GPT Image 2: Uses generation without reference images and edit with reference images; enforces high-fidelity reference and validates dimension, format, and transparent background constraints.
- MiniMax Music: Uses
music-3.0and hex results, differentiates theme songs from pure score, and does not forge duration request fields. - MiniMax Speech:
ttsmodality; model andvoice_idmust be explicitly provided by the account and document; does not ship with a built-in voice list. Synthesizes strictly from preset voices without voice cloning—cloning involves licensing; creator-authorized reference recordings follow standard creator input paths via输入/. - MiniMax H3 Video: Model ID, resolution sets, and duration ranges must be explicitly configured by the account; prompts go into
contenttext items, reference images bind according to explicit roles, and local references fail closed without trusted upload. This model generates audio alongside visuals; prompt formatting details are documented in the target model capability profile under the video prompt skill.
These adapters provide verified request contracts, not guarantees of account availability or output quality. Formal production must still pass the confirmation gate above, with product quality evaluated by the review skill.
The repository includes fixture_adapter.py strictly for offline testing; it does not represent actual generation quality or serve as a default production adapter.
Interruption Does Not Mean Re-running
Video tasks are billed at the moment of submission, not upon receiving results. Everything after submission—polling for several minutes, downloading—can be interrupted by killed processes, network drops, or machine sleep. Built-in adapters therefore write the vendor task ID into handle_path immediately upon receiving it (prior to the first poll), ensuring this path is not deleted alongside the current attempt.
Thus, three deterministic actions exist after an interruption without spending money again:
auditreports incomplete attempts carrying a task ID asorphaned_provider_job, with anactionofcollect_before_retry;collectretrieves results using that ID and marks the attempt as succeeded;- Only after
collectconfirms the job actually failed on the provider side do you proceed with re-confirmation and resubmission.
Do not resubmit directly when audit reports orphaned_provider_job—that pays for the same shot twice. collect intentionally bypasses the confirmation gate: the gate protects against unintended spending, whereas collect costs nothing. Requiring re-confirmation for collect would make paying twice the easiest path after an interruption, which is precisely what the gate prevents.
Results and Review
Upon success, report actual output paths, media types, and execution statuses; do not write "adapter returned success" as a quality conclusion. For multi-task workflows or retries, run audit first: terminal failures route via retryable, requiring explicit new confirmation for retries; if outputs are missing or file hashes/sizes no longer match execution logs, re-check current bytes or re-produce. repeated_content serves only as a cost and diagnostic signal and cannot automatically determine whether repeating content is reasonable; running_attempt indicates an unresolved operational state, requiring audit to flag attention. Failures follow three paths: technical failures like timeouts, rate limits, or server errors allow capped retries. If error messages explicitly name a rejected input—prompt text, reference image, or audio—modify that specific item before resubmitting: for rejected text, rewrite the sentence (e.g., change "punches the face, blood dripping down the chin" to "swings a punch and misses as the opponent sidesteps, knocking over a cup on the table"); for rejected reference images, swap for a compliant image with identical composition and character; for rejected audio, re-record that line. Write modifications into a new job, re-run prepare, and let the creator verify the changed item in the preview before confirming; resubmitting unchanged yields no fix, only another charge. Repeated content defects route back to the respective prompt/spec owner. Completing production does not automatically transition to editing. Assembling assets into final footage requires the user to call $short-drama-edit; it only selects from existing frames, without altering this stage's jobs or generating new assets. For quality reviews, reports can hand existing results over to $short-drama-review separately; do not automatically trigger review within production calls. Dashboards show these files and execution summaries only, offering no adapter settings or production buttons.
Installation and Maintenance
Run offline self-tests only during installation, upgrades, or troubleshooting; skip during standard authoring and production prep:
python3 scripts/selftest.py
python3 scripts/provider_adapters.py --selftest





