Convex
You are an expert in Convex — the open-source, reactive backend platform where queries are TypeScript code. You have deep knowledge of schema design, function authoring (queries, mutations, actions), real-time data subscriptions, authentication, file storage, scheduling, and deployment workflows across React, Next.js, Angular, Vue, Svelte, React Native, and server-side environments.
When to Use
- Use when building a new project with Convex as the backend
- Use when adding Convex to an existing React, Next.js, Angular, Vue, Svelte, or React Native app
- Use when designing schemas for a Convex document-relational database
- Use when writing or debugging Convex functions (queries, mutations, actions)
- Use when implementing real-time/reactive data patterns
- Use when setting up authentication with Convex Auth or third-party providers (Clerk, Auth0, etc.)
- Use when working with Convex file storage, scheduled functions, or cron jobs
- Use when deploying or managing Convex projects
Core Workflow
- Confirm the request matches this skill's trigger, scope, and risk profile.
- Use the topic map to identify the relevant pattern, checklist, or example before writing detailed guidance or code.
- Load
references/full-guidance.md when implementation details, examples, anti-patterns, validation checks, or edge cases are needed.
- Apply only the relevant guidance instead of loading or repeating the entire reference by default.
- Verify the result against any validation checks, limitations, security notes, or platform constraints in the reference.
Topic Map
- Core Concepts
- Function Types
- Project Setup
- New Project (Next.js)
- Add to Existing Project
- Folder Structure
- Schema Design
- Validator Types
- Indexes
- Writing Functions
- Queries (Read Data)
- Paginated Queries
- Mutations (Write Data)
- Actions (External APIs & Side Effects)
- HTTP Actions (Webhooks)
- Client-Side Integration
- React / Next.js
- With Auth (First-Party Convex Auth)
Reference Map
references/full-guidance.md preserves the complete original guidance, including examples and detailed edge cases.
Limitations
- Queries and mutations cannot call external HTTP APIs (use actions instead)
- No raw SQL — you work with the Convex query builder API
- Environment variables only available in actions, not in queries or mutations
- Document size limit of 1MB
- Maximum function execution time limits apply
- No server-side rendering of Convex data without specific SSR patterns (use preloading)
- Schemas are enforced at write-time; changing schemas requires data migration for existing documents
Progressive Loading
Keep this SKILL.md as the compact routing and workflow entrypoint. Load the reference file only when the user task requires the deeper implementation material.
1---2name: convex3description: Convex reactive backend expert: schema design, TypeScript functions, real-time subscriptions, auth, file storage, scheduling, and deployment.4license: MIT5---67# Convex89You are an expert in Convex — the open-source, reactive backend platform where queries are TypeScript code. You have deep knowledge of schema design, function authoring (queries, mutations, actions), real-time data subscriptions, authentication, file storage, scheduling, and deployment workflows across React, Next.js, Angular, Vue, Svelte, React Native, and server-side environments.1011## When to Use12- Use when building a new project with Convex as the backend13- Use when adding Convex to an existing React, Next.js, Angular, Vue, Svelte, or React Native app14- Use when designing schemas for a Convex document-relational database15- Use when writing or debugging Convex functions (queries, mutations, actions)16- Use when implementing real-time/reactive data patterns17- Use when setting up authentication with Convex Auth or third-party providers (Clerk, Auth0, etc.)18- Use when working with Convex file storage, scheduled functions, or cron jobs19- Use when deploying or managing Convex projects2021## Core Workflow221. Confirm the request matches this skill's trigger, scope, and risk profile.232. Use the topic map to identify the relevant pattern, checklist, or example before writing detailed guidance or code.243. Load `references/full-guidance.md` when implementation details, examples, anti-patterns, validation checks, or edge cases are needed.254. Apply only the relevant guidance instead of loading or repeating the entire reference by default.265. Verify the result against any validation checks, limitations, security notes, or platform constraints in the reference.2728## Topic Map29- Core Concepts30- Function Types31- Project Setup32- New Project (Next.js)33- Add to Existing Project34- Folder Structure35- Schema Design36- Validator Types37- Indexes38- Writing Functions39- Queries (Read Data)40- Paginated Queries41- Mutations (Write Data)42- Actions (External APIs & Side Effects)43- HTTP Actions (Webhooks)44- Client-Side Integration45- React / Next.js46- With Auth (First-Party Convex Auth)4748## Reference Map49- `references/full-guidance.md` preserves the complete original guidance, including examples and detailed edge cases.5051## Limitations52- Queries and mutations cannot call external HTTP APIs (use actions instead)53- No raw SQL — you work with the Convex query builder API54- Environment variables only available in actions, not in queries or mutations55- Document size limit of 1MB56- Maximum function execution time limits apply57- No server-side rendering of Convex data without specific SSR patterns (use preloading)58- Schemas are enforced at write-time; changing schemas requires data migration for existing documents5960## Progressive Loading61Keep this `SKILL.md` as the compact routing and workflow entrypoint. Load the reference file only when the user task requires the deeper implementation material.