k2

作成者: cloudflare

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.

cloudflareのその他のスキル

add-autogate
cloudflare
新たなautogateをworkerdに追加して、リスクのある変更を段階的にロールアウトするためのステップバイステップガイド。enum登録、文字列マッピング、使用パターンなどを含む…
add-autogate
cloudflare
リスクの高い変更を段階的にロールアウトするために、workerdに新しいオートゲートを追加するためのステップバイステップガイド。列挙型の登録、文字列マッピング、使用パターンなどを含みます。
add-compat-flag
cloudflare
workerdに新しい互換性フラグを追加するためのステップバイステップガイド。capnpスキーマ、C++での使用法、テスト、およびドキュメント要件を含む。
add-compat-flag
cloudflare
workerdに新しい互換性フラグを追加するためのステップバイステップガイド。capnpスキーマ、C++の使用、テスト、ドキュメント要件を含む。
agents-sdk
cloudflare
Cloudflare Workers上でAgents SDKを使用してAIエージェントを構築します。ステートフルなエージェント、耐久性のあるワークフロー、リアルタイムWebSocketアプリ、スケジュールタスクを作成する際に読み込んでください…
architecture
cloudflare
コードベースを初めてナビゲートするとき、新しいクライアントメソッドを追加するとき、新しいコンテナハンドラ/サービスを追加するとき、またはリクエストの流れを理解するときに使用します…
basin
cloudflare
Basin Pipelines、Basin Catalog、Basin SQL を使用して、Cloudflare Basin の分析ワークフローを構築し、トラブルシューティングします。ストリーミングデータを R2 Iceberg テーブルに取り込む、カタログを管理する、またはそれらのテーブルをクエリする場合に使用します。また、旧称の Data Platform、Pipelines、R2 Data Catalog、R2 SQL を使用したリクエストにも対応します。
data-analysisawsdatabase
bazel-test-hygiene
cloudflare
開発中にbazelテストを実行するための必須ルール。特に修正の検証時など、bazelテストコマンドを実行する前にこのスキルをロードしてください。