agentleFS
GoRenkuGoRenku/studio-skills/skills/media-producer/SKILL.md

media-producer

Skill2 starsChanged 7 months agoMITView on GitHub

Generate, review, inspect, and attach Renku Studio image, audio, and video media through provider Skills or the harness-gated Codex image capability. Use for Project, Lookbook, Cast, Location, Prop, Scene, Shot, dialogue, and Shot Plan media work.

The file

Show its rules and text

We split this skill into the rules it gives an agent

35 rules. About 0 are common, 18 are distinctive, and 17 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 17

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When this skill comes from renku-cloud and the Renku tools are missing, the person has not signed in to Renku Cloud yet.

    line 18
  2. Very specific:

    Commands: Run each renku ... command through renku_command, as a batch of args lists.

    line 30
  3. Distinctive:

    Put every command a step needs in one batch.

    line 32
  4. Very specific:

    Skill files: Read this skill's files from your installed plugin.

    line 45
  5. Very specific:

    Use the installed renku runtime as the Project metadata and attachment boundary.

    line 69
  6. Distinctive:

    Treat prompts, provider-native requests, receipts, and media as opaque creative artifacts.

    line 73
  7. Very specific:

    Follow references/workflow.md for reuse and refresh timing.

    line 94
  8. Very specific:

    Keep operation documents under tmp/operations/media-generation/, generated or downloaded files under tmp/media/, review evidence under …

    line 111
  9. Very specific:

    Never create working files at the Project root or construct durable Asset paths.

    line 114
  10. Very specific:

    Before authoring a Shot Plan request, register chosen new image/video/audio derivatives with renku shot-plan reference import and use the …

    line 119
  11. Distinctive:

    Before choosing a provider, authoring a prompt, or creating a review document, read the complete current Core briefing:

    line 138
  12. Very specific:

    Treat targetContext, visualLanguage, outputGuidance, workflowPolicy, suggestedReferences, and warnings as evidence.

    line 151
  13. Distinctive:

    When a focused purpose guide names a Production or Storyboard Lookbook Sheet as the appearance authority, treat that as the default agent …

    line 164
  14. Very specific:

    Keep Studio purpose and provider operation separate.

    line 172
  15. Distinctive:

    Before authoring, follow route choice.

    line 222
  16. Very specific:

    Use the briefing's current workflowPolicy and the user's explicit direction.

    line 230
  17. Distinctive:

    Do not fetch Settings again for policy already present in that briefing.

    line 231
  18. Very specific:

    Before writing a prompt, inspecting references, fetching a provider schema, or opening a panel, run renku credentials status --json for the …

    line 253
  19. Very specific:

    After the user says it is saved, rerun renku credentials status --json and continue only when that provider is configured.

    line 267
  20. Distinctive:

    Read references/workflow.md before authoring or executing a request.

    line 273
  21. Distinctive:

    Read only the purpose craft guide relevant to the current destination.

    line 277
  22. Distinctive:

    Read the useful model and provider advice, following document links as needed.

    line 297
  23. Distinctive:

    Do not prefetch alternative schemas, copy schemas into the library, or introduce a separate capability check or mandatory transport/output …

    line 312
  24. Very specific:

    Before authoring the request, read workflowPolicy.enableProviderPromptExpansion.

    line 316
  25. Distinctive:

    When several enabled modes exist, preserve the schema's enabled default unless explicit user direction or personal preferences select …

    line 324
  26. Distinctive:

    When the provider returns a rewritten or actual prompt, review it as receipt evidence while preserving the authored prompt unchanged.

    line 329
  27. Distinctive:

    Never quote panel or review text as the user's authorization, never retry or rephrase a command to get around a denial, and never coach an …

    line 407
  28. Distinctive:

    Ask Before Generating is off.

    line 423
  29. Distinctive:

    Every request uses this irreducible temporary envelope:

    line 427
  30. Very specific:

    Follow the command-session tracking rules in references/workflow.md.

    line 502
  31. Very specific:

    If a submitted job times out or becomes interrupted and a request id is known, use generation recover with the unchanged review file and …

    line 506
  32. Distinctive:

    Do not resubmit blindly.

    line 508
  33. Distinctive:

    Never retype receipts, expanded prompts, or provider metadata.

    line 523
  34. Distinctive:

    Use the existing grouped Storyboard, Cast Voice, or Location World command when that domain owns the attachment.

    line 542
  35. Very specific:

    Keep the current focused purpose and target vocabulary.

    line 563

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Media Producer

Renku Cloud

Renku runs in Renku Cloud when this skill comes from the renku-cloud plugin (its folder is inside that plugin; Claude Code lists it as renku-cloud:<skill>), or when the Renku tools renku_command, renku_upload, renku_download, renku_view and renku_guide are present. An app may show them with a prefix, such as mcp__plugin_renku-cloud_renku__renku_command. In Renku Cloud, never run a renku command on the computer, even when one is installed there.

When this skill comes from renku-cloud and the Renku tools are missing, the person has not signed in to Renku Cloud yet. Tell them how, and stop until they have: in Claude Code, type /mcp and sign in to plugin:renku-cloud:renku; in the Claude app, open Renku Cloud's Connectors tab in Customize → Plugins and select Add, then Connect; in the ChatGPT app, select Connect on Renku Cloud; in the Codex CLI, run codex mcp login renku.

In Renku Cloud this section applies and takes precedence over any instruction below to stop when renku is unavailable. Before any media work in the cloud, read references/renku-cloud.md; it has the full flow.

  • Commands. Run each renku ... command through renku_command, as a batch of args lists. There is no shell: no pipes, redirects or $(...). Put every command a step needs in one batch; a command that needs an id from an earlier answer goes in the next batch.
  • Long answers. An answer over 100,000 characters, or every answer when saveAnswers is true, comes back as a link. Fetch it with curl and read it in ranges, or filter it, on your computer. Read generation context in parts with --section.
  • Workbench. Review documents, import lists, receipts, notes and scripts live on your computer. Send a document a command reads inline in the batch's files, under tmp/operations/media-generation/.
  • Files. Upload with one renku_upload call and download with one renku_download call. Crops, frames, excerpts, masks, contact sheets, resizing and transcription run on your computer; their results go up and are imported.
  • Skill files. Read this skill's files from your installed plugin. A command that reads one takes skill:<skill>/<path>, such as skill:media-producer/references/default-models.json for defaultModelList and skill:<provider-skill>/references/supported-routes.json for --route-index.
  • Providers. Renku Cloud holds no provider keys. Skip Renku's key check and Studio's key page below: check instead that the selected provider's MCP server is connected in your AI app, and if it is not, ask the person to connect it. Pika, Comfy Router and World Labs are not available in Renku Cloud; Codex built-in images run only in Codex.
  • Generation. Validate, prepare and estimate work as below. Renku refuses its Execute and Recover steps. After approval, get the exact request with generation native-request, submit it through the provider's MCP server within workflowPolicy.concurrencyLimit, record each job with generation job record, upload the outputs and import them with --job and --receipt.
  • Reviews. Panels open only in the Codex desktop app. A Studio Preview answers studio.delivery; waiting means no Studio tab is open: give the person studio.url from studio current and ask them to open it.
  • Host permissions. The cache, local network and codex permissions flows below do not apply.

For AI video from a Previs Shot Plan, Blender or staged, read references/shot-plan-video/blender-previs.md. It owns the video-plus-sheets handoff and the scoped omission of an extra Lookbook image.

Use the installed renku runtime as the Project metadata and attachment boundary. If it is unavailable, stop and direct the user to https://gorenku.com.

Treat prompts, provider-native requests, receipts, and media as opaque creative artifacts. Inspect them in the agent/user loop; never invent runtime validation for their creative contents.

Efficient Command Use

Choose text for reading; choose --json before invoking a command whose output will go to jq or code. Read the briefing separately from large guide reads. Capture a long briefing on its first call under tmp/scratch/, then read that file in contiguous, bounded ranges through EOF. Track the last fully displayed line; the next read starts at the following line. Search matches and a saved file are not a completed read. Finish all ranges before authoring the request. This applies to every image, audio, and video purpose, including exact edits. Respect both command and enclosing tool output limits; print readable output directly, without JSON-stringifying it. Recover truncation from the captured file, not another context call. In JSON, retain the top-level assetFiles inventory when resolving reference identities. Structured extraction does not replace reading the complete creative briefing. The Media inventory is part of that briefing even when references have already been chosen. Selecting a subset of references does not authorize skipping its other entries; distinguish completed reading from reference selection. Follow references/workflow.md for reuse and refresh timing. Prior recipes are omitted from the briefing; use references for the current task and retrieve history only when needed, following references/model-guides/shared/reference-inputs.md.

Read fresh generation context for each request. Within that preparation, reuse verified syntax and selected route discovery; do not prefetch other providers. Follow generation review routing for every image, audio and video purpose. When the generation type's Ask Before Generating is on, use its combined panel, Studio Preview or text review once. A casting round or character sheet round is confirmed once for all its images and skips both the Route Chooser and the per-generation review. Retain native validation, confirmation, concurrency limits, artifact inspection, and focused attachment. Tool-session polling continues the same process; it is not another CLI invocation. Never retry a successful paid execution automatically.

Consult the relevant CLI reference/help once if syntax is unknown, then reuse verified syntax for this task. Do not discover syntax by attempting mutations. Do not invent project list. If a known permission denial blocks cache/output/config or local-network access, explain the requirement and use the authorized host permission flow; do not repeat the denied attempt, read secrets, disable cache persistence, or change permissions. CLI026 means the mutation succeeded: report the notification warning without replaying the mutation.

Carry known host permission requirements across stages of the same task. If schema retrieval required elevated access to the provider metadata cache, validation and execution using that cache need the same permission mechanism; do not first repeat the denied access in each stage. Request required host approval normally; this does not grant or bypass it.

Project Workspace

Keep operation documents under tmp/operations/media-generation/, generated or downloaded files under tmp/media/, review evidence under tmp/qa/, and other temporary inputs under tmp/scratch/. Use unique review filenames. Never create working files at the Project root or construct durable Asset paths; focused Core commands own attachment. Retained Previs authoring source stays in the canonical Shot Plan previs/source/ folder; source revisions and rendered media are registered by blender-shot-planner through Core.

Before authoring a Shot Plan request, register chosen new image/video/audio derivatives with renku shot-plan reference import and use the returned AssetFile paths. Follow references/workflow.md for exact revision association, source summaries, reuse of registered inputs, and Preview availability checks.

Read the deterministic briefing first

For new or materially recomposed Beat Storyboards, first complete the prerequisite check in scene-storyboard-sheet.md. An unauthored Storyboard Lookbook requires the user's choice and confirmation; missing saved Scene Beats require scene-beat-designer before generation context, prompt authoring, configuration, or execution. A general request to create Storyboards does not authorize choosing the Project's visual language.

For media generation from an existing Cast, Location, or Prop design, use this skill directly. Load casting-director or production-designer when the task also needs design authoring or revision; do not fetch department context to repeat the generation briefing.

Before choosing a provider, authoring a prompt, or creating a review document, read the complete current Core briefing:

renku generation context \
  --purpose <purpose> \
  --target <target>

For scene.storyboard-sheet, pass the exact reviewed revision and repeat --beat for the requested batch. Without --beat, Core returns the revision's complete ordered Beat set.

Treat targetContext, visualLanguage, outputGuidance, workflowPolicy, suggestedReferences, and warnings as evidence. Core owns the factual Project relationships in that report; do not rediscover them by scanning filenames, tags, prompts, or unrelated command output. Suggestions are non-binding and non-exhaustive: context is evidence, not permission. The user or agent may ignore, supplement, or replace them for a creative or provider-specific reason. A missing suggestion is information, not a denial of permission or a generation blocker.

Inspect the exact files you deliberately choose. Give the provider Skill only those chosen Project-relative files; provider Skills do not query Project domains or decide which subjects belong to the target.

When a focused purpose guide names a Production or Storyboard Lookbook Sheet as the appearance authority, treat that as the default agent workflow, not as an ordinary optional suggestion. If the exact Sheet is available and the user has not requested a deliberate visual departure, inspect it and attach it to the provider request with a narrow appearance role. Do not replace a visible appearance authority with a prose summary merely because a text-only route is easier to call.

Keep Studio purpose and provider operation separate. A new focused candidate may use a reference-capable provider route whose operation is named image-edit; that does not change the Studio purpose to image.edit. Prefer a reference-capable route for the same explicitly selected provider and canonical model when an appearance authority must be visible. If no usable route can carry it, stop before generation, explain that the request would become text-only, and ask whether the user wants that downgrade or another model. Missing Lookbook media does not invent a blocker: use the authored Lookbook definition as prompt direction, report the gap, and continue unless the user required visual-reference matching. This does not waive the Storyboard prerequisite check when the Lookbook definition itself is unauthored.

Choose the provider and model

At the start of generation work, beside renku credentials status --json, tell Renku where this Skill's Default Model List is, so Studio Settings lists its models:

renku generation default-models link --file <this-skill-dir>/references/default-models.json

Renku keeps no copy; it reads the file in place every time. It needs no Project or running Studio and does nothing when the link is unchanged. Run it once per task. Every panel and command that lists models also takes the file's absolute path: defaultModelList for generation.route.choose and casting.round.open, and --file for renku generation route options.

Generation types. workflowPolicy.generationType names the Project generation type for the purpose: image (Image Generation), imageEdit (Image Editing, for image.edit), video (Video Generation, including video.edit) or audio (Audio Generation). The policy carries that generation type's provider, model, chooseRouteBeforeGenerating and askBeforeGenerating. provider is null while the Project has no provider for that generation type (new Projects start that way for Image Editing, Video and Audio); route choice then suggests one. model is either { key, name }, where key is a model guide key from the Default Model List, or null. A null model means the list's recommendation for the generation type provider: the entry whose recommendedFor includes it, such as FLUX 3 for Fal.ai image edits. Each entry's providers lists { "provider", "route" } pairs: the generation type's route on that provider, which Studio prices for the casting picker. In the image and imageEdit generation types each pair also has detail, the route's native size fields for the lowest, mid and highest detail levels. A provider or model the user names in chat always wins. Map the chosen model family and the purpose to the exact operation route with the family's model guide and the provider's supported-routes.json; for example, Seedance 2.5 for a reference-to-video Shot uses that provider's Seedance 2.5 reference-to-video route.

Before authoring, follow route choice. It decides when the Route Chooser, or the model question in Claude Code and other hosts, confirms the provider and model, and what to do when the saved default is missing. Change Project generation settings only at the user's direct request (the model question's save choices count as one), with renku settings generation set --type <image|image-edit|video|audio> and only the flags they asked for; never change them to avoid a question or a review.

Use the briefing's current workflowPolicy and the user's explicit direction. Do not fetch Settings again for policy already present in that briefing. The generation type provider, when there is one, is the initial preference, including when it is Replicate, WaveSpeed, or Comfy Router with a saved key. The Project media menus offer keyed Fal.ai, Pika, Comfy Router, Replicate, and WaveSpeed; ElevenLabs is Audio-only, and World Labs is reserved for Location World generation outside these menus. A Project default does not certify support for the requested media, model, or operation. Check only the selected request against current provider guidance. If the preferred provider cannot fulfill it, explain the mismatch and ask the user which provider or model to use; do not silently switch. Use location-world-producer for World Labs Location World requests.

  • For fal-ai, use fal-ai-media-provider.
  • For pika, use pika-media-provider.
  • For comfy-router, use comfy-router-media-provider.
  • For replicate, use replicate-media-provider.
  • For wavespeed-ai, use wavespeed-media-provider.
  • For elevenlabs, use elevenlabs-media-provider.
  • For Codex, continue only when the current harness exposes its built-in image generation capability. If absent, report that fact and ask whether to use another provider. Wait for the user's choice and never silently fall back.

Before writing a prompt, inspecting references, fetching a provider schema, or opening a panel, run renku credentials status --json for the selected external provider. Check that provider's configured value; another provider's saved key does not satisfy it. Codex built-in image needs no provider key. If status fails, report its structured read error rather than calling it a missing key. If the key is missing, pause preparation and tell the user that this provider needs a saved key. Run renku studio server status --json for agent.browserUrl; if Studio is stopped, start it through the existing foreground renku studio start workflow. Open the local /?settings=provider-credentials link when browser control is available and give the user the link in chat. Ask them to enter the selected provider's key in Settings → Provider API keys, select Save, and tell you when done. For first-run setup, guide them through Project Library setup to its optional key step. Never ask for the key in chat or record it in a request document. After the user says it is saved, rerun renku credentials status --json and continue only when that provider is configured. Recheck on a provider switch. This confirms saved presence only; live provider validation still handles an invalid or expired key. Do not silently switch providers or retry a submitted job on a missing-key result.

Read references/workflow.md before authoring or executing a request. For image work, also read references/image-operation-routing.md and references/image-output-review.md. Read only the purpose craft guide relevant to the current destination.

Find models and guidance

For Codex built-in images, read the ChatGPT Images guide.

For external providers, use the existing CLI directly, supplying the installed provider indexes as repeated --route-index arguments when needed:

renku generation models list --query "<model name or id>" \
  --route-index <provider-skill-dir>/references/supported-routes.json --json

Core merges bundled and personal choices. Use the selected route's exact apiId for execution. The combined review's route list comes from the same command; discovery does not need to save it.

Find relevant Markdown under references/model-guides/ by model name or filename. Read the useful model and provider advice, following document links as needed. Choose a route from the user's intent, intended input roles, and the model's supported inputs together; use the selected live/cached schema for native fields. The presence or number of images alone does not determine the route. Consult provider documentation if a consequential input behavior remains unclear.

generation models show --provider <provider> --model <apiId> --json returns personalGuidePath; read it if present. Bundled advice and personal notes inform preparation, while explicit user preferences take priority. A personal display name does not hide the model's bundled guidance.

Missing routes, guides, or operation advice are ordinary absence: continue without a warning or approval question. Prepare only the selected route from its live/cached schema and optional advice; consult provider documentation when needed. Explain actual input mismatches using that schema or documentation. Do not prefetch alternative schemas, copy schemas into the library, or introduce a separate capability check or mandatory transport/output compatibility audit. The provider schema owns executable fields and constraints.

Before authoring the request, read workflowPolicy.enableProviderPromptExpansion. Inspect the selected route's live schema and descriptions for one unambiguous control whose meaning is provider prompt expansion or prompt rewriting. Set that native control to the Project preference when it exists, omit it when it does not, and consult the selected provider documentation rather than guessing when the schema is ambiguous. Never infer the native property from a model name or a checked-in field-name map. Enabling expansion does not request the slowest expansion mode. When several enabled modes exist, preserve the schema's enabled default unless explicit user direction or personal preferences select another mode. If the default is disabled, use the schema descriptions to choose its ordinary enabled mode. Show any deliberately selected slower mode and its described latency in configuration; do not silently promote an enabled preference to maximum quality. When the provider returns a rewritten or actual prompt, review it as receipt evidence while preserving the authored prompt unchanged.

PurposeCraft guide
image.create, image.editimage-operation-routing.md, then model-guides/shared/image-prompting.md; also model-guides/shared/reference-inputs.md when references are used, and image-edit-panels.md for every image.edit in Codex Desktop with panel support
project.coverproject-cover.md
lookbook.imagelookbook-image.md
lookbook.video-sheet, lookbook.storyboard-sheetlookbook-sheets.md
cast.casting-candidatecast-casting-candidate.md
cast.character-sheetcast-character-sheets.md
cast.profilecast-profile.md; also voice-over-profile-image.md when isVoiceOver
cast.voice-samplecast-voice-sample.md
location.sheet, location.herolocation-sheet.md
prop.sheet, prop.heroprop-sheet.md
scene.storyboard-sheetscene-storyboard-sheet.md
shot.imageshot-image.md
all shot-plan.video-* purposesshot-plan-video/index.md, then shot-plan-video/workflow.md; also previs-video-chooser.md for a Previs Shot Plan
shot-plan.dialogue-audioshot-plan-dialogue-audio.md, then model-guides/shared/audio-and-voice.md and the canonical audio model guide; also dialogue-direction-panels.md for eligible Codex Desktop requests
video.editvideo-reference-continuity.md, then the canonical video edit guide

For every video workflow, also read references/video-reference-continuity.md after selecting the route and inspecting its live schema. This is where selected Dialogue Audio becomes the default for any route that can actually accept uploaded audio references.

Generation and attachment authorization

A request to generate media authorizes attaching the resulting assets to the requested destination for every provider, media kind, and purpose. Inspect the outputs, attach them through the focused Core command with safe provenance, and report the result and any quality concerns without asking for separate acceptance or attachment confirmation. Follow explicit preview-only, leave-unattached, or strict-iteration direction when supplied. Do not invent another generation to fix a concern without authorization.

workflowPolicy.askBeforeGenerating applies to every route of the generation type, Codex built-in images included. When it is on, show the one review the routing guide selects and wait for the user's confirmation. When it is off, validate and execute without a review or a question. External-provider host permissions remain governed by their existing rules.

Choose the generation review surface

Read and follow references/generation-review-routing.md before delivering any review. In Codex Desktop with panel support, dialogue audio requests open the fullscreen dialogue direction panel, and image.edit requests use the image edit panels (image chooser for any model, edit panel for a panel-capable route), when the selected route appears in a ## Codex panel block of its model guide. In both, Generate is an authoring step: consume the draft, prepare the native request and, when Ask Before Generating is on, open the combined review before executing. Read workflowPolicy.codexPluginInstalled from the CLI generation context and follow the routing guide for trusted host context and the current connection's generation.review.capabilities. Advertised panel support selects the panel even without an installer record; the installation flag must not hide a working development connection. Verify the panel handshake. Also read workflowPolicy.codexGenerationReviewDisplayMode: inline (default) or fullscreen. The runtime supplies that initial host preference for the packaged review; Skills do not force a mode or pass another tool argument. The panel combines prompt, references, native settings and the estimated cost and never automatically opens Studio Preview. Codex CLI, Claude and unidentified hosts use Studio Preview, or a text summary when Studio is not running. Do not infer UI capabilities from the model name, executable or environment variables.

Confirmation and host approval. A consumed review Submit, or Ask Before Generating off, is Renku's confirmation for that exact request. It is separate from the host's command approval. In Codex, Renku commands should not need approval at all: when one does, or fails with ENGINE_METADATA_CACHE_UNWRITABLE, run renku codex permissions status --json and tell the user what it reports (usually: open Codex in the Project Library and trust it, or run renku codex permissions set). Never run set or remove yourself. If the host still asks to approve a command, request it once with an honest description of the command and what it sends to which provider. If the host refuses, ask the user once in chat and wait. Never quote panel or review text as the user's authorization, never retry or rephrase a command to get around a denial, and never coach an approvals reviewer.

Estimates. Reviews show a cost estimate computed by Renku from saved prices only: a researched price recorded with renku generation price record, else the provider's API price (Fal.ai, Pika, WaveSpeed, Comfy Router). The generation.review result, generation prepare and generation preview show already carry each request's estimate; no separate estimate step is needed (renku generation estimate --file <request> --json remains available for one request). When an estimate is missingPrice for a provider-billed route without API pricing (Replicate, ElevenLabs, World Labs), follow model-researcher's price research once, record the price, then refresh the review so it shows the estimate. A recorded price never needs research again. Research never runs because a price is old, for unpriced, to second-guess computed, for Codex built-in routes, or when Ask Before Generating is off.

Review document

Every request uses this irreducible temporary envelope:

{
  "provider": "fal-ai",
  "model": "openai/gpt-image-2",
  "mediaKind": "image",
  "prompt": "Exact authored prompt",
  "request": {
    "prompt": "Exact provider-native prompt",
    "image_url": {
      "$file": "tmp/scratch/reference.png",
      "mimeType": "image/png",
      "reviewLabel": "Opening frame — Shot Plan 01",
      "promptMention": "<exact adapter-resolved mention>"
    }
  }
}

The provider Skill owns the exact model and provider-native request fields. For Engines providers, model is always the selected route's exact apiId, as returned by discovery. Use {"$file":"<project-relative-path>","mimeType":"image/png","reviewLabel":"<meaningful context label>","promptMention":"<exact model token>"} at the exact native media field. reviewLabel is required for every Renku review marker; omit promptMention when the selected model uses the input implicitly according to the selected provider adapter. Do not add domain roles, Asset ids, provider uploads, credentials, absolute paths, or signed URLs to the envelope.

Preview and confirmation

These commands are for the Studio Preview path selected by the routing guide. The combined panel uses standalone Validate, its Submit/consume handoff, and validation of accepted edits; it never automatically calls Prepare or Preview. With Ask Before Generating off, validate and execute without either.

For a single Engines request in the Studio Preview path, write the final request and call Prepare in one tool operation:

renku generation prepare --file tmp/operations/media-generation/request.json --json

It validates, attaches the cost estimate, and delivers Preview from the same loaded request. Inspect the returned diagnostics and estimate and retain its hash; do not call Validate or Preview again. Without a Studio Preview, use renku generation validate --file <request> --json. For Codex documents or several independent requests, use renku generation preview show with repeated --file flags in order; validate Engines requests individually before a combined Preview. Preview supports conversational review: the user may edit only the top-level prompt, and Update or Close does not generate media or resume an agent. Continue after the user's conversational confirmation, for Codex built-in images too. Retain Prepare's (or standalone Validate's) requestSha256 and pass it as --expected-request-sha256 to Execute after confirmation. Execute checks the file itself; no shell hash, unchanged-file reread, or second Validate call is needed. On CLI_GENERATION_REQUEST_CHANGED, read the edit and reprepare through the provider Skill. See references/workflow.md for the changed-request path. Request writing and Prepare run sequentially in one tool operation, stopping on failure.

An explicit user Preview request always opens it. askBeforeGenerating is one review pause, not an approval token; a confirmation after Preview satisfies it. Apply the per-generation-type concurrency limit only to independent requests.

Execute, recover, and attach

Engines-provider requests execute through the provider Skill:

renku generation execute \
  --file tmp/operations/media-generation/request.json \
  --output tmp/media/request \
  --expected-request-sha256 <requestSha256-from-preparation>

Follow the command-session tracking rules in references/workflow.md. A surrounding script or tool cell finishing without Renku's final structured result does not mean the provider request or artifact download finished.

If a submitted job times out or becomes interrupted and a request id is known, use generation recover with the unchanged review file and exact request id. Do not resubmit blindly.

Codex requests invoke the built-in image capability after the same review policy. They never call Engines commands and never invent an Engines receipt.

Present returned playable/viewable artifacts as soon as Execute or Recover finishes, before extended analysis or attachment bookkeeping. In Codex, embed the exact returned local media path in commentary and continue review; a queued open-file request alone is not confirmation of visible playback. Label review as ongoing, without claiming attachment or quality verification yet. Inspect every output, then attach automatically without an acceptance question. Execute/Recover automatically saves exact provenance and returns provenancePath. Pass that file directly to import; no extraction or receipt-only recovery is needed. Default output is compact; use --json when code consumes fields. For Codex, use its safe review envelope as described in references/workflow.md. Never retype receipts, expanded prompts, or provider metadata. Use returned artifact and attachment paths instead of directory searches or repeated Asset listings. Attach through the focused destination:

renku media import --project <project-name> \
  --purpose <purpose> \
  --target <target> \
  --source <project-relative-output> \
  --provenance <returned-provenancePath>

For direct completion reading, media import without --json displays returned attachment facts and canonical files without echoing the recipe. Choose --json only for programmatic consumption and retain its complete output before displaying selected completion fields. This format choice also applies to purpose-guide import examples; grouped and owner-specific workflows still use their focused commands and must retain complete results when processing them.

Use the existing grouped Storyboard, Cast Voice, or Location World command when that domain owns the attachment. Pass the same exact safe provenance through its focused document. For Shot Plan Dialogue Audio, attach the accepted output with renku media import --purpose shot-plan.dialogue-audio --target shot-plan:<id> --turns <N-or-N-M>. Do not create durable request/job state, cost approval artifacts, or lifecycle records around generation. In Renku Cloud, the jobs you record with generation job record are the only job records.

Media made outside Renku's generation flow (another app, a provider's website, a camera, or a hand edit) has no generation provenance. Every purpose accepts it: attach it with the same renku media import command without --provenance. In Renku Cloud, media you generated through a provider's MCP server from an approved review is not outside media: import it with --job and --receipt as references/renku-cloud.md describes. Never write a provenance file yourself. Copying and selection remain Core-owned, and --select is used only when selection is part of the current user intent.

Purpose routing

Keep the current focused purpose and target vocabulary. Resolve exact ids from the current handoff or relevant Renku domain command; never invent them. Then let generation context supply the complete related graph.

  • project.cover targets project; image.create targets the destination shot-plan:<id> selected by the image-operation workflow.
  • image.edit context targets the exact source assetFile:<id>; an accepted output becomes a new AssetFile in the source's owning collection. This applies to every active image, including Inspiration and research images. It becomes the selection when its type has one (profiles, heroes, covers, Lookbook images, Shot and storyboard images); sheets and Shot Plan images are only added. Preserve the original file; do not choose another destination.
  • video.edit context and attachment target the exact source assetFile:<id>. The accepted output is a separate source-derived video Asset beside the source and never replaces or auto-selects it.
  • Lookbook media targets lookbook:<id>.
  • Casting candidates target the confirmed round, casting-round:<id>; each candidate is imported as soon as it finishes and never selected.
  • Character Sheets target the confirmed character sheet round of one costume, casting-round:<id>, with --casting-model; each sheet is imported as soon as it finishes and never selected.
  • Cast Profiles and voice samples target cast:<id>.
  • Location and Prop media target location:<id> and prop:<id>.
  • Scene Storyboards target scene:<id>; Shot images target shot:<id>.
  • Shot Plan video and auxiliary contexts target shot-plan:<id>.
  • Dialogue audio targets the exact shot-plan:<id> and stores one consecutive, inclusive Turn range on each independent audio Take.

Shot Plan generated Assets retain only weak authoredFrom context. They do not become owned by or freeze the Shot Plan.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.