k2
该 Skill 用于构建和排查 Cloudflare K2 及 K2 Streams 持久化日志服务。它覆盖流的创建与配置、从 Workers 或 HTTP 生产记录、设置保留策略与输入认证,以及通过订阅消费记录。适合在事件驱动架构中解耦生产者与消费者,并快速定位容量、配额与投递行为问题。
npx skills add https://github.com/cloudflare/skills --skill k2Before / After 效果对比
1 组开发者要在多个文档页之间反复切换,手动比对流的输入认证、保留策略与订阅租约语义,常常写下已经过时的 API 示例,最后在调试投递失败上耗费大量时间。
此技能按任务直接定位对应的当前文档页,给出生产与消费的可用示例,并明确说明配额与投递行为,让流从创建到订阅消费一次跑通。
Cloudflare K2
K2 is a durable log for decoupling event producers and consumers. Start with the K2 overview, then retrieve the relevant current documentation before giving setup instructions, code, limits, availability, permissions, or API details. The docs are the source of truth over this skill. While cloudflare-docs PR #33858 remains open, use its proposed pages if the public URLs have not been published.
Documentation
| Task | Docs | Check for |
|---|---|---|
| Create a stream and try K2 | Get started | Prerequisites, setup sequence, current API examples |
| Understand streams and subscriptions | Concepts | Record model and delivery behavior |
| Configure a stream | Configuration | Inputs, authentication, CORS, retention |
| Produce from HTTP or a Worker | Produce records | Request and binding syntax, encoding, errors, retries |
| Consume through subscriptions | Consume records | Leases, acknowledgements, retries, errors |
| Size a stream or consumer | Limits | Current quotas and size limits |
Retrieve the matching pages above for each task and use their current examples. For capacity or cost questions, check current limits and any published pricing before quoting values. State when a requested pricing or availability detail is not yet published.
For SQL transformation and delivery to R2 Iceberg tables, use the basin skill. For task processing, consult Queues.
用户评价 (0)
发表评价
暂无评价
统计数据
用户评分
为此 Skill 评分