roedyrustam/vibes-plug/cloudflare-workers-expert
Claude Code and agent skill by roedyrustam/vibes-plug
- community
Checking that the SKILL.md file is still in the repository.
Cloudflare Workers ecosystem: D1, KV, R2, Queues, Durable Objects / Ekosistem Cloudflare Workers: D1, KV, R2, Queues, Durable Objects.
Install
npx vskill@latest install roedyrustam/vibes-plug/cloudflare-workers-expertSKILL.md
The same SKILL.md was published earlier as roedyrustam/vibes-plug/cloudflare-workers-expert.
Cloudflare Workers Ecosystem Expert (2026 Edition)
<a name="english"></a>
English
Orchestration & Integration
Connects and orchestrates with domain skills:
- Edge Backend & APIs:
js-backend-expert(Hono v4 on Workers, V8 isolates),api-design-expert(edge REST & RPC endpoints), andsse-websocket-streaming-expert(Durable Objects WebSockets). - Edge Storage & DBs:
database-orm-expert(Drizzle with D1, Hyperdrive pooling),file-upload-media-expert(R2 presigned URLs), andvector-db-rag-expert(Vectorize & Workers AI). - Frontend & Cloud:
cloud-hosting-expert(custom domains, CDN rules),senior-frontend(Workers Static Assets), andanti-slop(clean edge architecture without node:fs polyfill traps). - Lifecycle & DevOps:
ci-cd-devops-architect(GitHub Actions Wrangler deployments),brainstorming, andzero-to-prod-orchestrator(Phase 4: Backend & APIs).
Description
Expert guide for building full-stack edge applications using the Cloudflare Workers ecosystem. Covers Workers runtime, D1 (SQLite at edge), KV (key-value store), R2 (S3-compatible object storage), Queues (message queues), Durable Objects (stateful edge), Hyperdrive (database connection pooling), Workers AI (inference at edge), and Wrangler CLI for development and deployment.
Trigger Conditions
- Building serverless edge applications on Cloudflare Workers.
- Using D1 as an edge SQLite database.
- Storing files with R2 (S3-compatible, zero egress fees).
- Implementing KV for distributed key-value caching.
- Building stateful applications with Durable Objects.
- Setting up Queues for async job processing at the edge.
- Connecting to external databases via Hyperdrive connection pooling.
- Running AI inference at the edge with Workers AI.
- Deploying with Wrangler CLI and
wrangler.tomlconfiguration. - Using Hono v4 as the web framework on Workers.
What's New in 2026
Cloudflare Workers — Platform Updates
- D1 GA: SQLite at the edge — fully production-ready with point-in-time recovery, read replicas, and up to 10GB databases.
- Queues GA: Reliable message queues for async processing, dead letter queues, and batch consumption.
- Hyperdrive GA: Connection pooling for PostgreSQL, MySQL — eliminates cold connection latency from Workers.
- Workers AI Stable: Run LLM inference (Llama 3, Mistral, embedding models) at the edge with zero cold starts.
- Durable Objects Hibernation: Cost-effective stateful edge — objects hibernate when idle, wake instantly on request.
- Workers Static Assets: Serve static files directly from Workers without separate Pages deployment.
- Node.js Compatibility Mode: Import Node.js built-in modules (
node:crypto,node:buffer,node:streams) directly in Workers.
Core Architecture Patterns
1. Project Setup (Wrangler + Hono)
2. Hono Application on Workers
3. D1 Migrations
4. Durable Objects (Stateful Edge)
5. Hyperdrive (External Database Connection)
6. Durable Objects SQLite Storage (ctx.storage.sql) & WebSocket Hibernation API
Use this.ctx.storage.sql.exec(...) for zero-latency ACID SQLite inside Durable Objects and this.ctx.acceptWebSocket(server) so idle WebSocket connections hibernate at zero compute cost:
Hard Guardrails (Declarative Invariants)
- Prepared & Bound D1 Statements Only: MUST execute D1 queries exclusively with
env.DB.prepare('... WHERE id = ?').bind(id)and never interpolate raw strings intoprepare()orexec(). - Non-Blocking Background Tasks via `ctx.waitUntil`: MUST wrap post-response telemetry, cache population, and audit logging inside
c.executionCtx.waitUntil(promise)so the isolate is not terminated before completion. - Explicit Queue `ack()` / `retry({ delaySeconds })`: MUST acknowledge each processed message with
message.ack()and catch transient failures withmessage.retry({ delaySeconds })backed by a configured Dead Letter Queue. - Zero Mutable Isolate Globals for Request State: MUST never store user/tenant session state in module-level variables across requests, as a single V8 isolate serves multiple concurrent requests.
- Hyperdrive Pooling for External TCP Databases: MUST connect to external PostgreSQL/MySQL databases through
env.HYPERDRIVE.connectionStringinstead of opening raw cold TCP/TLS connections per request.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cloudflare-workers-expert/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/roedyrustam/vibes-plug/cloudflare-workers-expert)