agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/cloudflare-workers/SKILL.md

cloudflare-workers

Skill13 starsChanged 26 days agoMITView on GitHub

Build serverless applications and deploy globally across the Cloudflare edge network. - deno-deploy (Score: 0.82) Why: Direct relationship, Both are Cloud, Shared ecosystem (javascript), Similar network profile - drizzle (Score: 0.8) Why: Direct relationship, Both are Developer Tools, Can deploy to cloudflare - hono (Score: 0.72) Why: Direct relationship, Shared ecosystem (javascript), Can deploy to cloudflare, Similar network profile

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use wrangler secret put to securely store API keys.

    line 44
  2. Distinctive:

    Use this when your agent works with cloudflare-workers — structured patterns beat pasted docs and prevent common hallucinations.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cloudflare Workers Skill

Build serverless applications and deploy globally across the Cloudflare edge network.

Ecosystem Graph Preview

graph LR
  cloudflare-workers["cloudflare-workers"]:::core
  classDef core fill:#f9f,stroke:#333,stroke-width:4px;
  cloudflare-workers -- "works well with" --> hono
  cloudflare-workers -- "integrates with" --> drizzle
  deno-deploy -- "alternative to" --> cloudflare-workers

Recommended Next Skills

  • deno-deploy (Score: 0.82) Why: Direct relationship, Both are Cloud, Shared ecosystem (javascript), Similar network profile
  • drizzle (Score: 0.8) Why: Direct relationship, Both are Developer Tools, Can deploy to cloudflare
  • hono (Score: 0.72) Why: Direct relationship, Shared ecosystem (javascript), Can deploy to cloudflare, Similar network profile

Quick Start

Workers run V8 isolates, meaning there are virtually zero cold starts compared to AWS Lambda. Your code executes physically close to the user in hundreds of data centers globally.

npm create cloudflare@latest

Production Patterns

KV and Durable Objects

Workers are stateless. To persist data at the edge, use Cloudflare KV for read-heavy eventual consistency, or Durable Objects for strongly consistent transactional state (like WebSockets or counters).

Architecture & Scaling

Web Standard APIs

Workers do not run Node.js (though compatibility is improving). You must use Web Standard APIs (fetch, Request, Response, crypto.subtle). Avoid libraries that depend heavily on fs or native Node C++ bindings.

Error Recovery

Workers have strict CPU time limits (e.g., 10-50ms). Doing heavy CPU processing will cause the worker to be killed. Offload heavy processing to traditional servers or use Cloudflare Queues.

Security Notes

Use wrangler secret put to securely store API keys. These are injected into the env object passed to your fetch handler, ensuring secrets never touch the codebase.

References

Why use this skill

Use this when your agent works with cloudflare-workers — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Referencing CLI flags or config keys that do not exist
  • Using outdated major versions of tools
  • Skipping lockfile or version pinning in examples

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • hono — works well with
  • drizzle — integrates with

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.