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.
npx skills add secondsky/claude-skills --skill cloudflare-kvgit clone --depth 1 https://github.com/secondsky/claude-skillsWrote 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.
[](https://agentmods.dev/skills/secondsky/claude-skills/cloudflare-kv)<a href="https://agentmods.dev/skills/secondsky/claude-skills/cloudflare-kv"><img src="https://agentmods.dev/badge/skills/secondsky/claude-skills/cloudflare-kv/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.
<a href="https://agentmods.dev/skills/secondsky/claude-skills/cloudflare-kv"><img src="https://agentmods.dev/badge/skills/secondsky/claude-skills/cloudflare-kv.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.02483 |
| Opus 5 | $0.00017 | $0.01241 |
| Sonnet 5 | $0.00007 | $0.00497 |
| Haiku 4.5 | $0.00003 | $0.00248 |
Grade A, and why
cloudflare-kv scanned grade A with 1 finding 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 5d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
async fetch(request, env, ctx) { How it starts
The opening of the file, as written. The whole thing — 393 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cloudflare Workers KV
Status: Production Ready ✅ | Last Verified: 2025-12-27
What Is Workers KV?
Global key-value storage on Cloudflare edge:
- Eventually consistent
- Low latency worldwide
- 1GB+ values supported
- TTL expiration
- Metadata support
Quick Start (5 Minutes)
1. Create KV Namespace
bunx wrangler kv namespace create MY_NAMESPACE
bunx wrangler kv namespace create MY_NAMESPACE --preview
2. Configure Binding
{
"name": "my-worker",
"main": "src/index.ts",
"compatibility_date": "2025-10-11",
"kv_namespaces": [
{
"binding": "MY_NAMESPACE",
"id": "<PRODUCTION_ID>",
"preview_id": "<PREVIEW_ID>"
}
]
}
3. Basic Operations
export default {
async fetch(request, env, ctx) {
// Write
await env.MY_NAMESPACE.put('key', 'value');
// Read
const value = await env.MY_NAMESPACE.get('key');
// Delete
await env.MY_NAMESPACE.delete('key');
return new Response(value);
}
};
Load references/setup-guide.md for complete setup.
KV API Methods
put() - Write
// Basic
await env.MY_NAMESPACE.put('key', 'value');
// With TTL (1 hour)
await env.MY_NAMESPACE.put('key', 'value', {
expirationTtl: 3600
});
// With expiration timestamp
await env.MY_NAMESPACE.put('key', 'value', {
expiration: Math.floor(Date.now() / 1000) + 3600
});
// With metadata
await env.MY_NAMESPACE.put('key', 'value', {
metadata: { role: 'admin', created: Date.now() }
});
get() - Read
// Simple get
const value = await env.MY_NAMESPACE.get('key');
// With type
const text = await env.MY_NAMESPACE.get('key', 'text');
const json = await env.MY_NAMESPACE.get('key', 'json');
const buffer = await env.MY_NAMESPACE.get('key', 'arrayBuffer');
const stream = await env.MY_NAMESPACE.get('key', 'stream');
// With metadata
const { value, metadata } = await env.MY_NAMESPACE.getWithMetadata('key');
delete() - Remove
What ships with it
30 files 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.
- agents/kv-debugger.md 11 KB
- agents/kv-optimizer.md 8.5 KB
- commands/optimize-kv.md 7.6 KB
- commands/setup-kv.md 4.2 KB
- commands/test-kv.md 5.1 KB
- examples/api-caching/index.ts 7.4 KB runs code
- examples/api-caching/wrangler.jsonc 572 B
- examples/config-management/index.ts 9.2 KB runs code
- examples/config-management/wrangler.jsonc 569 B
- examples/rate-limiting/index.ts 9.2 KB runs code
- examples/rate-limiting/wrangler.jsonc 1.2 KB
- examples/session-management/index.ts 10 KB runs code
- examples/session-management/wrangler.jsonc 1.4 KB
- references/best-practices.md 14 KB
- references/limits-quotas.md 8.2 KB
- references/migration-guide.md 15 KB
- references/performance-tuning.md 17 KB
- references/setup-guide.md 1.6 KB
- references/troubleshooting.md 11 KB
- references/workers-api.md 11 KB
- scripts/analyze-kv-usage.sh 8.5 KB runs code
- scripts/check-versions.sh 2.3 KB runs code
- scripts/setup-kv-namespace.sh 4.3 KB runs code
- scripts/test-kv-connection.sh 4.1 KB runs code
- scripts/validate-kv-config.sh 5.0 KB runs code
- templates/kv-basic-operations.ts 11 KB runs code
- templates/kv-caching-pattern.ts 12 KB runs code
- templates/kv-list-pagination.ts 12 KB runs code
- templates/kv-metadata-pattern.ts 13 KB runs code
- templates/wrangler-kv-config.jsonc 1.6 KB
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.
- 5d ago First seen · 393 lines · 35 tokens per session scan A cb9515dbe508
cloudflare-kv is a skill published in the GitHub repository secondsky/claude-skills (216 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 2,483 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
remember
Record why something is the way it is — a decision and its reasoning, a lesson that cost time, or a standing constraint. Use when the reasoning behind a choice would be expensive to reconstruct later.
bootstrap
Set up chamnan in this repository for the first time — build the architecture index, measure how well the code describes itself, fill in missing file comments, and record a baseline. Run once per repo.
resume
Write down where this stretch of work stopped, so the next session continues instead of restarting. Use at the end of a working session, or when handing the repository to someone else.
milestone
Record a change that reshaped the repository — what moved, why it was worth doing, and which areas it touched. Use after a migration, a rewrite, or a decision that changed how part of the system works.
capture
Write down a procedure worth keeping — a multi-step process, a trap that cost real time, or something that has now come up three times. Use it the moment you finish such a task, while the details are still exact.
promote
Turn a scratch script into a permanent tool this repo keeps. Use when a check, report, or analysis has proved worth running more than once.