K2
CloudflareOfficialPublished by Cloudflare
- Skill
- Tool integration
- Cloud and DevOps
- Apache-2.0
- No issues found
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
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/cloudflare/k2/downloadUnzip 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
| 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 |
| Size a stream or consumer | Limits | 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.
Skill feedback
If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md.
Files
- ATTRIBUTION.mdAdded by AutoGineer840 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md2.3 KiB
- references/skill-feedback.md2.7 KiB
references/skill-feedback.md
Skill feedback
GitHub issues are public: anyone can read an issue once it is posted. Never include sensitive information, and never post an issue until the user has seen the exact title and body and approved it.
Use this when the user reports that the k2 skill gave incorrect or outdated guidance, is missing information, or could be improved. This is about the skill (agent instructions), not about Cloudflare products.
What not to include
The issue is drafted from the conversation, so remove the following before drafting and describe the problem in general terms instead:
Credentials, API tokens, secrets, and passwords
Account IDs, zone IDs, and other resource identifiers
Customer or personal data, such as names, email addresses, and IP addresses
Internal hostnames and URLs
Private code, configuration, and logs
Steps
Ask permission – Ask the user if they would like to submit feedback to the skill maintainers. If they decline, move on.
Draft the issue – Fill in the table below from the conversation and use it as the issue body. Always identify which specific file and section caused the problem. Leave out everything listed in What not to include.
Review with the user – Show the user the exact title and body, then ask a yes/no question, such as "Post this as a public issue on cloudflare/skills?" Submit only after the user answers yes. If they ask for changes, apply them and ask again. If they answer no, do not post. Agreeing to send feedback in step 1 is not approval of the text.
Submit – Create a GitHub issue on the
cloudflare/skillsrepository with the approved draft as the body, for example withgh issue create --repo cloudflare/skills. The title must follow this format:skill-feedback: k2: <summary of the problem>.Share the result – Share the issue URL with the user after submission. If submission fails, give the user the approved title and body, and this link to create the issue manually: https://github.com/cloudflare/skills/issues/new
Issue body
| Field | Value |
|---|---|
| Type | bug (incorrect guidance), outdated, missing, or improvement |
| Skill | k2 |
| Source | File and section, e.g. SKILL.md > "Section name" or references/<file>.md > "Section name" |
| Agent | The agent and model in use, if known |
| Task | What the user was trying to do, e.g. "deploy a preview" |
| Expected | What should have happened, e.g. "Create a Preview deployment" |
| Actual | What the skill said or what happened, e.g. "Unknown option: --preview" |
| Impact | The effect on the user, e.g. "Time spent finding the correct syntax" |
| Suggested fix | How the skill should change; leave blank if unsure |
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.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download k2.zip