DevOps & CloudOfficial · cloudflare

K2 skill for Claude

Build and troubleshoot Cloudflare K2 or K2 Streams durable logs.

When Claude uses it

Use for stream setup, producing from Workers or HTTP, configuring retention and inputs, and consuming through subscriptions.

K2 SKILL.md

The full skill file from cloudflare/skills (Apache-2.0).

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.

How to install K2

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit cloudflare/skills/skills/k2#main ~/.claude/skills/k2

Codex

npx degit cloudflare/skills/skills/k2#main ~/.codex/skills/k2

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the K2 skill do?

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.

+How do I install K2 in Claude Code?

Copy the skill folder into ~/.claude/skills/k2, for example with "npx degit cloudflare/skills/skills/k2#main ~/.claude/skills/k2". Claude Code loads it automatically and uses it when a task matches.

+Does K2 work with ChatGPT or Codex?

Yes. K2 uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/k2. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is K2 free?

K2 is published on GitHub by cloudflare under the Apache-2.0 license, which allows free use.

Related devops & cloud skills

  1. Supabase

    Official

    Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron,…

    supabase/agent-skills★ 3.1k
  2. Senior Architect

    System architecture decisions with a written rationale: monolith vs microservices, database choice, scaling limits, ADRs, Mermaid diagrams.

    alirezarezvani/claude-skills★ 30k
  3. Vercel Deploy

    Official

    Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the…

    openai/skills★ 29k
  4. Nextjs On Cloudflare

    Official

    Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext.

    cloudflare/skills★ 3.4k
  5. Sandbox Migrate To Next

    Official

    Migrate Cloudflare Sandbox apps from stable @cloudflare/sandbox to @cloudflare/sandbox@next (SDK 1.0 preview).

    cloudflare/skills★ 3.4k
  6. Sandbox Next

    Official

    Build or maintain Cloudflare Sandbox apps on @cloudflare/sandbox@next (SDK 1.0 preview).

    cloudflare/skills★ 3.4k
  7. Sandbox Stable

    Official

    Build or maintain Cloudflare Sandbox apps on the stable @cloudflare/sandbox package.

    cloudflare/skills★ 3.4k
  8. Airunway Aks Setup

    Official

    Set up AI Runway on AKS — from bare cluster to running model. Covers cluster verification, controller install, GPU assessment, provider…

    microsoft/skills★ 3.2k
  9. Aks Cost Optimization

    Official

    Analyze advanced AKS cost efficiency. WHEN: \"AKS NAP readiness\", \"AKS bin packing\", \"AKS node scaling bottleneck\", \"AKS blocked…

    microsoft/skills★ 3.2k

See all devops & cloud skills →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.