k2

k2 is a skill for Claude Code from fcakyon/claude-codex-settings. It costs 38 tokens per session (501 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 — 19 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,226 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 19 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 501 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.00501
Opus 5.5 $0.00015 $0.00200
Sonnet 5.5 $0.00008 $0.00100
Haiku 4.5 $0.00004 $0.00050

Measured 1mo ago against content hash 2c6231d0bc08, 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 1mo 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 — 7 lines 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 · 29 lines

How it starts

The opening of the file, as written. The whole thing — 29 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 29 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +4 lines 2c6231d0bc08
  2. 2mo 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,226 stars, last pushed yesterday), licensed Apache-2.0. It adds 38 tokens to every session and 501 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 7 lines, and is treated as a copy.

Related

k2 compared with skills from other repositories

k2 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
k2fcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A38Claude Code
lov-optimize-tauri-backendlovstudio/skillsSkill72todayMITA71Claude Code
lov-cli2anythinglovstudio/skillsSkill72todayMITA55Claude Code
lov-cli-creatorlovstudio/skillsSkill72todayMITA58Claude Code
lov-api-creatorlovstudio/skillsSkill72todayMITA75Claude Code
lov-integrate-lovstudio-llm-skilllovstudio/skillsSkill72todayMITA78Claude Code
lov-backendlovstudio/skillsSkill72todayMITA82Claude Code