Skills
Skill 12 of 22
Build and troubleshoot Cloudflare K2 or K2 Streams durable logs.
1 minute · 196 words · 3 sections
Install
npx skills add cloudflare/skills --skill k2npx skills add cloudflare/skills/plugin marketplace add cloudflare/skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
K2 is a durable log for decoupling event producers and consumers. Start with the K2 overview (opens in a new tab), 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 (opens in a new tab) remains open, use its proposed pages if the public URLs have not been published.
| Task | Docs | Check for |
|---|---|---|
| Create a stream and try K2 | Get started (opens in a new tab) | Prerequisites, setup sequence, current API examples |
| Understand streams and subscriptions | Concepts (opens in a new tab) | Record model and delivery behavior |
| Configure a stream | Configuration (opens in a new tab) | Inputs, authentication, CORS, retention |
| Produce from HTTP or a Worker | Produce records (opens in a new tab) | Request and binding syntax, encoding, errors, retries |
| Consume through subscriptions | Consume records (opens in a new tab) | Leases, acknowledgements, retries, errors |
| Size a stream or consumer | Limits (opens in a new tab) | 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 (opens in a new tab).
If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md (opens in a new tab).
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.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 6 November 2026.SKILL.md, not by matching a directory convention. One layout observed: skills/*/SKILL.md.h1 and no skipped levels:.claude-plugin/marketplace.json by Cloudflare, declaring 1 plugin. It is read for editorial metadata only — never as the skill index, which is always the repository tree./cloudflare/skills.md, and each skill at its own .md URL.1 file · 3 KB
Everything this skill ships beside its prose. All of it is set here, as a subchapter of skill 12.
Documentation the agent loads on demand, rather than up front.