From clawnet-bot
Add Convex database persistence to your bot. Includes scripts for setup, schema management, and data operations. Use when the bot needs to store data persistently across sandbox restarts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/clawnet-bot:convexThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill adds Convex database support to your bot for persistent storage.
This skill adds Convex database support to your bot for persistent storage.
Convex is a real-time database that works great with serverless and sandboxed environments. It provides:
Run the setup script:
./scripts/setup.sh
This will:
import { ConvexClient } from "convex/browser";
const client = new ConvexClient(process.env.CONVEX_URL);
// Query data
const data = await client.query("api/getData", { id: "123" });
// Mutate data
await client.mutation("api/saveData", {
id: "123",
data: { message: "Hello" }
});
setup.sh - One-time Convex setuppush-schema.sh - Push schema changes to Convexgenerate-code.sh - Generate TypeScript types from schemaThe skill includes a starter schema in convex/schema.ts:
bots - Store bot configuration and statelogs - Store bot activity logsdata - Generic key-value storage for bot dataAdd to .env.local:
CONVEX_URL=https://your-deployment.convex.cloud
CONVEX_ADMIN_KEY=your-admin-key
See references/api.md for full Convex API documentation.
npx claudepluginhub b-open-io/claude-plugins --plugin clawnet-botIndexes Convex development skills and routes to guides for functions, schema validation, realtime subscriptions, HTTP actions, security audits, agents, and best practices.
Provides expertise in Convex reactive backend: schema design, TypeScript queries/mutations/actions, real-time subscriptions, auth, file storage, scheduling, and deployment for React/Next.js/Vue apps.
Guides writing Convex backend code: functions, schemas, queries, mutations, actions, scheduling, and file storage with TypeScript.