convex-backend
The open-source reactive database for app developers
Official Convex plugins for AI coding agents, providing comprehensive development tools for building reactive backends with TypeScript.
From the author’s README · Installation · not verified by Flowy
$ # Clone or download this plugin$ cd ~/.cursor/plugins$ git clone <this-repo-url> convex$ # Restart Cursor
Official Convex plugins for AI coding agents, providing comprehensive development tools for building reactive backends with TypeScript.
Supported Agents: Cursor, Claude Code (more coming soon)
This plugin makes Convex development easier by providing:
Convex is the reactive backend-as-a-service where you build your entire backend in TypeScript. It provides:
Install this plugin via the Cursor Marketplace or manually:
# Clone or download this plugin
cd ~/.cursor/plugins
git clone <this-repo-url> convex
# Restart Cursor
The plugin helps the AI understand when Convex might be a good fit for your project, such as when you're building real-time features, setting up a backend, or starting a new application. It provides relevant guidance and can help with setup when needed.
The plugin includes 18 rules that provide persistent AI guidance:
Development Best Practices:
.filter() for efficient queriesPlus contextual rules for new projects, real-time features, and deployment workflows.
Rules automatically guide the AI when working in your convex/ directory.
Invoke specialized agent capabilities for complex Convex tasks:
/convex-quickstartInitialize a new Convex backend from scratch with schema, auth, and CRUD operations.
Use when:
Example:
User: "Set up a Convex backend for my project"
Assistant: [Walks through installation, schema, auth, and CRUD setup]
/schema-builderDesign and generate database schemas with proper validation, indexes, and relationships.
Use when:
convex/schema.tsExample:
User: "Create a schema for a task management app with users, teams, and tasks"
Assistant: [Generates complete schema with proper indexes and relationships]
/function-creatorCreate queries, mutations, and actions with proper validation, auth, and error handling.
Use when:
Example:
User: "Create a mutation to update a task with ownership check"
Assistant: [Generates secure mutation with auth and authorization]
/auth-setupSet up authentication with user management, identity mapping, and access control.
Use when:
Example:
User: "Set up WorkOS authentication with user roles"
Assistant: [Creates users table, auth helpers, and role checking functions]
/migration-helperPlan and execute schema migrations safely without downtime.
Use when:
Example:
User: "Migrate tags array to a separate tags table"
Assistant: [Creates migration plan with dual-write pattern and batch processing]
The plugin includes specialized agents for Convex development:
convex-advisorProvides guidance on Convex architecture and development patterns.
convex-reviewerCode reviewer specialized in Convex best practices.
The plugin includes MCP (Model Context Protocol) integration for direct access to your Convex deployment:
Configuration:
Set these environment variables:
export CONVEX_DEPLOYMENT="your-deployment-name"
export CONVEX_DEPLOY_KEY="your-deploy-key"
The plugin ships two Cursor hooks (hooks.json, wired via .cursor-plugin/plugin.json's hooks field — see Cursor's hooks docs for the full event list and schema). These are real Cursor mechanisms, not just instructions: each is a spawned script that Cursor calls automatically and whose JSON output Cursor acts on.
beforeShellExecution)Runs before any shell command matching git commit; can deny the commit outright.
Date.now() inside/near query({...}) bodies, .filter() chained on db.query(...).scripts/pre-commit-checks.shstop)Fires when the agent's turn ends (status: "completed"). Cursor's stop hook cannot block completion — but it can return a followup_message that Cursor automatically submits as the next user turn, capped by loop_limit (set to 2 here) so it can't loop forever. This turns the SELF-VERIFY RULE already in rules/quickstart.mdc (run npx tsc --noEmit before declaring backend work done) from an instruction the agent might forget into a mechanism that catches it if it does: if convex/ exists and npx tsc --noEmit fails, the hook auto-submits a follow-up turn with the compiler errors so the agent fixes them before the session is really "done".
scripts/stop-verify.shStop hook or a CI gate would. A user who ignores the follow-up (or an agent that exhausts the loop limit) can still end the session with a broken build. See Cursor plugin mechanism status below for how this compares to the Claude Code and Codex equivalents.// Simply ask the AI:
"Create a schema for a blog with users, posts, and comments";
// The plugin's schema-builder skill will guide the creation of:
// - Properly indexed tables
// - Relational structure (no deep nesting)
// - Correct validator types
// - Compound indexes for common queries
// Ask:
"Set up authentication with WorkOS and create a getCurrentUser helper";
// The auth-setup skill will create:
// - users table with tokenIdentifier index
// - getCurrentUser helper function
// - storeUser mutation for first sign-in
// - Example access control patterns
// Ask:
"Create CRUD operations for tasks with ownership checks";
// The function-creator skill will generate:
// - Properly validated functions
// - Authentication checks
// - Authorization (ownership) checks
// - Indexed queries (no .filter())
// - Error handling
// Ask:
"I need to add a required 'status' field to existing tasks";
// The migration-helper skill will:
// 1. Add field as optional first
// 2. Generate backfill migration code
// 3. Provide verification query
// 4. Guide making field required after backfill
ctx.auth.getUserIdentity().withIndex() instead of .filter()Make sure hook scripts are executable:
chmod +x scripts/*.sh
Verify environment variables are set:
echo $CONVEX_DEPLOYMENT
echo $CONVEX_DEPLOY_KEY
Get your deploy key from the Convex Dashboard.
Ensure you have Convex installed:
npm install convex
# or
npm install convex@latest
Convex ships an end-of-turn "verify before you say you're done" mechanism across the coding agents it supports, but the strength of that mechanism depends on what each agent's plugin format actually offers:
| Agent | Mechanism | Enforcement |
|---|---|---|
| Claude Code | Stop hook | Can block: the hook can require the agent keep working before the turn is allowed to end. |
| Codex | MCP server leg (fix_errors_automatically) | Blocking tool call: the agent's own idle loop calls a tool that blocks until a real event (including a compile error) fires. |
The open-source reactive database for app developers
convex-agent-plugins is a GitHub repository, indexed on Flowy in the Backend category. Flowy has no install command for it. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it