convex

Guide Convex backend development covering schemas, functions, indexing, and React integration.

Updated Oct 30, 2025
One-click install
npx skills add https://github.com/HexAI-inc/v0-futuristic-website-design --skill convex-hexai-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex
Source: https://github.com/HexAI-inc/v0-futuristic-website-design/tree/main/.agents/skills/convex
Command: npx skills add https://github.com/HexAI-inc/v0-futuristic-website-design --skill convex-hexai-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and best practices for developing robust and efficient backends using Convex, helping developers avoid common pitfalls and write high-quality code.

Core Features & Use Cases

  • Schema & Validators: Define and enforce data structures.
  • Function Management: Understand and correctly use queries, mutations, and actions.
  • Indexing & Querying: Optimize database performance and retrieval.
  • Actions & HTTP Endpoints: Build serverless functions and APIs.
  • Scheduling: Implement cron jobs and scheduled tasks.
  • File Storage: Integrate file uploads and management.
  • React Client Patterns: Develop seamless frontend integrations.
  • Use Case: Debugging a complex Convex query that is unexpectedly slow or returning incorrect data by referencing the indexing and querying best practices.

Quick Start

Use the convex skill to understand how to define a new table schema with an index.

Frequently Asked Questions about convex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define a database schema and create indexes in Convex?

Convex schema definition uses built-in validators to strictly enforce data structures, and you create indexes within the schema file to optimize database querying performance. This approach ensures data integrity and fast retrieval.

What is the difference between queries, mutations, and actions in Convex?

In Convex, queries read database data, mutations write data synchronously within a transaction, and actions handle external side effects or asynchronous operations. Using these function types correctly structures your backend logic and database interactions.

How do I integrate a Convex backend with a React client?

You integrate Convex with a React client using provided React hooks to fetch data and trigger mutations seamlessly. This pattern ensures real-time updates and state synchronization between your frontend components and the serverless backend.

Why is my Convex database query unexpectedly slow or returning incorrect data?

A slow or incorrect Convex database query typically results from missing indexes or inefficient querying patterns. Reviewing indexing strategies and querying best practices helps optimize performance and ensures accurate data retrieval.

Can I schedule cron jobs and manage file storage with Convex?

Yes, Convex supports scheduling cron jobs for recurring tasks and provides built-in file storage for managing uploads. These features allow you to build comprehensive serverless backends handling both structured data and binary files.

How do I build serverless HTTP endpoints and APIs using Convex?

You build serverless HTTP endpoints and APIs in Convex using actions, which handle external HTTP requests and interact with your database. This approach exposes your backend functionality to external services and clients.