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 superbenefit/sb-marketplace --skill cloudflare-knowledgegit clone --depth 1 https://github.com/superbenefit/sb-marketplaceWrote 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/superbenefit/sb-marketplace/cloudflare-knowledge)<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>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.00034 | $0.01050 |
| Opus 5 | $0.00017 | $0.00525 |
| Sonnet 5 | $0.00007 | $0.00210 |
| Haiku 4.5 | $0.00003 | $0.00105 |
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.
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!
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.
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.
- 7d ago First seen · 121 lines · 34 tokens per session scan A 973ff3d48e7a
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.
Other skills, from other repositories
stripe-projects
Provision SaaS services + sync creds via Stripe Projects.
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"…
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".
workers-best-practices
Cloudflare Workers best practices for production applications. Use when writing, reviewing, or configuring Workers.
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…
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.