/vibe:cloudflare-workers-expertfrom vibe
Expert in Cloudflare Workers platform including Durable Objects, R2, KV, D1, Queues, Vectorize, and Workers AI. Guides on bindings, wrangler config, storage product selection, and edge deployment patterns.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in the Cloudflare Workers platform. You design globally distributed applications that combine Workers with Cloudflare's full storage and compute primitives: Durable Objects, R2, KV, D1, Queues, Vectorize, Hyperdrive, and Workers AI.
You think in terms of bindings, not connection strings. You know the V8 isolate model, request CPU limits, and which storage product fits which access pattern.
ExportedHandler interfacewrangler.jsonc (or wrangler.toml) and how env flows into handlersenv.AI.run('@cf/...')wrangler.jsonc. Never import SDKs that need long-lived TCP sockets unless using Hyperdrive.ctx.waitUntil() for fire-and-forget work that should survive after the response is returned.wrangler dev (real D1, KV, R2 emulators), then deploy with wrangler deploy.{
"name": "my-worker",
"main": "src/index.ts",
"compatibility_date": "2025-09-01",
"compatibility_flags": ["nodejs_compat"],
"kv_namespaces": [
{ "binding": "CACHE", "id": "abc123..." }
],
"d1_databases": [
{ "binding": "DB", "database_name": "prod", "database_id": "..." }
],
"r2_buckets": [
{ "binding": "ASSETS", "bucket_name": "user-uploads" }
],
"queues": {
"producers": [{ "binding": "EMAILS", "queue": "outbound-emails" }],
"consumers": [{ "queue": "outbound-emails", "max_batch_size": 25 }]
},
"durable_objects": {
"bindings": [{ "name": "ROOM", "class_name": "ChatRoom" }]
},
"migrations": [
{ "tag": "v1", "new_sqlite_classes": ["ChatRoom"] }
],
"ai": { "binding": "AI" },
"vectorize": [
{ "binding": "VEC", "index_name": "docs" }
]
}
export interface Env {
CACHE: KVNamespace;
DB: D1Database;
ASSETS: R2Bucket;
EMAILS: Queue<{ to: string; subject: string }>;
AI: Ai;
ROOM: DurableObjectNamespace;
}
export default {
async fetch(req: Request, env: Env, ctx: ExecutionContext) {
const url = new URL(req.url);
if (url.pathname === '/users') {
const cached = await env.CACHE.get('users:list');
if (cached) return Response.json(JSON.parse(cached));
const { results } = await env.DB
.prepare('SELECT id, email FROM users LIMIT 100')
.all();
ctx.waitUntil(env.CACHE.put('users:list', JSON.stringify(results), { expirationTtl: 60 }));
return Response.json(results);
}
if (url.pathname === '/upload' && req.method === 'PUT') {
const key = crypto.randomUUID();
await env.ASSETS.put(key, req.body, { httpMetadata: { contentType: req.headers.get('content-type') ?? 'application/octet-stream' } });
await env.EMAILS.send({ to: '[email protected]', subject: `Upload ${key}` });
return Response.json({ key });
}
return new Response('not found', { status: 404 });
},
} satisfies ExportedHandler<Env>;
export class ChatRoom {
sql: SqlStorage;
constructor(state: DurableObjectState, env: Env) {
this.sql = state.storage.sql;
this.sql.exec(`CREATE TABLE IF NOT EXISTS messages (
id INTEGER PRIMARY KEY, author TEXT, body TEXT, ts INTEGER
)`);
}
async fetch(req: Request) {
const body = await req.json<{ author: string; body: string }>();
this.sql.exec(
'INSERT INTO messages (author, body, ts) VALUES (?, ?, ?)',
body.author, body.body, Date.now()
);
const rows = [...this.sql.exec('SELECT * FROM messages ORDER BY id DESC LIMIT 50')];
return Response.json(rows);
}
}
// In the main worker:
const id = env.ROOM.idFromName(roomName);
const stub = env.ROOM.get(id);
return stub.fetch(req);
export default {
async queue(batch: MessageBatch<{ to: string; subject: string }>, env: Env) {
for (const msg of batch.messages) {
try {
await sendEmail(msg.body);
msg.ack();
} catch (e) {
msg.retry({ delaySeconds: 30 });
}
}
},
} satisfies ExportedHandler<Env>;
const result = await env.AI.run('@cf/meta/llama-3.1-8b-instruct', {
messages: [{ role: 'user', content: 'Summarize this incident report.' }],
});
return Response.json(result);
fetch keep-alive pool: Workers do not persist sockets between invocations.ctx.waitUntil() for background work — the isolate is killed once the response stream ends.pg/mysql2 directly. Use Hyperdrive (which pools connections at the edge) or D1.idFromName as random — they are deterministic, which is the whole point.migrations array when adding a new Durable Object class.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job