replicate-handler
在应用中运行 Replicate 模型
当任务以不同速度完成时,Replicate 集成可能会变得不清晰。此技能为 Claude、Codex 和 Claude Code 提供快速运行、轮询和类型化响应的实用模式。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "replicate-handler" from https://skillstore.io/skills/aayushbaniya2006-replicate-handler.md and its manifest at https://skillstore.io/api/skills/aayushbaniya2006-replicate-handler/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“replicate-handler”。 请求一个快速的 Replicate 图像生成模式。
预期结果:
一份简洁计划,涵盖 SDK 设置、token 配置、模型选择、输入准备和结果处理。
正在使用“replicate-handler”。 询问如何处理长时间运行的 Replicate 视频任务。
预期结果:
一个轮询工作流,使用持久等待步骤、状态检查、失败处理和最终输出交付。
正在使用“replicate-handler”。 询问应预期哪些 Replicate 响应类型。
预期结果:
用通俗语言总结 prediction status、output fields、errors、logs、webhooks 和 training references。
安全审计
安全The audited files are a Replicate SDK usage guide and a TypeScript type reference. The static command, network, and sensitive-file alerts are explained by Markdown formatting, TypeScript syntax, or intended SDK authentication. No evidence of malware, prompt injection, credential exfiltration, or system reconnaissance was found.
风险因素
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/aayushbaniya2006-replicate-handler/audits/11?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/aayushbaniya2006-replicate-handler?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/aayushbaniya2006-replicate-handler?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/aayushbaniya2006-replicate-handler/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/aayushbaniya2006-replicate-handler.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
AayushBaniya2006. (2026). replicate-handler security audit report (audit version 11) [Author version unspecified]. Skillstore. https://skillstore.io/skills/aayushbaniya2006-replicate-handler/audits/11BibTeX 引用
@techreport{aayushbaniya2006-aayushbaniya2006-replicate-handler-2026,
author = {AayushBaniya2006},
title = {replicate-handler security audit report (audit version 11)},
institution = {Skillstore},
year = {2026},
number = {11},
url = {https://skillstore.io/skills/aayushbaniya2006-replicate-handler/audits/11},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "replicate-handler security audit report (audit version 11)"
version: "unspecified"
type: report
authors:
- name: "AayushBaniya2006"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/aayushbaniya2006-replicate-handler/audits/11"
identifiers:
- type: other
value: "skillstore:aayushbaniya2006-replicate-handler:audit:11"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
添加图像生成
使用快速运行模式,从 TypeScript 功能中调用图像模型。
构建持久的视频任务
当模型输出可能超过一次请求的时长时,使用轮询模式。
为 Replicate 响应添加类型
使用参考文件了解 prediction、webhook 和 training 的结构。
试试这些提示
使用 replicate-handler 技能说明在我的 TypeScript 应用中使用 Replicate 的最低配置。
使用 replicate-handler 技能,为短时图像生成任务调整一个快速 Replicate 运行模式。
使用 replicate-handler 技能,为长时间运行的 Replicate 视频任务设计一个 Inngest 轮询流程。
使用 replicate-handler 技能,审查我的 Replicate 集成计划,包括响应类型、webhooks 和失败处理。
最佳实践
- 将 REPLICATE_API_TOKEN 存储在源代码控制之外,并在泄露时轮换它。
- 仅对能在请求时间限制内完成的任务使用快速运行。
- 使用持久步骤和清晰的失败处理来轮询长时间运行的 predictions。
避免
- 不要将 Replicate tokens 粘贴到 prompts、logs 或源文件中。
- 不要在没有速率限制或用户确认的情况下运行昂贵模型。
- 不要在忙循环中轮询或阻塞服务器资源。
常见问题
这个技能能帮助什么?
它会自行运行 Replicate 模型吗?
它期望使用哪个 API token?
什么时候应该使用轮询?
它包含 webhook 指导吗?
它能帮助 Claude Code 和 Codex 吗?
开发者详情
许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
0519034dad657fb1f7706e0550e962beeda73fdf
维护新鲜度
2026/7/25
使用量
8 次下载 · 189 次浏览
文件结构
📄 SKILL.md