workers

workers is a cursor rule for Cursor from cloudflare/skills. It costs 18 tokens per session (376 once invoked), scanned A, original, Apache-2.0.

A set of rules for developing applications on Cloudflare Workers, Cloudflare’s platform for running server code at the network edge.

In plain words
What is it for?
Use it when developing or deploying Workers applications, configuring services such as KV, R2, D1, or Queues, generating types, and diagnosing runtime or resource-limit errors.
Why use it?
It tells the agent to check current Cloudflare documentation for APIs, limits, and deployment details that may change over time.

Cursor rule for Cursor ✓ vendor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when developing or deploying Workers applications, configuring services such as KV, R2, D1, or Queues, generating types, and diagnosing runtime or resource-limit errors.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/cloudflare/skills/workers
About the project

Cloudflare Skills is a collection of instructions and tools that help coding agents build on Cloudflare Workers, the Agents SDK, and other Cloudflare developer services. It is for agents and developers using Cloudflare’s platform. The catalogue entries package the project’s guidance as skills, commands, rules, plugins, and MCP tools.

cloudflare/skills · 3,079 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/cloudflare/skills

Made for: Cursor.

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 workers

README.md
[![agentmods](https://agentmods.dev/badge/rules/cloudflare/skills/workers/github.svg)](https://agentmods.dev/rules/cloudflare/skills/workers)
Your own site
<a href="https://agentmods.dev/rules/cloudflare/skills/workers"><img src="https://agentmods.dev/badge/rules/cloudflare/skills/workers/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.

agentmods 80×15 button for workers

Your own site · 80×15
<a href="https://agentmods.dev/rules/cloudflare/skills/workers"><img src="https://agentmods.dev/badge/rules/cloudflare/skills/workers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 376 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.00018 $0.00376
Opus 5.5 $0.00007 $0.00150
Sonnet 5.5 $0.00004 $0.00075
Haiku 4.5 $0.00002 $0.00038

Measured 15d ago against content hash dd0f482da007, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

workers 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 15d 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.

rules/workers.mdc · 21 lines

What it actually says

Cloudflare Workers

Your knowledge of Cloudflare Workers APIs, types, and configuration may be outdated. Prefer retrieval over pre-training. Use the project's installed versions, generated types, and compatibility settings as the baseline. Retrieve relevant Cloudflare documentation to verify API, configuration, runtime behavior, and limit claims.

Workers Defaults

  • Keep compatibility dates current. Use today's date for new Workers. Encourage periodic updates for existing Workers, reviewing compatibility changes and running relevant tests.
  • Enable logs and traces. When creating or preparing a Worker for production, set observability.enabled and observability.traces.enabled to true. The top-level setting alone does not enable traces. Use structured JSON logging and configure sampling for the workload. During reviews, flag missing logs or traces. See Workers Logs and Traces.
  • Keep binding types in sync. Run wrangler types after changing bindings in the project's Wrangler configuration, whether JSONC, JSON, or TOML.

Shared Guidance

  • Use workers-best-practices for runtime patterns, anti-patterns, configuration, and platform API checks. Read the references relevant to the task.
  • Use wrangler for CLI commands and deployment configuration.
  • Find documentation for products used by the Worker in the Cloudflare docs directory. Verify limits and quotas against the affected product's documentation.
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. 15d ago Changed dd0f482da007
  2. 1mo ago Changed · -40 lines · +18 tokens per session fd3e372513d2
  3. 1mo ago Changed 06ccac0eed3f
  4. 1mo ago First seen · 61 lines · 0 tokens per session scan A b5443d6c57c0

Subscribe to this mod's changes

workers is a cursor rule published in the GitHub repository cloudflare/skills (3,079 stars, last pushed yesterday), licensed Apache-2.0. It adds 18 tokens to every session and 376 once invoked, about $0.0001 per session on Opus 5.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-30.