K2

by cloudflare41e0d1985894No license3K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 7 days ago

Build and troubleshoot Cloudflare K2 or K2 Streams durable logs. Use for stream setup, producing from Workers or HTTP, configuring retention and inputs, and consuming through subscriptions.

Instructions onlyDevOps & Cloud
AI-generated overview

Guides setting up and troubleshooting Cloudflare K2 durable logs, including streams, producers, retention and subscriptions.

What it does
This skill provides guidance for building and troubleshooting Cloudflare K2 or K2 Streams durable logs. It routes the agent to current Cloudflare documentation for stream creation, configuration, producing records from Workers or HTTP, consuming through subscriptions, and limits. It also points to related resources for SQL transformation and task processing.
When to use it
Use it when setting up K2 streams, producing records from Workers or HTTP, configuring retention and inputs, or consuming records through subscriptions. It is also meant for troubleshooting K2 durable log behavior and checking current limits or availability.
Requirements
Requires access to Cloudflare documentation and, for setup or troubleshooting, a Cloudflare account with K2 access. No scripts are included; it is instructions only.

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

TaskDocsCheck for
Create a stream and try K2Get startedPrerequisites, setup sequence, current API examples
Understand streams and subscriptionsConceptsRecord model and delivery behavior
Configure a streamConfigurationInputs, authentication, CORS, retention
Produce from HTTP or a WorkerProduce recordsRequest and binding syntax, encoding, errors, retries
Consume through subscriptionsConsume recordsLeases, acknowledgements, retries, errors
Size a stream or consumerLimitsCurrent 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.

Source and attribution

Source:cloudflare/skillsinskills/k2at commit41e0d19

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal