The master skill in PlanetScale's official pack: runs a full read-only best-practices assessment of a database or org, then produces one evidence-backed report.
Replicate: Run ModelsSkill
Summary
Replicate's official skill for running models via its API — predictions, polling, Prefer: wait, webhooks with signature validation, streaming and file handling.
Features
- Fetch and validate against each model's OpenAPI schema before calling it
- Three output paths: poll, Prefer: wait (fast models only), or webhook
- Webhook signature validation and event filtering
- SSE streaming for language models
- Concurrency, prediction lifetime, and the one-hour expiry on output URLs
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Description
One of seven official skills published by Replicate for building on its model API. This is the execution half: how to actually get output out of a model.
Replicate hosts thousands of image, video, audio and language models behind one prediction API, and the failure modes are consistent enough to be worth writing down. This skill encodes them. Always fetch the model's own OpenAPI schema before building inputs — every model has its own, popular models change theirs, and violating a minimum, maximum or enum constraint is the most common way a call fails. Don't set optional inputs without a reason; the defaults are usually the tuned ones.
It covers the three ways to collect output and when each is right: create-and-poll for anything slow, a Prefer: wait header for a blocking response from fast models only (60-second ceiling), and an HTTPS webhook for production. The webhook section is the part most integrations get wrong, and the skill spells out the signature validation using the Webhook-ID, Webhook-Timestamp and Webhook-Signature headers against the secret from GET /v1/webhooks/default/secret.
Also here: the prediction state machine (starting → processing → succeeded/failed/canceled), the owner/name versus owner/name:version_id distinction between official and community models, lifetime for auto-cancelling runaway predictions, SSE streaming for language models, and the operational detail that bites people in production — output file URLs expire after one hour, so back them up to your own storage if you need to keep them.
The sibling skills in the same repository cover finding models, comparing them on cost and quality, packaging your own with Cog, publishing them, and prompting image and video models.
Related Skills
Build crash-safe AI agents on AgentKit and step.ai — durable tool calls, human-in-the-loop approval, realtime progress, and when not to reach for an agent loop at all.
Inngest's durable-execution playbook as an agent skill — steps and memoisation, event and cron triggers, idempotency, cancellation, retries and non-retriable errors.
Temporal's official skill for building durable workflows — SDK patterns across seven languages, plus the determinism rules that decide whether a workflow survives a replay.