cloudflare-workers
Skill by sickn33
Builds and deploys edge functions with Cloudflare Workers and Wrangler. It is for APIs, cron jobs and edge middleware, and covers KV, D1 and Durable Object bindings.
Install cloudflare-workers
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/cloudflare-workers ~/.claude/skills/cloudflare-workersRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/cloudflare-workers ~/.gemini/antigravity-cli/skills/cloudflare-workersAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a guide for building and deploying JavaScript and TypeScript functions to Cloudflare's global edge network. It covers Wrangler CLI setup, local development with wrangler dev, deploys to staging or production, secrets, log tailing and rollbacks. It also includes examples for a basic API router, a KV-based counter, KV, D1 and Durable Object bindings, cron triggers and custom routing.
The source notes that KV is eventually consistent, that its counter example is not an enforcement-grade rate limiter, and that waitUntil is not a durable job queue. It is aimed at developers who want lightweight APIs, edge middleware or scheduled jobs without maintaining their own infrastructure. The skill is docs-only, and upstream scripts and templates are not bundled.
Written from the project's SKILL.md and checked against it.
What it can do
- Edge API routingBuilds lightweight APIs with a fetch handler and URL-based routing.
- MiddlewareDescribes adding auth, rate limiting or header injection before an origin server.
- Cron triggersRuns scheduled jobs from crons in wrangler.toml with a scheduled handler.
- KV storageWrites, reads, lists and deletes keys through a KV namespace binding.
- D1 databaseRuns parameterized SQL and batched statements against a D1 binding.
- Durable ObjectsRoutes requests to a Durable Object class for shared state.
- Wrangler deploysDeploys to production or a named environment and rolls back to earlier deployments.
- Log tailingStreams production logs with wrangler tail, with optional filters.
- Secrets managementSets and lists secrets per environment with wrangler secret commands.
- Custom routingMaps Workers to zone routes or custom domains.
What you need
- Node.js 18 or later
- Wrangler CLI installed via npm
- A Cloudflare account
- Authentication with wrangler login or CLOUDFLARE_API_TOKEN
Try asking
- Scaffold a Cloudflare Worker with a health check and a POST /api/data route
- Add a cron trigger to my Worker that runs every 15 minutes
- Show me how to bind a D1 database and run a parameterized query in my Worker
Good to know
- KV is eventually consistent, and concurrent counter updates can be lost.
- The example rate limiter is approximate and not suitable for security enforcement.
- waitUntil is bounded background work, not a durable job queue.
- Docs-only: helper scripts and templates are not bundled.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cloudflare-workers/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to cloudflare-workers
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
cloudflare-workers: common questions
Is the KV rate limiter example safe for security?
No. The source calls it an approximate KV counter and says to use an authoritative rate limiter for security.
Does the skill cover local development?
Yes. It shows npx wrangler dev for a local server on port 8787, and npx wrangler dev --remote, which runs in Cloudflare and can affect bound remote resources.
What should I check before deploying?
The source says to verify Node and Wrangler support, plan quotas and CPU limits for the account, and to choose the target account, environment and routes explicitly.
How do I install cloudflare-workers?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cloudflare-workers free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cloudflare-workers safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cloudflare-workers?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
