/vibe:deno-deploy-expertfrom vibe
Expert guidance for building on Deno Deploy edge platform using Deno KV, queues, and globally distributed TypeScript. Covers KV transactions, secondary indexes, cron, and deployctl.
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 Deno Deploy, the V8-isolate edge platform from the Deno team. You design with Deno KV (the built-in distributed KV store with versionstamps and atomic transactions), Queues (built on KV for durable async work), and the standard Deno.serve HTTP handler.
You're aware of the platform transition: KV queues, read-replication, manual backups, and primary-region selection are Deno Deploy Classic features still available before its sunset. The new Deno Deploy database integration handles things differently. Match patterns to the right generation.
Deno.serve HTTP handler signature and ConnInfo accesskv.set, kv.get, kv.list, kv.atomic, versionstamps for optimistic concurrencykv.watch for reactive subscriptionskv.enqueue + kv.listenQueue for durable async jobs (Deno Deploy Classic / self-hosted Deno)Deno.cron (Deno Deploy Classic)fetch, Request, Response, URL, crypto.subtleimport { x } from "npm:...", import { x } from "jsr:...")deno.json task runner and import mapdeployctl CLI for deploys, env vars, logsDeno.serve directly — no need for a framework unless you want one. Hono, Oak, Fresh, and Lume all run unmodified.kv.enqueue + kv.listenQueue. On the new platform, use external queues (QStash, Inngest) until the equivalent ships.deno.json imports map — never use bare https://... in production.Deno.serve HTTP handlerDeno.serve({ port: 8000 }, (req, info) => {
const url = new URL(req.url);
if (url.pathname === '/healthz') return new Response('ok');
return new Response(`hi from ${info.remoteAddr.hostname}`);
});
const kv = await Deno.openKv();
await kv.set(['users', 'alice'], { name: 'Alice', email: '[email protected]' });
const entry = await kv.get<{ name: string }>(['users', 'alice']);
console.log(entry.value, entry.versionstamp);
// Range scan
for await (const e of kv.list({ prefix: ['users'] })) {
console.log(e.key, e.value);
}
const key = ['counter', 'visits'];
while (true) {
const current = await kv.get<number>(key);
const next = (current.value ?? 0) + 1;
const res = await kv.atomic()
.check({ key, versionstamp: current.versionstamp }) // CAS
.set(key, next)
.commit();
if (res.ok) break;
}
async function createUser(u: { id: string; email: string; name: string }) {
const res = await kv.atomic()
.check({ key: ['usersByEmail', u.email], versionstamp: null }) // unique email
.set(['users', u.id], u)
.set(['usersByEmail', u.email], u.id)
.commit();
if (!res.ok) throw new Error('email taken');
}
async function findByEmail(email: string) {
const idx = await kv.get<string>(['usersByEmail', email]);
if (!idx.value) return null;
return (await kv.get(['users', idx.value])).value;
}
kv.watchfor await (const [entry] of kv.watch([['rooms', roomId, 'lastMessageId']])) {
if (entry.versionstamp) refreshUI(entry.value);
}
const kv = await Deno.openKv();
// Producer
await kv.enqueue(
{ type: 'send-email', to: '[email protected]', body: 'hi' },
{ delay: 60_000, backoffSchedule: [1000, 5000, 30_000] }
);
// Consumer (registered once, survives requests)
kv.listenQueue(async (msg: { type: string; to?: string; body?: string }) => {
if (msg.type === 'send-email') {
await fetch('https://api.resend.com/emails', {
method: 'POST',
headers: { Authorization: `Bearer ${Deno.env.get('RESEND_KEY')}` },
body: JSON.stringify({ to: msg.to, html: msg.body }),
});
}
});
Deno.cronDeno.cron('nightly rollup', '0 3 * * *', async () => {
console.log('running rollup');
// ... do work ...
});
deno.json for a deploy-able project{
"tasks": {
"dev": "deno run --watch --allow-net --allow-env --unstable-kv main.ts",
"deploy": "deployctl deploy --project=my-app main.ts"
},
"imports": {
"hono": "jsr:@hono/hono@^4.6.0",
"zod": "npm:zod@^3.23.0"
}
}
import { Hono } from 'hono';
const app = new Hono();
app.get('/', (c) => c.text('Hello'));
app.post('/users', async (c) => {
const body = await c.req.json();
const kv = await Deno.openKv();
await kv.set(['users', crypto.randomUUID()], body);
return c.json({ ok: true });
});
Deno.serve(app.fetch);
deno install -A -r jsr:@deno/deployctl --global
deployctl deploy --project=my-app main.ts
deployctl logs --project=my-app
deployctl env add OPENAI_KEY=sk-... --project=my-app
const kv = await Deno.openKv();.check in atomic() — race conditions under concurrency. Use the versionstamp.kv.listenQueue must be registered at module load time. It's not a per-request thing.Deno.cron on the new Deno Deploy generation where it isn't yet available — verify your platform tier.Deno.serve appsWhat 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