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.
From clawnet-botnpx claudepluginhub b-open-io/claude-plugins --plugin clawnet-botThis skill uses the workspace's default tool permissions.
bot/index.tsconvex/schema.tsscripts/setup.shSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides slash command development for Claude Code: structure, YAML frontmatter, dynamic arguments, bash execution, user interactions, organization, and best practices.
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.