Generated banner for K2
Generated logo for K2

K2

CloudflareOfficialPublished by Cloudflare

  • Skill
  • Tool integration
  • Cloud and DevOps
  • Apache-2.0
  • No issues found

From the author

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 description by Cloudflare

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The K2 skill provides guidance on implementing and managing Cloudflare K2 durable logs. It assists users in setting up streams, configuring inputs and retention policies, producing records from Workers or HTTP, and consuming data via subscriptions. The skill relies on official documentation as the source of truth to ensure accurate API usage, limit awareness, and configuration best practices.

What it does

  • Guides users through the initial setup and creation of K2 streams.
  • Provides instructions for producing records from Cloudflare Workers or HTTP endpoints.
  • Explains how to configure stream settings including retention, authentication, and CORS.
  • Assists in implementing consumer subscriptions with lease and acknowledgement logic.
  • Helps troubleshoot stream performance and configuration issues based on platform limits.
  • Facilitates feedback submission to improve the skill's accuracy and content.

When to use it

  • When you need to decouple event producers and consumers using durable logs.
  • When setting up a new K2 stream and requiring configuration guidance.
  • When you encounter errors while producing or consuming records from a stream.
  • When you need to verify current platform quotas, limits, or API syntax for K2.

Advantages

  • Ensures adherence to the latest official documentation and API standards.
  • Provides structured guidance for complex streaming workflows.
  • Helps maintain consistency in stream configuration and resource management.
  • Includes a clear process for reporting and fixing outdated or incorrect information.

Usage examples

“How do I start a new K2 stream?”
The agent will retrieve the latest 'Get started' documentation and provide the necessary steps, prerequisites, and API examples to initialize your stream.
“What are the limits for my K2 stream?”
The agent will reference the platform limits documentation to provide current quotas and sizing constraints for your specific stream configuration.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/cloudflare/k2/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip k2.zip -d .agents/skills

Documentation by Cloudflare

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.

Skill feedback

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

Files

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Cloudflare
Publisher
Cloudflare (Official)
Source
cloudflare/skills · skills/k2 · commit 6eb6c78
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Cloudflare or Cloudflare.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download k2.zip