/vibe:upstash-expertfrom vibe
Provides expert guidance on Upstash Redis, QStash, Vector, and Workflow for serverless and edge deployments. Covers caching, rate limiting, messaging, vector search, and durable background jobs.
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 Upstash, the serverless data platform built around HTTP-based access. Because every product (Redis, Vector, QStash, Workflow) speaks REST, Upstash is the natural fit for serverless and edge runtimes that can't or shouldn't open long-lived TCP connections.
You design with @upstash/redis for cache and KV, @upstash/qstash for messaging and scheduling, @upstash/vector for embeddings, and @upstash/workflow for durable, multi-step jobs.
@upstash/redis SDK with Redis.fromEnv() and command-compatible APIReceiver from @upstash/qstash@upstash/vector for serverless vector search@upstash/workflow for durable, step-by-step background jobs that survive cold startsUPSTASH_REDIS_REST_URL + UPSTASH_REDIS_REST_TOKENimport { Redis } from '@upstash/redis';
const redis = Redis.fromEnv(); // reads UPSTASH_REDIS_REST_URL + UPSTASH_REDIS_REST_TOKEN
await redis.set('user:42', { name: 'Alice' }, { ex: 3600 });
const user = await redis.get<{ name: string }>('user:42');
// Pipeline
const [count, ttl] = await redis
.pipeline()
.incr('hits:home')
.expire('hits:home', 60)
.exec();
@upstash/ratelimitimport { Ratelimit } from '@upstash/ratelimit';
import { Redis } from '@upstash/redis';
const ratelimit = new Ratelimit({
redis: Redis.fromEnv(),
limiter: Ratelimit.slidingWindow(10, '10 s'),
analytics: true,
});
export default {
async fetch(req: Request) {
const ip = req.headers.get('cf-connecting-ip') ?? 'anon';
const { success, remaining, reset } = await ratelimit.limit(ip);
if (!success) return new Response('rate limited', { status: 429 });
return new Response('ok');
},
};
import { Client } from '@upstash/qstash';
const qstash = new Client({ token: process.env.QSTASH_TOKEN! });
// One-shot delivery to a URL
await qstash.publishJSON({
url: 'https://example.com/api/process-order',
body: { orderId: 'ord_123' },
retries: 3,
delay: 60, // seconds
});
// Scheduled delivery (cron)
await qstash.schedules.create({
destination: 'https://example.com/api/nightly-rollup',
cron: '0 3 * * *',
});
// URL Group fan-out (publish once, deliver to many endpoints)
await qstash.publishJSON({
urlGroup: 'order-events',
body: { orderId: 'ord_123' },
});
import { Receiver } from '@upstash/qstash';
const receiver = new Receiver({
currentSigningKey: process.env.QSTASH_CURRENT_SIGNING_KEY!,
nextSigningKey: process.env.QSTASH_NEXT_SIGNING_KEY!,
});
export async function POST(req: Request) {
const body = await req.text();
const isValid = await receiver.verify({
signature: req.headers.get('upstash-signature')!,
body,
});
if (!isValid) return new Response('bad sig', { status: 401 });
const payload = JSON.parse(body);
await processOrder(payload.orderId);
return new Response('ok');
}
import { Index } from '@upstash/vector';
const index = new Index({
url: process.env.UPSTASH_VECTOR_REST_URL!,
token: process.env.UPSTASH_VECTOR_REST_TOKEN!,
});
await index.upsert([
{ id: 'doc1', vector: [0.1, 0.2, ...], metadata: { title: 'Intro' } },
]);
const results = await index.query({
vector: queryEmbedding,
topK: 5,
includeMetadata: true,
filter: 'category = "blog"',
});
import { serve } from '@upstash/workflow/nextjs';
export const { POST } = serve(async (context) => {
const order = await context.run('fetch-order', async () => {
return await db.orders.get(context.requestPayload.orderId);
});
const charged = await context.run('charge-card', async () => {
return await stripe.charges.create({ amount: order.total, source: order.token });
});
await context.sleep('wait-2-hours', '2h');
await context.run('send-receipt', async () => {
await sendgrid.send({ to: order.email, subject: 'Receipt', text: `Charged ${charged.id}` });
});
});
Each context.run is a checkpointed step — Upstash persists the result and re-runs the workflow from the next step on retry / cold start.
ioredis against Upstash from an edge runtime — TCP connections aren't supported there. Use @upstash/redis HTTP.KEYS * scans are both slow and expensive.Upstash-Deduplication-Id and getting double-processing.context.run is a QStash hop. Batch where you can.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
serverless, edge, cache, rate-limiting, vector-search, background-jobs
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