跳到正文
FunCoding

dramaclaw-workflows

Create, revise, confirm, run, or resume multi-node DramaClaw Freezone canvas workflows. Use for requests involving a workflow, several connected nodes, grouped production stages, storyboards, or text/image/video/audio pipelines; do not use for one standalone canvas operation or for 预演台/previz scene blocking (edit a previzNode instead).

Star
7,278
最近提交
2026年12月2日

agent-kit/skills/dramaclaw-workflows/SKILL.md

在 GitHub 上查看

DramaClaw Workflows

Build one coherent workflow transaction, not a sequence of standalone canvas edits.

Required behavior

  • For interactive short dramas, branching stories, choices or multiple endings, route story structure to the interactive-story Skill and its dedicated tools first. This workflow Skill applies only to the requested media production. For new character, product, scene or storyboard reference images in an approved production plan, use the existing text-to-image-video catalog Skill with general-image in one image-only WorkflowPlan; keep existing story video nodes outside that Plan and connect images after its run finishes. Never replace an unavailable story tool with ordinary canvas commands or a WorkflowPlan.

  • Planning authors topology, Recipe selection, dependencies, confirmed parameters, and short node task briefs. Each node prompt should state its task, scope, upstream outputs, and reference roles in one or two concise sentences. Preserve user-provided story facts and source material. In a compact Intent, keep every user-confirmed quantity, named object, exclusion, and visual continuity anchor in user_goal; planner.units may distribute steps but must not replace those shared facts with a short summary. Do not invent details the user did not provide. Carry a confirmed visual style into each image/video task brief, or supply it through an actual consumed upstream text output; a Skill title or an unrelated node does not carry that style into a media node by itself. When a video consumes upstream images through media_input_for, select a reference-capable generation mode supported by its chosen Catalog model and reference count. Do not leave the mode unset or use textToVideo; an edge alone cannot make a text-only mode consume images. If no compatible mode is available, stop on the catalog/preflight blocker instead of dropping the media input or silently changing an explicit user choice. Do not invent finished scripts, detailed shot-by-shot storyboards, dialogue, camera choreography, sound cues, or final media prompts before upstream stages execute. A concrete action brief explicitly required by the selected Skill for Draft review is a planning constraint: author it now, with enough short sentences to specify the actions; do not defer it as a future instruction. Execution-time Recipe compilation uses actual upstream outputs to produce executable prompts.

  • Read this Skill and its references only through the exact locator advertised by the current host. Never invent project:// paths. Use a canvas summary already supplied by the host; if current canvas data must be refreshed, call freezone_get_canvas_ontology instead of inventing a canvas:// resource. MCP clients must use only resource URIs returned by resources/list or resources/templates/list. The Workflow MCP intentionally returns an empty static resources/list; this is supported and does not mean the catalog is unavailable. Discover accessible Skill/Recipe IDs with workflow_catalog_search, then use the advertised templates for resource reads. Do not enumerate or guess another user's private catalog IDs.

  • The Skill package/server display name does not determine a host's MCP registration key. Use the exact server returned by the host. In DramaClaw's Codex adapter, filesystem-backed Skill files are read from dramaclaw; workflow catalog resources use dramaclaw_workflows (underscore). Never call resources/read with an inferred dramaclaw-workflows server key.

  • Use the portable dramaclaw-workflows MCP server for catalog discovery and deterministic compilation when it is available. Use the authorized DramaClaw MCP server for draft persistence, approval, canvas commit, and execution. Tool names are host-neutral; call them through the MCP mechanism supported by the current agent.

  • dramaclaw-workflows is this Agent Skill package/server name, not a Workflow catalog skill_id. Never pass it to workflow_skill_get, freezone_get_workflow_skill, or an intent's skill_id. Select the matching production Workflow Skill returned by the catalog instead.

  • Route an ordinary pure-image workflow to text-to-image. Use text-to-image-video only when the user asks for a video stage, and use social-content-campaign only for an explicit social platform image-set request. Do not report a Skill conflict or ask the user to accept video merely because the older general video Skill also contains an image stage.

  • Never implement a multi-node request by repeatedly calling freezone_create_node, freezone_create_edge, freezone_group_nodes, or other single-operation tools.

  • Never fall back to repeated single-operation writes after a workflow validation or schema error. Correct the workflow intent/plan or report the blocking error.

  • Follow the selected Skill's current planning contract. A request for a finished result does not authorize collapsing required stages or marking prerequisites complete. When the requested operation cannot run yet, explain the missing prerequisite in creation terms and guide the user to the next supported step. Agent-authored schema/topology errors are the Agent's responsibility to correct, not user mistakes; never ask the user to design internal nodes or links.

  • Never offer direct canvas commands or standalone node writes as a clarification choice for bypassing WorkflowPlan validation. A user selection cannot authorize that bypass. When a Skill's required stage conflicts with an exact node-only constraint, report the conflict or ask whether the required stage may be added; do not offer an invalid direct-write alternative.

  • During exact-Plan recovery, preserve the user's explicit media/result cardinality and existing external-input edges. If the planning contract says a stage accepts_external_media, a connected input of that kind fills the stage; never add a generated replacement anchor for it. Add only the genuinely missing stage named by preflight (for example a required planning text node).

  • Never resubmit an unchanged workflow payload. After one correction, if the same validation path fails again in the same turn, stop retrying and report that blocker instead of increasing the failure counter.

  • Treat the Workflow Intent schema as the serialization allowlist. Recipe discovery fields such as requires_source_media are selection metadata only: use them to choose and connect Recipes, but never copy them into intent.items[]. The server derives authoritative Recipe constraints from recipe_id.

  • For short-drama-quick, preserve screenplay-first planning: when narration/dialogue will be produced by an upstream shot/script Recipe, keep the drama-shot-voice item and reference that text item. Do not invent literal narration at draft time, and never delete requested voiceover merely to pass validation; the runtime resolves the spoken text through the prompt_for edge.

  • A failure from an earlier chat turn is diagnostic history, not proof that the current adapter is still blocked. When the user repeats the original create/run request, explicitly asks to retry, or has restarted the service, retry the same complete workflow write once in the current turn. Never declare the current environment blocked without a same-turn write result showing the same failure.

  • A confirmed workflow must be committed as one operation and must produce one approval surface.

  • The deterministic workflow compiler owns node IDs, same-batch references, grouping, layout, selection, and the final canvas_chat_commands.v1 batch.

  • An explicit imperative to create or run authorizes submission to the protected canvas write tool. Do not ask for a duplicate create/run confirmation and do not claim that the host cannot display the approval surface; the write tool emits it. In auto_execute, the host applies the ordinary approval event after required image/video parameters are known.

  • Workflows bound to story targets through source_context.targets or source_context.asset_targets must explicitly include run_after_create when preparing. Ordinary workflows may omit it and retain the default false (create only), even on a canvas containing a story. Set it to true when the user asks to create and generate/run. A terse confirmation such as “可以” or “确认” inherits the preceding proposal's execution policy. Use false for an approved create-only request.

  • Use freezone_request_user_clarification for structured questions. Never substitute a host's built-in request_user_input, update_plan, or create_goal for canvas work.

  • For Skill/Recipe authoring, read and follow references/skill-studio-authoring-guide.md before asking questions or drafting.

Route the request

Before creating a draft or graph that will actually run image or video generation, inspect the user request, selected Recipe input contract, existing target-node data, and the host-provided canvas execution mode. For every new generation request, call freezone_request_user_clarification exactly once before any canvas write in both manual_confirm and auto_execute. Historical clarification answers, prior-turn parameters, existing node values, and Recipe defaults may prefill recommended choices, but never count as the user’s selection for the current request. After the clarification result returns for that request, do not ask again for those same fields. Pass its unchanged answers object as generation_answers on draft preparation; the tool also retains the same-turn receipt as a fail-safe when the host omits that argument. Explicit image_model / video_model values may be included in generation_preferences; the server accepts them only after validating the current project's live Catalog entry and dependent options.

If the tool returns clarification_ui_unavailable, no interface can answer a card. Do not retry it or move the request to another canvas. Continue with stated assumptions or ask the user in the conversation. Never choose or upgrade generation settings for the user; ask for missing image/video settings in the conversation. Paid actions still require explicit user consent before freezone_confirm_canvas_action.

For existing video nodes, read the target nodes and their real references before asking for a model, and pass all target node IDs as generation_video_node_ids to the clarification tool. The host uses their current generation modes to restrict model choices. In interactive stories, include every requested segment's video node; keep its existing reference mode when it is needed to consume the connected images. Do not switch a multi-image shot to first-frame mode just to make an incompatible model pass: explain the conflict and let the user choose a compatible model or explicitly change the reference plan. Check reference types and counts separately against the selected model's current capabilities.

Before a draft is created, affected_node_ids returned by WorkflowPlan preflight are plan-local IDs, not existing canvas node IDs. For a compatible_video_model question, pass the exact server-returned question and omit generation_video_node_ids; the server has already checked the complete plan's reference modes and durations. If clarification arguments receive an argument refusal before a card is shown, correct those arguments and retry the same question. This does not apply to clarification_ui_unavailable. Once a card exists, resume it with its clarification_id rather than creating another card.

When using generation_media_types or generation_required_choices, do not include agent-authored questions in the same call. Generation clarification is one exclusive server-owned mode; ask any unrelated business question in a separate turn only when it is actually required.

  • In manual_confirm, apply the preliminary answers to the plan, then submit the protected write. The normal approval card is still shown and remains the final parameter editor.
  • In auto_execute, apply the preliminary answers and submit the protected write immediately. A normal approval event is still emitted and may be auto-applied. Explicit human-review requirements may still pause execution.
  • If the host does not provide a valid mode, treat it as manual_confirm.

The image/video choices are:

  • Image: model preference, aspect ratio, resolution/quality, and variants per node.
  • Video: model or generation mode, aspect ratio, resolution, duration, sound generation, and output variants per node.
  • Provider thinking/reasoning level is server-managed. Never ask the user to choose thinking_level, reasoning effort, or low/medium/high thinking options, and never add such a question from a live model parameter schema.

Do not include audio voice-source selection in this preliminary clarification. Never ask the user to choose system voice versus custom voice. A speech node uses an already selected custom voiceRef; if none is selected, its generation is skipped as defined under Execution and completion. A plan that requires that speech as voice-over or composition input must not be ready until a valid voiceRef is bound.

For a compact Intent, copy the user's selected custom voice as inputs.audio_voice_ref={"scope":"user_custom","voiceId":"<selected ID>"}. Pass the confirmed inputs.video_generation_mode for workflows consuming image references. If the requested workflow needs references and no compatible mode is confirmed, clarify before preparing the draft. Preserve the user's exact narration and shot durations in planner.units.

For an exact Plan, put audio settings inside node.data. Use the selected voice reference: {"audioKind":"speech","voiceRef":{"scope":"user_custom","voiceId":"<selected ID>"}}. voice_ref is also accepted; preparation normalizes the selection consistently with revision. Do not invent voiceAvailable=true or overwrite an explicit unavailable state. A missing or invalid selection must still stop required speech. For background music, set {"audioKind":"music","text":"Instrumental background music"} alongside the selected music Recipe in data.workflowCatalog. A music Recipe name alone does not set the node type; music needs no voiceRef. Read the custom-topology reference before submitting an exact Plan, including its node-data examples.

Offer a recommended/default option so the user does not need to understand provider-specific fields. In either execution mode, do not draft, commit, approve, or run until the required clarification result returns, except after clarification_ui_unavailable: follow the conversation fallback above and collect missing generation settings before proceeding. This is an explicit exception to a host's general rule not to ask about model parameters. It applies only to image and video generation for now. It also applies with run_after_create=false when the user explicitly asks to configure image/video node parameters; do not ask when the user only wants empty nodes, connections, grouping, layout, or edits without generation parameters. Choices explicit in the current user request, Recipe, existing node data, or history should be preselected in the card, not used to skip the card.

The portable workflow intent carries confirmed shared choices in inputs:

{
  "image_model": "<catalog model id>",
  "image_aspect_ratio": "16:9",
  "image_resolution": "2K",
  "image_quality": "medium",
  "image_variants_per_node": 1,
  "video_model": "<catalog model id>",
  "video_aspect_ratio": "16:9",
  "video_resolution": "720P",
  "video_duration_seconds": 5,
  "video_generate_audio": false,
  "video_variants_per_node": 1
}

image_count and video_count, when declared by a selected Skill, describe workflow deliverable or node counts. Never use them as per-node generation counts. Only image_variants_per_node / video_variants_per_node map to canvas node data.count, and their portable supported values are 1, 2, and 4.

For an exact Plan, copy every user-confirmed input declared by the selected Workflow catalog Skill into plan.inputs under its exact parameter ID. Node data and portable image_* controls do not replace Skill inputs such as platforms, image_count, or aspect_ratio. Leave an optional Skill input absent only when the user has not chosen it and its catalog default agrees with the planned nodes. If preparation rejects an inputs.* mismatch, correct the Plan input and matching nodes against the confirmed request; do not retry the same Plan or silently change the user's choice.

Use only the image or video keys relevant to the selected plan. For an exact custom topology, shared confirmed choices may remain in plan.inputs; preparation applies each image/video choice to every matching generated node that leaves the field unset. Node data may instead pin the equivalent canvas or portable field for a step, and an explicit node value always takes precedence over the shared choice (the same rule the standard planner follows), except that the user-confirmed video_generate_audio choice is authoritative and replaces conflicting generateAudio values on every video node. Only two aliases of the same setting with different values on one node are rejected. If the clarification tool already returned clarification_ui_unavailable in this conversation, ask the user in the conversation for any required_choices returned by a later write instead of calling the clarification tool again. Otherwise, if a write returns code="generation_parameters_required", do not retry unchanged. Call freezone_request_user_clarification once for all returned missing choices, passing already confirmed choices (at least the model) in answers so the recommendation comes from the same catalog entry. The clarification result carries node_data.<node_type> with the exact canvas fields; copy them verbatim into each matching node of the same intent/plan and retry the same operation. Draft preparation, patching and confirmation all run this preflight, so the clarification can also come back at confirm time. It comes back only when every blocker is a missing generation choice; a preflight that also reports a blocker no answer can fix (a disabled queue, an unavailable model or catalog) fails with status="workflow_preflight_failed" naming that blocker first, so resolve it before asking. A recommended action always returns concrete values; a result with status="generation_answers_incomplete" means the choice is still missing and must be asked again, never defaulted. Approval behavior remains controlled by the execution mode.

For a raw custom Plan, set plan.schema_version="freezone_workflow_plan.v1". A confirmed video reference mode belongs in plan.inputs.video_generation_mode and in each matching video node's data.genMode; keep them identical and verify that the selected Catalog model supports that mode. Put each shot's duration in data.durationSec (seconds), not data.durationSeconds. The generation_answers argument is only the unchanged answers object returned by freezone_request_user_clarification: never append video_generation_mode or hand-built fields to it. The sole exception is a prepare result with status="generation_mode_clarification_required": ask exactly its returned question, then pass that clarification's unchanged answers on the one retry while reusing the operation id. The server merges it with the same-turn parameter receipt. If preflight reports any other incompatible model/mode, preserve any explicit user mode; choose a compatible Catalog model when available, otherwise ask the user. For an unstated mode, choose a reference-capable mode supported by the selected model and the actual number of incoming images.

When the user does not specify internal media settings, use "recommended" only for the media model preference in the portable intent or Plan. The authorized preflight resolves it to a concrete model id and compatible parameters from one scoped live Catalog snapshot before saving the draft. The final draft preview must contain concrete values. If the configured preferred model is absent or its capabilities do not support the requested values, stop on the returned blocker and ask the user to choose a product-level alternative. Never submit "recommended" as size, quality, or resolution, and never select the first Catalog model by position.

Generation clarification must use one question per missing portable field; never combine model, ratio, resolution, duration, sound, or count into a single recommended-settings preset. Read the live node create schema for each relevant image/video node type, then query it again with the selected model_id before choosing model-dependent parameters. Use the second response's exact options; do not reuse defaults from the model-agnostic schema or rewrite a user's selected value. A video_resolution question must expose every resolution supported by the selected/live model, including 480P whenever the schema lists it.

  1. Identify the single matching workflow Skill from the user's explicit goal. Use workflow_catalog_search(kind="skills") when discovery is needed. If several materially different Skills match, ask the user to choose; do not guess.
  2. Read the selected package with workflow_skill_get, or with freezone_get_workflow_skill when the standalone server is unavailable. Use only the returned Recipe summaries and input contract.
  3. Call freezone_begin_agent_product_generation with product_kind="workflow_result", a stable generation session, skill_id, skill_version, artifact_id="<skill_id>@<skill_version>", and the normalized inputs before authoring the result. These Skill identities must match the later compiled result. Copy the returned operation_id exactly; never invent, abbreviate, or reconstruct one, and never call a prepare tool before this admission succeeds. If it returns agent_product_operation_not_required, this host has no product chat turn and no operation was opened; that counts as admission: continue, omit operation_id from the prepare call, and never invent one.
  4. For a normal workflow, submit one compact freezone_workflow_intent.v1, the admitted operation_id (omitted when step 3 returned agent_product_operation_not_required), and the run_after_create decision to freezone_prepare_workflow (required for story-bound targets). The backend compiles and validates it; do not run a separate compile first.
  5. Present the returned preview. Adjust it with freezone_revise_workflow, sending the same draft_id, expected_revision, and only changed fields.
  6. After explicit user confirmation, call freezone_confirm_workflow_draft once with the exact draft_id and revision.

Route between the normal draft flow and the exact topology path in this priority order:

  1. An explicit planner instruction wins. When the user names the standard planner or a Skill's standard flow ("use the standard planner", "按标准模板"), submit a compact Intent to freezone_prepare_workflow(intent=...) even if the message also lists nodes and dependencies: compare the listed topology with that Skill's standard template first, and treat a same-shape list (same stages, order, and dependencies) as a restatement of the template, not a custom request. A request for N standard video nodes chained 1→2→...→N is also supported by the compact planner: set planner.item_count=N and planner.video_dependency="sequential". Do not author items, nodes, or edges for that pattern. The compiler adds execution-only dependency_for edges between consecutive clips, so earlier clips are not sent as media references. For ecommerce-ad, when the user names one of the Skill's allowed images-stage Recipes, set planner.image_recipe_id to that Recipe. If selected canvas images are supplied as external_inputs, do not add items merely to bind them or to preserve the Recipe: the standard planner uses those images as the asset stage, creates the planning text, and emits prompt_for from planning plus media_input_for from each external image to every result.
  2. Otherwise, when the user explicitly requires an exact canvas node count or node set, or names required nodes and a dependency order that deviates from the matching Skill's template, or requests images for an existing interactive story with exact asset or shot-to-existing-video mappings, use the exact topology path in references/custom-topology.md, preparing the complete Plan as a persisted draft even when its stages resemble the standard template or a production Skill matches. Exact cardinality words such as "exactly", "only", and "唯一" are topology requirements when they refer to canvas nodes; do not reinterpret them as a compact planner item count. The Plan must include top-level schema_version and skill.id/skill.version copied from the selected production Skill; generation_answers never substitutes for the complete Plan. Episode totals, Beat totals, shot totals, duration, and other business counts alone do not enter this path. Keep them in compact Intent inputs or the standard planner. Only treat them as exact topology when the user explicitly requires those items to exist as individual canvas nodes and specifies their exact set or a dependency graph that differs from the standard template.
  3. When an explicit planner instruction and the listed topology genuinely conflict (for example the standard planner is named but a mandatory template stage is dropped), ask one single-question clarification with freezone_request_user_clarification before choosing a path; never pick a side silently.

The prepared draft records which path was taken (preview.planner.mode is deterministic_standard or agent_authored) so the choice can be audited. The server compares every agent-authored topology with the Skill's standard template before compiling it: a plan or item list that restates the template (every executable node fills a template stage, required stages present and fed, no edge from a later stage back to an earlier one; node counts and prompts are parameters) is compiled by the standard planner with the briefs as its units, but only when that compilation reproduces the plan node for node (same prompts per stage, same recipes and execution parameters, same dependencies, same narration and music, the same user material and compose order when the plan states them); the agent's nodes are then carried into that compilation as written (id and data), so only the planner's own additions (input and compose nodes, production shape, layout) are new, and the draft shows preview.planner.selected_by = template_isomorphic. A genuine deviation, or a plan the standard units cannot express, stays agent-authored and preview.planner.template_match.reason names it. For error recovery, read references/error-recovery.md.

When packaging this Skill for another agent host, read references/integration.md.

Server-owned workflow operations

On third-party hosts, call freezone_get_workflow_capabilities once before using the write path. The workflow-operations.v1 capability provides prepare, revise, input binding, and compact query. Use freezone_prepare_workflow(plan=...) for an exact topology; preserve its complete graph and constraints. Use freezone_get_workflow(draft_id=...) to inspect a timeout or pending confirmation. See references/workflow-operations.md for binding and patch fields. Legacy adapters may use freezone_prepare_workflow_draft, freezone_prepare_workflow_plan_draft, and freezone_patch_workflow_draft; do not fall back to another write after an ambiguous timeout.

Execution and completion

  • When graph creation or draft confirmation uses run_after_create=true, its approved batch already contains the only run_workflow request. Do not call freezone_run_workflow again in the same turn. Start another run only after a terminal failure and a later explicit user retry.
  • Observe an existing run with freezone_observe_workflow_run(run_id=..., wait_seconds=20); reuse the returned observation_token as after for a later bounded wait. The backend reconciles tasks and artifacts and returns compact progress and recovery decisions. A query timeout permits another read of the same run, not resubmission of generation.
  • To run a just-landed draft, call freezone_run_workflow with the receipt's run_arguments (its own node ids); scope=canvas runs every unfinished node on the whole canvas, including earlier work.
  • To continue or resume an existing workflow, call freezone_run_workflow; do not traverse and run nodes individually.
  • A workflow containing exactly one executable node is still a workflow. If the user calls the target a workflow and asks to run, execute, continue, or resume it, call freezone_run_workflow directly without reading node detail first; never downgrade it to freezone_run_node_action.
  • Freezone speech uses custom/reference voices only; never select or generate with a preset/system voice. Preserve an existing valid voiceRef. If requested speech lacks a valid custom voice, ask the user in chat to select one, or to add a custom voice if none is available. Pause that speech without submitting TTS. Independent steps may continue. Draft preflight blocks any workflow that needs the missing voice-over or composition speech. Never select the first available voice automatically or open open_voice_picker unless the user explicitly requests it.
  • Treat awaiting_approval, accepted, and running as non-final states. Do not claim that canvas creation or generation completed until the corresponding result says it did.
  • Use operation_id, draft_id, revision, and returned idempotency identifiers unchanged on retries. Never create a replacement draft merely because delivery was retried.

相似的 Skill

blender-motion-state-inspection

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

精选

algorithmic-art

用 p5.js 生成流场和粒子系统,通过种子随机性创作原创算法艺术。

ANanthropics/skills203k近 7 天新增 3,265 个 star

官方

slack-gif-creator

ANanthropics/skills203k近 7 天新增 3,265 个 star

moneyprinterturbo-video

HAharry0703/MoneyPrinterTurbo147k近 7 天新增 1,608 个 star

thinking-out-loud

SHShubhamsaboo/awesome-llm-apps147k近 7 天新增 907 个 star

design-motion

GAgarrytan/gstack143k近 7 天新增 598 个 star