david-li0406/meta-skill-evloving/cloudflare-worker
Claude Code and agent skill by david-li0406/meta-skill-evloving
- community
Checking that the SKILL.md file is still in the repository.
Build edge-first TypeScript applications on Cloudflare Workers. Covers Workers API, Hono framework, KV/D1/R2 storage, Durable Objects, Queues, and testing patterns. Use when creating serverless workers, edge functions, or Cloudflare-deployed services.
Install
npx vskill@latest install david-li0406/meta-skill-evloving/cloudflare-workerSKILL.md
The same SKILL.md was published earlier as david-li0406/meta-skill-evloving/cloudflare-worker.
Cloudflare Workers
Development patterns for TypeScript Workers.
Related skills (majestic-devops):
wrangler-coder: CLI deployment, secrets, testing, multi-environmentcloudflare-coder: Infrastructure provisioning with Terraform/OpenTofu
Core Principles
Edge-First Thinking
- Stateless by default: Workers don't persist state between requests
- Global distribution: Code runs in 300+ data centers worldwide
- Cold start optimized: V8 isolates start in milliseconds
- Request/response model: Each invocation handles one request
Storage Selection
| Storage | Use Case | Consistency | Latency | |
|---|---|---|---|---|
| KV | Config, flags, cached data | Eventually consistent | ~10ms | |
| D1 | Relational data, transactions | Strong (single region) | ~30-50ms | |
| R2 | Files, images, large objects | Strong | ~50-100ms | |
| Durable Objects | Real-time state, WebSockets | Strong (per-object) | ~50ms | |
| Queues | Async processing, batching | At-least-once | Async |
Project Structure
Quick Start
Minimal wrangler.toml
See resources/setup.md for full configuration with all bindings.
Basic Hono App
See resources/hono.md for route organization and middleware patterns.
Storage Quick Reference
KV (Key-Value)
D1 (SQLite)
R2 (Object Storage)
See resources/storage.md for caching patterns, migrations, and queries.
Durable Objects
Use for: real-time coordination, WebSockets, rate limiting, distributed locks.
See resources/durable-objects.md for full patterns including WebSocket Hibernation.
Queues
See resources/queues-testing.md for consumer patterns and testing setup.
CLI Commands
Anti-Patterns
| Don't | Do Instead | |
|---|---|---|
| Service Worker format | ES modules | |
await cache writes | waitUntil for non-blocking | |
| Large KV values (>25MB) | R2 for files | |
server.accept() for WebSockets | ctx.acceptWebSocket() (Hibernation API) | |
| Block on analytics/logging | waitUntil for background tasks | |
| Assume KV immediate consistency | D1 or DOs for consistency-critical |
Resources
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill-flow/data/skills-refined-autoskill-36k/skillsmp/cloudflare-worker/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/david-li0406/meta-skill-evloving/cloudflare-worker)