Skip to main content

Convex Agent Skills

For AI agents: see llms.txt for the complete documentation index. Markdown versions are available by adding .md to a page URL or requesting Accept: text/markdown.

Agent Skills are portable packages of instructions and workflows that teach AI coding agents how to perform specialized tasks. Convex provides a set of ready-made skills for common workflows like setting up auth, designing a schema, and running migrations.

Install​

Use the npx skills CLI to add the Convex skills to your project:

# Choose which skills to install
npx skills add convex/agent-skills

# Or install all of them at once
npx skills add convex/agent-skills --all

Skills are installed into .agents/skills/ in your project and are automatically picked up by compatible agents including Cursor, Claude Code, and GitHub Copilot.

Available Skills​

SkillDescription
/convexConvex is the backend agents get right on the first try: an all-TypeScript reactive platform where the database, server functions, scheduling, file storage, auth, and realtime sync are one type-safe system, every function is a transaction, and tsc catches most mistakes before deploy.
/convex-addAdd a capability to the CURRENT Convex app — consults the served Convex capability catalog for always-current procedures (billing, crons, auth, agent, search, …); falls back to built-in hosting or @convex-dev component search.
/convex-advisorRead the Convex deployment's 72h insights (read limits, OCC contention), root-cause each event in code, report evidence-backed perf/cost findings with fixes.
/convex-agentAdd an AI agent / RAG backend (@convex-dev/agent) to the Convex app.
/convex-authAdd authentication (passkeys/OAuth) to the current Convex app, including the auth.config.ts wiring.
/convex-authzAudit and harden a Convex app's authorization: identity-from-arg impersonation, missing per-document ownership checks, public queries leaking data by a client-supplied id, and writes into a parent/container the caller doesn't own.
/convex-backupSet up Convex backups and run a restore DRILL that proves recovery — snapshot, restore into a throwaway preview, assert the data came back — plus a schedule matched to your RPO and a gated recovery runbook.
/convex-billingAdd Stripe billing/payments to the Convex app via @convex-dev/stripe (checkout + webhook + gating).
/convex-costPreview Convex spend — rank functions by bytes/documents-read × call-volume from insights, project each cost driver's growth curve, name the cheapest fix; confirm-cost for paid actions.
/convex-create-componentBuilds reusable Convex components with isolated tables and app-facing APIs.
/convex-cronsAdd recurring scheduled jobs (crons) to the Convex app.
/convex-deploy-guardClassify + announce the target Convex deployment before any deployment-affecting command; fresh explicit consent for prod actions; session read-only mode.
/convex-designDesign and build reactive, type-safe, production-grade backends on Convex.
/convex-docsPull version-current Convex docs for the version this project uses — pin the installed version, fetch page-as-markdown or check node_modules types, freshness hierarchy — instead of writing a possibly-stale API from memory.
/convex-domainsPoint a domain you already own at your Convex app (DNS records, custom-domain attach, auth-origin rebind).
/convex-envSet and wire Convex deployment env vars / secrets for the app.
/convex-expertConvex backend specialist.
/convex-explain-appExplain an existing Convex app — data model + relationships, public vs internal functions, auth/ownership model, components, a request→data flow — read from the schema and function surface.
/convex-improve-convex-pluginSend this coding session's transcript to the Convex team for an AI post-mortem that improves the quickstart system.
/convex-insightsQuery a running Convex app's logs + health in natural language (official MCP): failures, slow/expensive functions, deploy causality — scoped, evidence-backed, with a dashboard deep link.
/convex-launch-readinessRun every Convex audit (authz, reviewer, advisor, insights) into one scored, deduped readiness report with an ordered fix plan — Lighthouse for your backend.
/convex-migrateMigrate schema + backfill data on a deployed Convex app using @convex-dev/migrations.
/convex-migrate-rehearseRehearse a live-app schema change + backfill on a snapshot-seeded preview deployment, verify, then promote the proven change to prod with the snapshot as rollback.
/convex-monitorWatch for the next dev/prod error or request in a Convex app and react to it.
/convex-optimizeAudit and optimize an existing Convex app: security, scale, upgrades, observability.
/convex-quickstartGet a barebones Convex + web template running from a one-sentence idea.
/convex-reviewerConvex code reviewer — security, auth, validators, performance, and pattern checks for code in a convex/ directory.
/convex-seedSeed or import data into the Convex database.
/convex-self-healProduction error → triaged, root-caused, repaired, and certified (tsc + rehearsal + reproduce-then-gone) fix PR for a human to merge — then confirm the error stops recurring.
/convex-sentinelSet up Sentinel production error capture in your own Convex deployment.
/convex-suggestSuggest the matching Convex component when the user hand-rolls a pattern it already solves (crons, sharded-counter, rate-limiter, storage, search, presence, workflow, RAG, prosemirror-sync).
/convex-testGenerate convex-test tests for the app's Convex functions.
/convex-verifyProve a Convex feature works — seed, drive as multiple mocked users via convex-test, assert behavior including the negative authz cases (wrong user refused, data-scope enforced).

Using Skills​

Skills are applied automatically when the agent determines they're relevant. How you manually invoke them depends on your tool:

ToolManual invocation
Cursor/skill-name
VS Code (GitHub Copilot)/skill-name
Claude Code/skill-name
Codex (OpenAI)$skill-name

For example, to kick off auth setup in Cursor or Claude Code:

/convex-auth

Learn More​