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 agentmods add skills/null-shot/cloudflare-skills/kvnpx skills add null-shot/cloudflare-skills --skill kvgit clone --depth 1 https://github.com/null-shot/cloudflare-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/null-shot/cloudflare-skills/kv)<a href="https://agentmods.dev/skills/null-shot/cloudflare-skills/kv"><img src="https://agentmods.dev/badge/skills/null-shot/cloudflare-skills/kv.svg" alt="Measured on agentmods" height="20"></a>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.00042 | $0.02199 |
| Opus 5 | $0.00021 | $0.01099 |
| Sonnet 5 | $0.00008 | $0.00440 |
| Haiku 4.5 | $0.00004 | $0.00220 |
Grade A, and why
kv 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 341 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Workers KV
Fast, eventually-consistent key-value storage distributed globally across Cloudflare's edge network.
FIRST: Create KV Namespace
# Create namespace
wrangler kv namespace create MY_KV
# Create preview namespace for dev
wrangler kv namespace create MY_KV --preview
# Add to wrangler.jsonc (use IDs from commands above)
When to Use
| Use Case | Why KV |
|---|---|
| Session storage | Fast token/session lookups at the edge |
| Caching | Cache API responses, rendered HTML, or computed results |
| Configuration data | Feature flags, app settings, rate limit counters |
| User profiles | Store user preferences, settings, metadata |
| A/B testing | Store experiment assignments and feature toggles |
| Rate limiting | Track request counts per user/IP with TTL |
Don't use KV for:
- Strongly consistent data (use Durable Objects)
- Relational queries (use D1)
- Large files >25MB (use R2)
- Transactional operations
Quick Reference
| Operation | API | Example |
|---|---|---|
| Read value | get(key) |
await env.KV.get("user:123") |
| Read with metadata | getWithMetadata(key) |
await env.KV.getWithMetadata("key", "json") |
| Write value | put(key, value, options) |
await env.KV.put("key", "value", { expirationTtl: 3600 }) |
| Delete value | delete(key) |
await env.KV.delete("key") |
| List keys | list(options) |
await env.KV.list({ prefix: "user:" }) |
Value Types
// String (default)
await env.KV.get("key")
// JSON (auto-parse)
await env.KV.get("user:123", "json")
// Binary
await env.KV.get("image", "arrayBuffer")
// Stream
await env.KV.get("large-file", "stream")
wrangler.jsonc Configuration
{
"name": "my-worker",
"main": "src/index.ts",
"compatibility_date": "2026-01-01",
"kv_namespaces": [
{
"binding": "AUTH_TOKENS",
"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"preview_id": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
},
{
"binding": "CACHE",
"id": "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
}
]
}
What ships with it
3 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.
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 · 341 lines · 42 tokens per session scan A 5afb63c32129
kv is a skill published in the GitHub repository null-shot/cloudflare-skills (0 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 42 tokens to every session and 2,199 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.
Other skills, from other repositories
pinecone
Managed vector DB for production RAG and search.
redis-inspect
Inspect Redis cache keys, values, and TTLs for debugging. Supports both main cache and system cache. Use for debugging cache issues, checking cached values, and monitoring cache state. Read-only by default.
redis-js
Work with the Upstash Redis JavaScript/TypeScript SDK for serverless Redis operations. Use for caching, session storage, rate limiting, leaderboards, full-text search (querying, filtering, aggregating with @upstash/redis search extension), and all Redis data structures. Supports automatic serialization/deserialization…
using-redis-token-buckets
Use when adding a bucket-like rate limit backed by Redis: a per-caller budget with burst capacity and continuous refill, a refund path for requests that did no work, or a limit whose Retry-After must be a real wait rather than a window edge. posthog/tokenbucket.py provides an atomic Lua token bucket (consume, refund…
byted-milvus
Manages Milvus on Volcano Engine (Volcengine): provision/inspect/scale/delete clusters and run collection + CRUD/search operations via bundled CLIs. Use when the user mentions Milvus + Volcengine/Volcano Engine or asks to operate Milvus there.
vector-db
Vector database expert for embeddings, similarity search, RAG patterns, and indexing strategies.