agentleFS
GoRenkuGoRenku/studio-skills/skills/replicate-media-provider/SKILL.md

replicate-media-provider

Skill2 starsChanged 7 months agoMITView on GitHub

Author and execute supported Replicate image, video, or audio requests when selected by user direction or a saved Project provider preference. Do not choose it automatically as a replacement for another provider.

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 3 are distinctive, and 17 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

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

    line 28
  3. Very specific:

    Read this skill's adapter and Media Producer's model guides from your installed plugin.

    line 32
  4. Very specific:

    Keep the $file markers below in the review document.

    line 46
  5. Very specific:

    After approval, get the exact request with generation native-request and the review's requestSha256.

    line 63
  6. Very specific:

    Create a prediction with Replicate's MCP tools for the request's model, owner/model or the pinned owner/model:version, with its native …

    line 66
  7. Very specific:

    Check the prediction until its status is succeeded, failed or canceled.

    line 72
  8. Very specific:

    Write the receipt with the fields local Renku keeps: {"requestId": "<prediction id>", "status": "succeeded", "metrics": <the prediction's …

    line 80
  9. Very specific:

    Leave out the output links, the API links under urls, logs and anything secret.

    line 82
  10. Very specific:

    Keep every agent-created working file inside the current Project's categorized tmp/ tree.

    line 93
  11. Very specific:

    Use tmp/operations/media-generation/ for review documents.

    line 97
  12. Very specific:

    Use tmp/media/ for generated or downloaded media.

    line 99
  13. Very specific:

    Use tmp/qa/ for review evidence.

    line 100
  14. Very specific:

    Use tmp/scratch/ for other temporary inputs.

    line 101
  15. Distinctive:

    Use Replicate when explicit user direction or a saved Project provider preference selects it.

    line 103
  16. Distinctive:

    Read relevant provider guidance: reference inputs.

    line 114
  17. Very specific:

    Use generation models show --provider replicate --model <apiId> --json to get personalGuidePath.

    line 117
  18. Very specific:

    Use owner/model or the exact pinned owner/model:version recorded in the index.

    line 131
  19. Very specific:

    Add promptMention only when the selected adapter establishes exact syntax.

    line 134
  20. Distinctive:

    Follow Media Producer's shared review routing for panel Submit/consume or Preview/conversational confirmation, artifact review, and focused …

    line 139

≈ “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

Replicate Media Provider

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.

  • Run each renku ... command through renku_command, as a batch of args lists. There is no shell: no pipes, redirects or $(...). Send the review document inline in the command's files, under tmp/operations/media-generation/, and keep your own copy on your computer.
  • Read this skill's adapter and Media Producer's model guides from your installed plugin. For --route-index, pass skill:replicate-media-provider/references/supported-routes.json. Read personal model notes with generation models guide show --provider replicate --model <apiId> instead of opening personalGuidePath.
  • Renku Cloud holds no Replicate token. Before preparing, check that Replicate's MCP server is connected in your AI app; its sign-in asks for the person's token, which Replicate keeps. If it is not connected, ask the person to connect it and wait; never ask for the token.
  • generation schema show, validate, prepare and estimate work without a token. When a schema cannot be read (ENGINE_CATALOG_KEY_REQUIRED), fetch it with Replicate's MCP tools and save it with generation schema record. Prices still come from model-researcher's price research, as locally.
  • Keep the $file markers below in the review document. The native request carries them as links.
  • The host permission and local network rules below do not apply. Renku refuses its Execute and Recover steps: generate as Renku Cloud Generation describes.

Request Preparation And Recovery

Reuse verified command syntax and selected-route discovery within the current request preparation. Follow existing configuration-cache freshness; final native validation and execution remain live boundaries. Do not retry paid execution automatically or replay a successful mutation after CLI026. Provider metadata cache and output writes require host permission, and Preview notification requires local network access. Explain a known denial and use the authorized permission flow instead of repeating it or disabling persistence. Keep Preview, approval, concurrency, output review, and attachment ownership with Media Producer.

Renku Cloud Generation

In Renku Cloud, the person's AI app sends the request through Replicate's own MCP server, and their Replicate account pays for it. Media Producer's Renku Cloud guide has the whole flow; these are Replicate's parts.

  1. After approval, get the exact request with generation native-request and the review's requestSha256. Its reference links stay readable for 24 hours.
  2. Create a prediction with Replicate's MCP tools for the request's model, owner/model or the pinned owner/model:version, with its native input exactly as given. Keep at most workflowPolicy.concurrencyLimit predictions running at once.
  3. Record the job with generation job record as soon as Replicate returns the prediction id; that id is the providerJobId.
  4. Check the prediction until its status is succeeded, failed or canceled. Check again rather than creating another prediction. End a failed or canceled one with generation job close --job <id> --reason failed|cancelled.
  5. Replicate's output links expire after an hour, so upload and import as soon as the prediction succeeds. When output lists several files, upload every link in one renku_upload call and import them in one media import --file list, each with the same job and receipt.
  6. Write the receipt with the fields local Renku keeps: {"requestId": "<prediction id>", "status": "succeeded", "metrics": <the prediction's metrics, only when present>}. Leave out the output links, the API links under urls, logs and anything secret. Renku refuses a receipt holding a secret or a signed link, naming the field.
  7. Import with media import --job <job id> --receipt <receipt file>.

Replicate's MCP server is the only way to reach Replicate here; never call its API with a token yourself. If its tools cannot send the native input exactly, stop and tell the person rather than sending a changed request.

Project Workspace

Keep every agent-created working file inside the current Project's categorized tmp/ tree. Never create review JSON, provenance JSON, generated media, QA evidence, downloads, or scratch files at the Project root.

  • Use tmp/operations/media-generation/ for review documents. Execute/Recover saves provenance beside its media and returns provenancePath for attachment.
  • Use tmp/media/ for generated or downloaded media.
  • Use tmp/qa/ for review evidence.
  • Use tmp/scratch/ for other temporary inputs.

Use Replicate when explicit user direction or a saved Project provider preference selects it. Do not switch to it automatically from another provider.

Reuse Media Producer's effective model list when already loaded. Otherwise use renku generation models list --provider replicate --route-index <absolute-path-to-references/supported-routes.json> --json for this provider's bundled and personal discovery choices. Select the exact apiId; an explicitly requested unlisted route can proceed without installation. Copy it verbatim into the review document's model field and every generation command. Never substitute a model or rewrite its namespace.

Find model advice by name under Media Producer's references/model-guides/. Read relevant provider guidance: reference inputs. Missing advice does not block a supported request; the selected schema and provider documentation describe its current inputs. Use generation models show --provider replicate --model <apiId> --json to get personalGuidePath. Read it if present. Current bundled guidance supplies the curated default; personal notes add advice and explicit user preferences take priority. A personal discovery label never suppresses bundled guidance. Prepare the selected request from its live/cached schema and optional advice. Consult current provider documentation when necessary. Do not add a separate capability check or mandatory transport/output compatibility audit.

Media Producer supplies the exact deliberately chosen local files. Do not query or reinterpret Renku Project relationships. The supported-route index is routing guidance only; run renku generation schema show --provider replicate --model <api_id> --json for the selected Replicate model's current native fields and constraints.

Use owner/model or the exact pinned owner/model:version recorded in the index. Author the provider-native prediction input as request, using $file markers with Media Producer's exact reviewLabel at exact native media fields. Add promptMention only when the selected adapter establishes exact syntax. Engines retrieves the selected model's live input schema, uploads local files, submits, polls, retries eligible failures, downloads outputs, and returns safe provenance.

Follow Media Producer's shared review routing for panel Submit/consume or Preview/conversational confirmation, artifact review, and focused attachment. Never call Replicate directly or persist provider URLs, tokens, prediction state, or durable execution lifecycle records.

Renku estimates cost for reviews from cached provider prices. Do not write prices into this Skill or the review document; a missing price follows model-researcher's price research.

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.