convex-schema-validator

Define and validate Convex database schemas with TypeScript.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/FlorinSenoner/the-dahan-codex --skill convex-schema-validator-florinsenoner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-schema-validator
Source: https://github.com/FlorinSenoner/the-dahan-codex/tree/main/.agents/skills/convex-schema-validator
Command: npx skills add https://github.com/FlorinSenoner/the-dahan-codex --skill convex-schema-validator-florinsenoner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of defining robust, type-safe, and well-indexed database schemas in Convex, ensuring data integrity and facilitating smooth schema evolution.

Core Features & Use Cases

  • Schema Definition: Create tables with precise data types, optional fields, and unions.
  • Index Configuration: Define single, compound, and full-text search indexes for efficient querying.
  • Migration Strategies: Implement safe strategies for adding fields and backfilling data.
  • Use Case: When setting up a new feature in your Convex application that requires storing user profiles with various optional settings, use this Skill to define the profiles table with nested objects and union types for settings, ensuring all data is correctly structured and indexed.

Quick Start

Use the convex-schema-validator skill to define a new table named 'products' with fields 'name' (string), 'price' (number), and 'isActive' (boolean).

Frequently Asked Questions about convex-schema-validator

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

FAQPage Schema
Does Convex support full-text search indexes?

Yes, Convex supports full-text search indexes alongside single and compound indexes. You can configure these index types during schema definition to enable efficient querying across your application's tables.

How do I configure indexes in a Convex schema?

Configure indexes in a Convex schema by defining single, compound, and full-text search indexes. These configurations optimize query efficiency for tables storing structured data like user profiles.

Can I use union types and optional fields in a Convex schema?

Yes, Convex schemas support complex data types including union types and optional fields. You can structure tables with nested objects and varied settings to ensure all application data is correctly typed.

What is the best way to handle schema migrations in Convex?

Handle Convex schema migrations by implementing safe strategies for adding fields and backfilling data. This facilitates smooth schema evolution while maintaining data integrity as application features expand.

Does Convex support full-text search indexes?

Yes, Convex supports full-text search indexes alongside single and compound indexes. You can configure these index types during schema definition to enable efficient querying across your application's tables.