算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
runway-core-workflow-a【设计与创意】Design a Runway text-to-video job from the current model-discriminated API contract and preserve its asynchronous evidence. Use when implementing direct model generation. Trigger with: "Runway text to video", "choose Runway video model", "submit Runway generation".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: runway-core-workflow-a description: >- Design a Runway text-to-video job from the current model-discriminated API contract and preserve its asynchronous evidence. Use when implementing direct model generation. Trigger with: "Runway text to video", "choose Runway video model", "submit Runway generation". allowed-tools: Read, Grep, Write, Edit version: 2.0.0 argument-hint: '[prompt-and-output-contract]' model: inherit effort: high license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Treat model choice as an API-schema decision, not a marketing label. Runway request bodies are discriminated by model; valid ratios, durations, prompt limits, optional controls, price, and even required fields can differ between models.
Record modality, intended use, dimensions, duration, audio need, quality threshold, deadline, moderation policy, and maximum credits. Separate hard constraints from preferences.
Use a direct model when reproducibility requires a reviewed identifier. Use a saved Model Router when policy should optimize cost, latency, or quality within approved allow and deny lists; use its dry run before billable work.
Inspect the current text_to_video schema for the chosen model. For example, gen4.5 currently supports text input, but this skill does not transplant its ratio or duration fields to another model.
Persist the model or router config, normalized request, documentation fingerprint, and approval before create. Store the returned task ID immediately.
Use the SDK wait helper or bounded polling. Treat THROTTLED as queued and distinguish queue time from execution time. Recover from client interruption by retrieving the saved task.
On success, download output, verify media type, duration, dimensions, and checksum, then run the product quality review. On failure, apply the HTTP or task-failure policy rather than silently changing models.
All model, router, task, and usage calls use the server-side Runway API secret. Direct HTTP also sends the reviewed X-Runway-Version; temporary output URLs remain confidential until copied to controlled storage.
Use Read and Grep to inspect application configuration, provider documentation, lockfiles, fixtures, schemas, tests, and redacted operational evidence before proposing a change. Use Write or Edit only for an approved implementation, configuration, test, runbook, or redacted receipt. Do not create, cancel, delete, retry, deploy, rotate, revoke, publish, or otherwise mutate production Runway resources without explicit operator approval.
Return the environment, organization alias, operation and task identifiers, API and SDK versions, model or router policy, source-contract fingerprint, task-state evidence, credit boundary, output disposition, unresolved risk, rollback state, and final decision without exposing API secrets, prompt or media contents, or temporary signed URLs.
A product requires portrait video under a fixed ceiling. The team reviews two eligible models, dry-runs an approved router, records the selected policy, submits one task, and accepts the asset only after terminal success and media validation.
| Failure | Response |
|---|---|
| No model satisfies hard constraints | Return the incompatibility instead of inventing an identifier or unsupported field. |
Request receives 400 | Compare every field with the exact selected model variant; do not reuse another model's ratio or duration. |
| Client disconnects after create | Resume from the stored task ID and never infer that no task was created. |
Use contract tests for every approved model or router configuration, reject unknown identifiers and extra fields, simulate disconnect recovery, and verify technical plus human quality gates on a controlled canary.