Skip to content

k2

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

— (0 ratings) 48.9K downloads cloudflare
$ npx skills add https://github.com/cloudflare/skills --skill k2

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

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

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
Reason about duplicates and redelivery Delivery guarantees At-least-once delivery, leases, retention effects
Size a stream or consumer Limits Current quotas and size limits
Estimate cost Pricing Billing 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.


Installs: 48.9K | GitHub stars: 3.5K | First seen: Oct 1, 2026

Related skills

New

Debugging & code review

diagnosing-bugs

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.

New • 987.9K
New

Coding & dev tools

code-review

Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding

New • 951K
New

Agent workflows

microsoft-foundry

End-to-end deployment, evaluation, and management of AI agents on Microsoft Foundry.

New • 792.7K