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.

Mehr Skills von cloudflare

add-autogate
cloudflare
Schritt-für-Schritt-Anleitung zum Hinzufügen eines neuen Autogate zu workerd für die schrittweise Einführung riskanter Änderungen, einschließlich Enum-Registrierung, String-Mapping, Nutzungsmuster und…
add-autogate
cloudflare
Schritt-für-Schritt-Anleitung zum Hinzufügen eines neuen Autogates zu workerd für die schrittweise Einführung riskanter Änderungen, einschließlich Enum-Registrierung, String-Zuordnung, Nutzungsmuster und…
add-compat-flag
cloudflare
Schritt-für-Schritt-Anleitung zum Hinzufügen eines neuen Kompatibilitätsflags zu workerd, einschließlich capnp-Schema, C++-Nutzung, Tests und Dokumentationsanforderungen.
add-compat-flag
cloudflare
Schritt-für-Schritt-Anleitung zum Hinzufügen eines neuen Kompatibilitätsflags zu workerd, einschließlich capnp-Schema, C++-Verwendung, Tests und Dokumentationsanforderungen.
agents-sdk
cloudflare
Erstellen Sie KI-Agenten auf Cloudflare Workers mit dem Agents SDK. Laden Sie beim Erstellen zustandsbehafteter Agenten, dauerhafter Workflows, Echtzeit-WebSocket-Apps, geplanter Aufgaben,…
architecture
cloudflare
Verwenden beim ersten Navigieren durch die Codebasis, Hinzufügen einer neuen Client-Methode, Hinzufügen eines neuen Container-Handlers/-Dienstes oder Verstehen, wie eine Anfrage fließt…
basin
cloudflare
Cloudflare Basin-Analyse-Workflows mit Basin Pipelines, Basin Catalog und Basin SQL erstellen und Fehler beheben. Verwenden Sie dies, um Streaming-Daten in R2-Iceberg-Tabellen zu übertragen, Kataloge zu verwalten oder diese Tabellen abzufragen; verwenden Sie es auch für Anfragen zu den früheren Bezeichnungen Data Platform, Pipelines, R2 Data Catalog oder R2 SQL.
data-analysisawsdatabase
bazel-test-hygiene
cloudflare
Verbindliche Regeln für die Ausführung von Bazel-Tests während der Entwicklung. Laden Sie diese Fähigkeit, bevor Sie einen Bazel-Testbefehl ausführen, insbesondere bei der Validierung von Korrekturen oder…