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.

npx skills add https://github.com/cloudflare/skills --skill k2

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. K2 is in public beta on the Workers Paid plan; check the overview for current availability and beta storage limits.

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
Reason about duplicates and redeliveryDelivery guaranteesAt-least-once delivery, leases, retention effects
Size a stream or consumerLimitsCurrent quotas and size limits
Estimate costPricingBilling status, data produced, consumed, and retained

Retrieve the matching pages above for each task and use their current examples. For capacity or cost questions, check current limits and pricing before quoting values, and state whether billing is enabled yet.

For SQL transformation and delivery to R2 Iceberg tables, use the basin skill. For task processing, consult Queues.

Skill feedback

If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md.

Más skills de cloudflare

add-autogate
cloudflare
Guía paso a paso para agregar un nuevo autogate a workerd para la implementación gradual de cambios riesgosos, incluyendo registro de enumeraciones, mapeo de cadenas, patrón de uso y…
add-autogate
cloudflare
Guía paso a paso para agregar un nuevo autogate a workerd para la implementación gradual de cambios riesgosos, incluyendo registro de enum, mapeo de strings, patrón de uso y…
add-compat-flag
cloudflare
Guía paso a paso para agregar una nueva bandera de compatibilidad a workerd, incluyendo esquema capnp, uso en C++, pruebas y requisitos de documentación.
add-compat-flag
cloudflare
Guía paso a paso para añadir una nueva flag de compatibilidad a workerd, incluyendo el esquema capnp, el uso en C++, las pruebas y los requisitos de documentación.
agents-sdk
cloudflare
Construye agentes de IA en Cloudflare Workers usando el Agents SDK. Carga al crear agentes con estado, flujos de trabajo duraderos, aplicaciones WebSocket en tiempo real, tareas programadas,…
architecture
cloudflare
Úsalo al navegar por el código base por primera vez, al agregar un nuevo método de cliente, al agregar un nuevo controlador/servicio de contenedor, o al entender cómo fluye una solicitud…
basin
cloudflare
Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL. Use for streaming data into R2 Iceberg tables, managing catalogs, or querying those tables; also use for requests using the former Data Platform, Pipelines, R2 Data Catalog, or R2 SQL names.
data-analysisawsdatabase
bazel-test-hygiene
cloudflare
Reglas obligatorias para ejecutar pruebas de bazel durante el desarrollo. Carga esta skill antes de ejecutar cualquier comando de prueba de bazel, especialmente al validar correcciones o…