cloudflare-knowledge

cloudflare-knowledge is a skill for Claude Code from superbenefit/sb-marketplace. It costs 34 tokens per session (1,050 once invoked), scanned A, original, CC0-1.0.

A reference guide to Cloudflare’s platform for building Workers, AI agents, MCP servers, vector search, and scheduled workflows. It describes recommended implementation patterns and required settings.

In plain words
What is it for?
Use it when designing Agent classes, MCP servers, OAuth, vector search, Durable Objects, Workflows, storage bindings, logging, or deployment automation.
Why use it?
It helps developers choose the right Cloudflare approach and avoid configuration or SDK mistakes.

Skill for Claude Code

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

Part of the cloudflare-dev plugin — 1 skill, 4 commands, 3 agents shipped together

Good fit Use it when designing Agent classes, MCP servers, OAuth, vector search, Durable Objects, Workflows, storage bindings, logging, or deployment automation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/superbenefit/sb-marketplace/cloudflare-knowledge
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 superbenefit/sb-marketplace --skill cloudflare-knowledge
Clone the repo
git clone --depth 1 https://github.com/superbenefit/sb-marketplace

Made for: Claude Code.

Or install cloudflare-dev, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 3 agents.

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 cloudflare-knowledge

README.md
[![agentmods](https://agentmods.dev/badge/skills/superbenefit/sb-marketplace/cloudflare-knowledge.svg)](https://agentmods.dev/skills/superbenefit/sb-marketplace/cloudflare-knowledge)
Your own site
<a href="https://agentmods.dev/skills/superbenefit/sb-marketplace/cloudflare-knowledge"><img src="https://agentmods.dev/badge/skills/superbenefit/sb-marketplace/cloudflare-knowledge.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,050 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 original No closer match found 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.00034 $0.01050
Opus 5 $0.00017 $0.00525
Sonnet 5 $0.00007 $0.00210
Haiku 4.5 $0.00003 $0.00105

Measured 7d ago against content hash 973ff3d48e7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

cloudflare-knowledge 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 7d 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.

cloudflare-dev/skills/cloudflare-knowledge/SKILL.md · 121 lines

How it starts

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

Cloudflare Knowledge

Quick Reference

Task Read File Key Constraint
Building Agent class agents-sdk.md new_sqlite_classes in migrations
Agent design patterns agent-patterns.md Use AI SDK with Durable Objects
MCP server (stateless) agents-mcp.md Use createMcpHandler (recommended)
MCP server (stateful) agents-mcp.md Agent + WorkerTransport + createMcpHandler
OAuth / auth patterns auth-deployment.md OAUTH_KV binding required for workers-oauth-provider
Vector search vectorize.md topK ≤20 with metadata, ≤100 without
Durable execution workflows.md Always await step.do(), steps must be idempotent
R2, KV, D1 bindings workers-platform.md Use bindings (not REST APIs), D1 prepared statements
Logging & tracing observability.md observability: { enabled: true } in wrangler.jsonc
CI/CD & deployment auth-deployment.md Workers Builds, GitHub Actions, secrets management

Critical Standards (Always Apply)

// wrangler.jsonc - REQUIRED settings
{
  "compatibility_date": "2025-03-07",  // Minimum for Agents
  "compatibility_flags": ["nodejs_compat"],
  "observability": { "enabled": true }
}

Reranker: MUST Use Batch API

// ✅ CORRECT
await env.AI.run("@cf/baai/bge-reranker-base", {
  query: "search query",
  contexts: [{ text: "passage1" }, { text: "passage2" }],
  top_k: 10
});

// ❌ WRONG - deprecated per-document format
await env.AI.run("@cf/baai/bge-reranker-base", {
  text: ["query", "passage"]
});

D1: MUST Use Prepared Statements

// ✅ CORRECT
env.DB.prepare("SELECT * FROM users WHERE id = ?").bind(userId)

// ❌ WRONG - SQL injection risk
env.DB.prepare(`SELECT * FROM users WHERE id = '${userId}'`)

KV: Eventually Consistent

// ✅ CORRECT - return what you wrote
await env.MY_KV.put("key", newValue);
return Response.json({ value: newValue });

// ❌ WRONG - may return stale data
await env.MY_KV.put("key", newValue);
const readBack = await env.MY_KV.get("key"); // May be stale!

Read the full file on GitHub · 121 lines

Files

What ships with it

8 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.

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. 7d ago First seen · 121 lines · 34 tokens per session scan A 973ff3d48e7a

Subscribe to this mod's changes

cloudflare-knowledge is a skill published in the GitHub repository superbenefit/sb-marketplace (5 stars, last pushed 7mo ago), licensed CC0-1.0. It adds 34 tokens to every session and 1,050 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

stripe-projects

Provision SaaS services + sync creds via Stripe Projects.

NousResearch/hermes-agent · 15 tokens

azure-eventhub-dotnet

Azure Event Hubs SDK for .NET. Use for high-throughput event streaming: sending events (EventHubProducerClient, EventHubBufferedProducerClient), receiving events (EventProcessorClient with checkpointing), partition management, and real-time data ingestion. Triggers: "Event Hubs", "event streaming"…

microsoft/skills · 94 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

workers-best-practices

Cloudflare Workers best practices for production applications. Use when writing, reviewing, or configuring Workers.

cloudflare/skills · 25 tokens

django-storages-s3

Use when configuring Django to store static and media files on AWS S3 with django-storages. Invoke when working with the STORAGES setting, S3 buckets, presigned URLs, CloudFront, or boto3-backed file storage in settings.py. Configures the Django 4.2+ STORAGES dict, public/private custom backends, presigned GET/POST…

Jeffallan/claude-skills · 138 tokens

wikipedia

Search and read Wikipedia via x wkp — MediaWiki API, no API key, zero install; query, extract, suggest, and DDG route in one module. Load for wiki, wikipedia, encyclopedia lookup, article summary.

x-cmd/x-cmd · 49 tokens