k2

k2 is a skill for Claude Code from fcakyon/claude-codex-settings. It costs 38 tokens per session (465 once invoked), scanned A, a copy of k2, Apache-2.0.

A guide for using Cloudflare K2, a durable log that stores events so separate programs can produce and consume them independently.

In plain words
What is it for?
Use it to create streams, send records from HTTP or Workers, configure retention, and read records through subscriptions.
Why use it?
It provides current instructions for setup, permissions, retention, delivery, retries, and limits instead of relying on outdated API details.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cloudflare-skills plugin — 16 skills shipped together

Good fit Use it to create streams, send records from HTTP or Workers, configure retention, and read records through subscriptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fcakyon/claude-codex-settings/k2
About the project

claude-codex-settings is a collection of configurations and reusable extensions for Claude Code, OpenAI Codex, Cursor, and related coding tools. Developers use its skills, commands, hooks, agents, plugins, and MCP servers to shape coding-agent workflows and connect alternative model APIs. The catalogue entries are components of this collection that can be installed into supported coding tools.

fcakyon/claude-codex-settings · 1,181 stars · on GitHub · claudesettings.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fcakyon/claude-codex-settings --skill k2
Clone the repo
git clone --depth 1 https://github.com/fcakyon/claude-codex-settings

Made for: Claude Code.

Or install cloudflare-skills, the plugin that ships this one along with the rest of its 16 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for k2

README.md
[![agentmods](https://agentmods.dev/badge/skills/fcakyon/claude-codex-settings/k2/github.svg)](https://agentmods.dev/skills/fcakyon/claude-codex-settings/k2)
Your own site
<a href="https://agentmods.dev/skills/fcakyon/claude-codex-settings/k2"><img src="https://agentmods.dev/badge/skills/fcakyon/claude-codex-settings/k2/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for k2

Your own site · 80×15
<a href="https://agentmods.dev/skills/fcakyon/claude-codex-settings/k2"><img src="https://agentmods.dev/badge/skills/fcakyon/claude-codex-settings/k2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 465 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 98% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00465
Opus 5.5 $0.00015 $0.00186
Sonnet 5.5 $0.00008 $0.00093
Haiku 4.5 $0.00004 $0.00047

Measured 17d ago against content hash d422b133adcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

k2 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

98% identical to k2 — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/cloudflare-skills/skills/k2/SKILL.md · 25 lines

What it actually says

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago First seen · 25 lines · 38 tokens per session scan A d422b133adcf

Subscribe to this mod's changes

k2 is a skill published in the GitHub repository fcakyon/claude-codex-settings (1,181 stars, last pushed yesterday), licensed Apache-2.0. It adds 38 tokens to every session and 465 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 98% identical to k2, differing in 1 line, and is treated as a copy.

Related

Other skills, from other repositories

lov-optimize-tauri-backend

Optimize Tauri backend architecture and development ergonomics for Tauri 2 apps, especially Rust restart pain, oversized src-tauri/src/lib.rs files, excessive #[tauri::command] surfaces, stringly invoke APIs, long IPC streams, and dev-state recovery. Use when the user asks about Tauri hot reload, Rust-side restarts…

lovstudio/skills · 125 tokens

lov-cli-creator

A tool-building workflow that turns a local project into an installable command-line program. The program exposes the project's real backend, returns predictable JSON, documents how it works, and includes runnable tests.

lovstudio/skills · 58 tokens

lov-cli2anything

A tool for turning authorized observations of a website’s API into an OpenAPI description, Swagger interface, JavaScript SDK, or local command-line tool. OpenAPI is a machine-readable description of how an API can be called.

lovstudio/skills · 55 tokens

lov-api-creator

A development workflow for adding an app's API gateway support to a uni-api FastAPI backend and its uni-app frontend. It creates grouped gateway endpoints and a shared frontend calling layer.

lovstudio/skills · 75 tokens

lov-integrate-lovstudio-llm-skill

An integration with LovStudio.AI’s OpenAI-compatible API for text chat, speech-to-text, speech translation, speech generation, and live audio sessions. It returns structured results that other application code can use.

lovstudio/skills · 78 tokens

lov-backend

A backend workflow for adding an app's API gateway endpoints to a uni-api project built with FastAPI. It creates the app's package and router, registers them, and places the endpoints in a documented group.

lovstudio/skills · 82 tokens