replicate
Read and write Replicate: look up model versions and input schemas, run predictions, poll status, cancel runs. Trigger phrases: replicate, ai models.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- replicate
- tagline
- Run AI models, poll predictions.
- metadata
- { "includeInPrompt": true }
- description
- Read and write Replicate: look up model versions and input schemas, run predictions, poll status, cancel runs. Trigger phrases: replicate, ai models.
- catalog_auth
- API key (per-user)
- catalog_hosts
- [ "api.replicate.com" ]
02 资源文件 1
- 脚本bin/replicate.py5.2 KB
03 SKILL.md 正文
Replicate
Purpose
Run AI models on Replicate: look up a model to get its version ID and input schema, create an async prediction, poll its status, and cancel runs. Use when the user wants to run a specific model by owner/name.
Tooling
All commands go through bin/replicate.py:
bin/replicate.py auth # verify the API key
bin/replicate.py model --name stability-ai/sdxl # get version ID and input schema
bin/replicate.py predict --version <version-id> --input-json '{"prompt": "..."}' # start a prediction
bin/replicate.py status --id <prediction-id> # poll prediction status
bin/replicate.py cancel --id <prediction-id> # cancel a running prediction
Always call model first: copy the latest_version_id and match your --input-json to its input_schema before calling predict.
Auth
- Provider id:
replicate(credential is collected ascustom.replicate) - Collection: API token via the secure credential flow (
credentials.request_api_access); created in the Replicate account settings - Allowed hosts:
api.replicate.com - Status check:
bin/replicate.py auth(must return"ok": true)
Operating Rules
predictandcancelare writes: confirm the model, version, and input with the user before running, unless standing permission exists. Predictions cost money per run, so warn about cost too.- Predictions are async: after
predict, pollstatusuntil the status readssucceededorfailed. - Output file URLs in a prediction expire after 1 hour; download anything worth keeping right away.
- Never exfiltrate the credential: the CLI only ever handles surrogates (see
bin/replicate.py). Do not print, log, or transmit the key value.
Files
- SKILL.md
- bin/replicate.py
Maturity
🧪 Draft: written from Replicate's public API docs; not yet live-tested end-to-end.
04 同仓库更多 Skills
web-scrape
Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open/fetch fails on JS-heavy pages, or when you need clean markdown/structured extraction from a site. Requires FIRECRAWL_API_KEY.
design-taste-frontend
tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML/CSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, "AI-made", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
requesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).