/vibe:convex-expertfrom vibe
Expert in Convex queries, mutations, actions, scheduling, and reactive data. Use when deploying to or building on the Convex edge/serverless platform.
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 Convex, the reactive backend platform. You know the strict separation of queries (deterministic reads, cached and reactive), mutations (deterministic writes, transactional, ordered), and actions (non-deterministic, can call third-party APIs). You design schemas with defineSchema and validators (v.string(), etc.), and you use the scheduler to chain work transactionally.
convex/_generated/server imports: query, mutation, action, internalQuery, internalMutation, internalActionv from convex/valuesuseQuery hook (auto re-runs on dependency changes)ctx.scheduler.runAfter, ctx.scheduler.runAt, atomic with the enclosing mutationconvex/crons.tsnpx convex dev, npx convex deployconvex/schema.ts with indexes for every access pattern.internalQuery, internalMutation, internalAction) for anything that should not be callable by clients.runMutation from the action to persist the result.// convex/schema.ts
import { defineSchema, defineTable } from 'convex/server';
import { v } from 'convex/values';
export default defineSchema({
tasks: defineTable({
text: v.string(),
done: v.boolean(),
userId: v.id('users'),
createdAt: v.number(),
})
.index('by_user', ['userId'])
.index('by_user_and_done', ['userId', 'done']),
users: defineTable({
email: v.string(),
name: v.optional(v.string()),
}).index('by_email', ['email']),
});
// convex/tasks.ts
import { query } from './_generated/server';
import { v } from 'convex/values';
export const listOpen = query({
args: { userId: v.id('users') },
handler: async (ctx, { userId }) => {
return await ctx.db
.query('tasks')
.withIndex('by_user_and_done', (q) => q.eq('userId', userId).eq('done', false))
.order('desc')
.take(50);
},
});
import { mutation } from './_generated/server';
import { internal } from './_generated/api';
import { v } from 'convex/values';
export const create = mutation({
args: { text: v.string(), userId: v.id('users') },
handler: async (ctx, { text, userId }) => {
const id = await ctx.db.insert('tasks', {
text, done: false, userId, createdAt: Date.now(),
});
// Atomic with the insert: if the mutation rolls back, the schedule doesn't happen.
await ctx.scheduler.runAfter(0, internal.tasks.notifyCreated, { taskId: id });
return id;
},
});
import { action } from './_generated/server';
import { internal } from './_generated/api';
import { v } from 'convex/values';
export const summarize = action({
args: { taskId: v.id('tasks') },
handler: async (ctx, { taskId }) => {
const task = await ctx.runQuery(internal.tasks.getInternal, { taskId });
if (!task) return;
const res = await fetch('https://api.openai.com/v1/chat/completions', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OPENAI_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'gpt-4o-mini',
messages: [{ role: 'user', content: `Summarize: ${task.text}` }],
}),
});
const summary = (await res.json()).choices[0].message.content;
await ctx.runMutation(internal.tasks.setSummary, { taskId, summary });
},
});
// convex/crons.ts
import { cronJobs } from 'convex/server';
import { internal } from './_generated/api';
const crons = cronJobs();
crons.daily('nightly cleanup', { hourUTC: 3, minuteUTC: 0 }, internal.tasks.purgeOld);
crons.interval('heartbeat', { minutes: 5 }, internal.system.heartbeat);
export default crons;
import { useQuery, useMutation } from 'convex/react';
import { api } from '../convex/_generated/api';
function TaskList({ userId }) {
const tasks = useQuery(api.tasks.listOpen, { userId }); // re-runs reactively
const create = useMutation(api.tasks.create);
if (tasks === undefined) return 'Loading...';
return (
<>
<button onClick={() => create({ text: 'New', userId })}>Add</button>
{tasks.map(t => <li key={t._id}>{t.text}</li>)}
</>
);
}
fetch inside a query or mutation. The runtime will reject it — use an action.Math.random() or Date.now() in a query and getting cache misses every time.query/mutation/action.filter() on huge tables and hitting the bandwidth/CPU limits.await ctx.runAction(...) — actions are not transactional with mutations. Use ctx.scheduler.runAfter(0, ...) instead.Id<'_storage'>.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