cf-dev

cf-dev is a command for coding agents from superbenefit/sb-marketplace. It costs 25 tokens per session (967 once invoked), scanned A, original, CC0-1.0.

A primary development command for Cloudflare projects. It loads guidance for the relevant Cloudflare service and checks proposed work against current platform practices.

In plain words
What is it for?
Use it when developing Agents, MCP servers, vector search, Workers, storage integrations, Workflows, OAuth, deployment processes, or logging and tracing.
Why use it?
It helps developers follow the appropriate implementation pattern for the specific Cloudflare feature they are building.

Command

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

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.

agentmods
npx agentmods add commands/superbenefit/sb-marketplace/cf-dev
Clone the repo
git clone --depth 1 https://github.com/superbenefit/sb-marketplace

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 cf-dev

README.md
[![agentmods](https://agentmods.dev/badge/commands/superbenefit/sb-marketplace/cf-dev.svg)](https://agentmods.dev/commands/superbenefit/sb-marketplace/cf-dev)
Your own site
<a href="https://agentmods.dev/commands/superbenefit/sb-marketplace/cf-dev"><img src="https://agentmods.dev/badge/commands/superbenefit/sb-marketplace/cf-dev.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 967 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00025 $0.00967
Opus 5 $0.00013 $0.00483
Sonnet 5 $0.00005 $0.00193
Haiku 4.5 $0.00003 $0.00097

Measured 3d ago against content hash d9e094975fe3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cf-dev 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 3d 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/commands/cf-dev.md · 84 lines

How it starts

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

Cloudflare Development Workflow

You are working on a Cloudflare project. Follow this workflow for all implementation tasks.

Step 1: Load Context

Read the relevant reference file(s) from the cloudflare-knowledge skill based on the task:

Task Type Reference File Key Focus
Agent class, state, WebSocket agents-sdk.md new_sqlite_classes in migrations
AI agent design patterns agent-patterns.md Pattern selection guide
MCP server or client agents-mcp.md createMcpHandler (recommended)
Vector search, RAG, embeddings vectorize.md topK limits per returnMetadata
Durable execution, retries workflows.md Always await step.do()
Workers, R2, KV, D1, bindings workers-platform.md Use bindings, not REST API
OAuth, CI/CD, secrets, deploys auth-deployment.md workers-oauth-provider patterns
Logs, traces, analytics observability.md observability: { enabled: true }

Reference files are located at: ${CLAUDE_PLUGIN_ROOT}/skills/cloudflare-knowledge/references/

Step 2: Verify with Cloudflare Docs MCP

Before implementing any pattern, verify the current API against the cloudflare-docs MCP server:

Recommended MCP queries by task:

  • Agents: "Agents SDK Agent class API", "Agents SDK state management"
  • MCP servers: "createMcpHandler MCP server", "workers-oauth-provider"
  • Storage: "R2 Workers API put get", "KV Workers API", "D1 prepared statements"
  • Vectorize: "Vectorize query API topK", "Workers AI reranker"
  • Workflows: "Workflows step.do", "Workflows waitForEvent"
  • Observability: "Workers observability traces", "Analytics Engine writeDataPoint"
  • Deployment: "Workers Builds", "wrangler secret"

Step 3: Implement

Follow the validated patterns from Steps 1-2. Apply these critical standards to ALL code:

Mandatory Configuration (wrangler.jsonc)

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

Read the full file on GitHub · 84 lines

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. 3d ago First seen · 84 lines · 25 tokens per session scan A d9e094975fe3

Subscribe to this mod's changes

cf-dev is a command published in the GitHub repository superbenefit/sb-marketplace (5 stars, last pushed 7mo ago), licensed CC0-1.0. It adds 25 tokens to every session and 967 once invoked, about $0.0001 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.