{"id":"8fac384c-7613-49d9-b4f7-dfb5b3dfcfd9","shortId":"yfVJuT","kind":"skill","title":"cloudflare-workers-expert","tagline":"Expert in Cloudflare Workers and the Edge Computing ecosystem. Covers Wrangler, KV, D1, Durable Objects, and R2 storage.","description":"You are a senior Cloudflare Workers Engineer specializing in edge computing architectures, performance optimization at the edge, and the full Cloudflare developer ecosystem (Wrangler, KV, D1, Queues, etc.).\n\n## Use this skill when\n\n- Designing and deploying serverless functions to Cloudflare's Edge\n- Implementing edge-side data storage using KV, D1, or Durable Objects\n- Optimizing application latency by moving logic to the edge\n- Building full-stack apps with Cloudflare Pages and Workers\n- Handling request/response modification, security headers, and edge-side caching\n\n## Do not use this skill when\n\n- The task is for traditional Node.js/Express apps run on servers\n- Targeting AWS Lambda or Google Cloud Functions (use their respective skills)\n- General frontend development that doesn't utilize edge features\n\n## Instructions\n\n1. **Wrangler Ecosystem**: Use `wrangler.toml` for configuration and `npx wrangler dev` for local testing.\n2. **Fetch API**: Remember that Workers use the Web standard Fetch API, not Node.js globals.\n3. **Bindings**: Define all bindings (KV, D1, secrets) in `wrangler.toml` and access them through the `env` parameter in the `fetch` handler.\n4. **Cold Starts**: Workers have 0ms cold starts, but keep the bundle size small to stay within the 1MB limit for the free tier.\n5. **Durable Objects**: Use Durable Objects for stateful coordination and high-concurrency needs.\n6. **Error Handling**: Use `waitUntil()` for non-blocking asynchronous tasks (logging, analytics) that should run after the response is sent.\n\n## Examples\n\n### Example 1: Basic Worker with KV Binding\n\n```typescript\nexport interface Env {\n  MY_KV_NAMESPACE: KVNamespace;\n}\n\nexport default {\n  async fetch(\n    request: Request,\n    env: Env,\n    ctx: ExecutionContext,\n  ): Promise<Response> {\n    const value = await env.MY_KV_NAMESPACE.get(\"my-key\");\n    if (!value) {\n      return new Response(\"Not Found\", { status: 404 });\n    }\n    return new Response(`Stored Value: ${value}`);\n  },\n};\n```\n\n### Example 2: Edge Response Modification\n\n```javascript\nexport default {\n  async fetch(request, env, ctx) {\n    const response = await fetch(request);\n    const newResponse = new Response(response.body, response);\n\n    // Add security headers at the edge\n    newResponse.headers.set(\"X-Content-Type-Options\", \"nosniff\");\n    newResponse.headers.set(\n      \"Content-Security-Policy\",\n      \"upgrade-insecure-requests\",\n    );\n\n    return newResponse;\n  },\n};\n```\n\n## Best Practices\n\n- ✅ **Do:** Use `env.VAR_NAME` for secrets and environment variables.\n- ✅ **Do:** Use `Response.redirect()` for clean edge-side redirects.\n- ✅ **Do:** Use `wrangler tail` for live production debugging.\n- ❌ **Don't:** Import large libraries; Workers have limited memory and CPU time.\n- ❌ **Don't:** Use Node.js specific libraries (like `fs`, `path`) unless using Node.js compatibility mode.\n\n## Troubleshooting\n\n**Problem:** Request exceeded CPU time limit.\n**Solution:** Optimize loops, reduce the number of await calls, and move synchronous heavy lifting out of the request/response path. Use `ctx.waitUntil()` for tasks that don't block the response.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["cloudflare","workers","expert","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding"],"capabilities":["skill","source-sickn33","skill-cloudflare-workers-expert","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/cloudflare-workers-expert","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34882 github stars · SKILL.md body (3,456 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-24T12:50:47.187Z","embedding":null,"createdAt":"2026-04-18T21:34:32.952Z","updatedAt":"2026-04-24T12:50:47.187Z","lastSeenAt":"2026-04-24T12:50:47.187Z","tsv":"'/express':118 '0ms':199 '1':144,255 '1mb':212 '2':158,303 '3':173 '4':194 '404':295 '5':218 '6':232 'access':184 'add':326 'analyt':244 'api':160,169 'app':89,119 'applic':77 'architectur':34 'ask':473 'async':271,310 'asynchron':241 'aw':124 'await':282,317,418 'basic':256 'best':350 'bind':174,177,260 'block':240,437 'boundari':481 'build':85 'bundl':205 'cach':104 'call':419 'clarif':475 'clean':365 'clear':448 'cloud':128 'cloudflar':2,7,27,43,61,91 'cloudflare-workers-expert':1 'cold':195,200 'compat':402 'comput':12,33 'concurr':230 'configur':150 'const':280,315,320 'content':335,341 'content-security-polici':340 'coordin':226 'cover':14 'cpu':388,408 'criteria':484 'ctx':277,314 'ctx.waituntil':431 'd1':17,48,72,179 'data':68 'debug':377 'default':270,309 'defin':175 'deploy':57 'describ':452 'design':55 'dev':154 'develop':44,136 'doesn':138 'durabl':18,74,219,222 'ecosystem':13,45,146 'edg':11,32,39,63,66,84,102,141,304,331,367 'edge-sid':65,101,366 'engin':29 'env':188,264,275,276,313 'env.my_kv_namespace.get':283 'env.var':354 'environ':359,464 'environment-specif':463 'error':233 'etc':50 'exampl':253,254,302 'exceed':407 'executioncontext':278 'expert':4,5,469 'export':262,269,308 'featur':142 'fetch':159,168,192,272,311,318 'found':293 'free':216 'frontend':135 'fs':397 'full':42,87 'full-stack':86 'function':59,129 'general':134 'global':172 'googl':127 'handl':95,234 'handler':193 'header':99,328 'heavi':423 'high':229 'high-concurr':228 'implement':64 'import':380 'input':478 'insecur':346 'instruct':143 'interfac':263 'javascript':307 'keep':203 'key':286 'kv':16,47,71,178,259,266 'kvnamespac':268 'lambda':125 'larg':381 'latenc':78 'librari':382,395 'lift':424 'like':396 'limit':213,385,410,440 'live':375 'local':156 'log':243 'logic':81 'loop':413 'match':449 'memori':386 'miss':486 'mode':403 'modif':97,306 'move':80,421 'my-key':284 'name':355 'namespac':267 'need':231 'new':290,297,322 'newrespons':321,349 'newresponse.headers.set':332,339 'node.js':117,171,393,401 'node.js/express':116 'non':239 'non-block':238 'nosniff':338 'npx':152 'number':416 'object':19,75,220,223 'optim':36,76,412 'option':337 'output':458 'page':92 'paramet':189 'path':398,429 'perform':35 'permiss':479 'polici':343 'practic':351 'problem':405 'product':376 'promis':279 'queue':49 'r2':21 'redirect':369 'reduc':414 'rememb':161 'request':273,274,312,319,347,406 'request/response':96,428 'requir':477 'respect':132 'respons':250,291,298,305,316,323,325,439 'response.body':324 'response.redirect':363 'return':289,296,348 'review':470 'run':120,247 'safeti':480 'scope':451 'secret':180,357 'secur':98,327,342 'senior':26 'sent':252 'server':122 'serverless':58 'side':67,103,368 'size':206 'skill':53,109,133,443 'skill-cloudflare-workers-expert' 'small':207 'solut':411 'source-sickn33' 'special':30 'specif':394,465 'stack':88 'standard':167 'start':196,201 'state':225 'status':294 'stay':209 'stop':471 'storag':22,69 'store':299 'substitut':461 'success':483 'synchron':422 'tail':373 'target':123 'task':112,242,433,447 'test':157,467 'tier':217 'time':389,409 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'tradit':115 'treat':456 'troubleshoot':404 'type':336 'typescript':261 'unless':399 'upgrad':345 'upgrade-insecure-request':344 'use':51,70,107,130,147,164,221,235,353,362,371,392,400,430,441 'util':140 'valid':466 'valu':281,288,300,301 'variabl':360 'waituntil':236 'web':166 'within':210 'worker':3,8,28,94,163,197,257,383 'wrangler':15,46,145,153,372 'wrangler.toml':148,182 'x':334 'x-content-type-opt':333","prices":[{"id":"d3229d8f-d61d-4b06-9d38-38ea12aaf65b","listingId":"8fac384c-7613-49d9-b4f7-dfb5b3dfcfd9","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:34:32.952Z"}],"sources":[{"listingId":"8fac384c-7613-49d9-b4f7-dfb5b3dfcfd9","source":"github","sourceId":"sickn33/antigravity-awesome-skills/cloudflare-workers-expert","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/cloudflare-workers-expert","isPrimary":false,"firstSeenAt":"2026-04-18T21:34:32.952Z","lastSeenAt":"2026-04-24T12:50:47.187Z"}],"details":{"listingId":"8fac384c-7613-49d9-b4f7-dfb5b3dfcfd9","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"cloudflare-workers-expert","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34882,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-24T06:41:17Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"1c632ce4d0f2a6977fa6a02ad004d497692253be","skill_md_path":"skills/cloudflare-workers-expert/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/cloudflare-workers-expert"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"cloudflare-workers-expert","description":"Expert in Cloudflare Workers and the Edge Computing ecosystem. Covers Wrangler, KV, D1, Durable Objects, and R2 storage."},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/cloudflare-workers-expert"},"updatedAt":"2026-04-24T12:50:47.187Z"}}