ericrisco/rsc-harness / skills/replicate
replicate
VerifiedUse when running, packaging, deploying or scaling a model on the Replicate platform from code — blocking run versus async predictions, handling FileOutput, deployments with warm private endpoints and autoscaling, packaging with Cog, verifying webhook signatures, and cutting GPU spend. NOT crafting image prompts and parameters or picking image model families (that is `replicate-images`).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.3 KB |
| evals/README.md | markdown | 685 B |
| evals/cases.yaml | config | 3.0 KB |
| references/cog-packaging.md | markdown | 4.3 KB |
| references/deployments-api.md | markdown | 3.0 KB |
| references/webhooks-and-async.md | markdown | 4.0 KB |
| scripts/verify.shexecutable | script | 6.0 KB |
evals/cases.yaml
View on GitHubskill: replicate
should_trigger:
- prompt: "Run flux-schnell from my Python script and save the image to disk"
why: "Core run + FileOutput handling — the most common entry point."
- prompt: "My Replicate prediction takes 8 minutes and my web request keeps timing out"
why: "Non-obvious symptom that routes to async predictions + webhook, not blocking run()."
- prompt: "Package my fine-tuned PyTorch model with Cog and push it to Replicate"
why: "Cog packaging — cog.yaml + predict.py + cog push."
- prompt: "How do I keep an instance warm so users don't hit a cold start on Replicate?"
why: "Non-obvious phrasing for deployments min_instances / warm floor."
- prompt: "Desplegar mi propio modelo en Replicate con un endpoint privado y autoescalado"
why: "Spanish phrasing for a deployment with a private endpoint and autoscaling."
- prompt: "How do I verify a webhook actually came from Replicate before trusting it?"
why: "Signature verification with the whsec_ secret — a security-critical ops task."
- prompt: "cog push fails with a CUDA/torch mismatch — how do I fix the build?"
why: "Cog build troubleshooting, covered in the cog-packaging reference."
should_not_trigger:
- prompt: "What prompt and aspect ratio give the best product photo on flux?"
route_to: replicate-images
why: "Image prompt/param craft, not platform operations."
- prompt: "Run my own arbitrary Python on a serverless GPU, not a packaged Replicate model"
route_to: modal
why: "General serverless GPU containers, not the Replicate platform."
- prompt: "Rent a raw GPU box by the hour to train a model"
route_to: runpod
why: "Raw rented GPU infrastructure, not Replicate model serving."
- prompt: "Design a generic webhook receiver with retries and dedupe for Stripe events"
route_to: webhooks
why: "Provider-agnostic webhook consumer design, unrelated to Replicate signing."
- prompt: "Track our total AI spend across OpenAI, Anthropic, and Replicate as a discipline"
route_to: cost-tracking
why: "Cross-provider spend tracking; this skill covers only Replicate-specific levers."
capability:
- scenario: "A team has a custom PyTorch model and wants it on Replicate as a private, autoscaling endpoint that fires webhooks on completion, while controlling GPU cost."
must_include:
- "cog.yaml declaring both build (gpu/python_version/python_packages) and predict"
- "predict.py with a Predictor whose setup() loads weights once and a typed predict()"
- "cog push r8.im/owner/model to publish a version"
- "a deployment configured with min_instances and max_instances and a hardware choice"
- "predictions.create with webhook= plus webhook_events_filter, and signature verification against the whsec_ secret"
- "cost guidance: scale-to-zero default vs warm-floor trade-off, prediction deadlines, right-sizing the GPU"
- "pins replicate>=1,<2 and treats file output as FileOutput (.read()/.url), not a string"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |