LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

convex-schema-validator

Defining and validating database schemas with proper typing, index configuration, optional fields, unions, and migration strategies for schema changes

400stars30forksUpdated 5/28/2026
Web Development#validation#migrations#convex#indexes#schema-validation#schema#database-schema#typescript

Security Assessment

Safe(100/100)
Security Score100/100

About convex-schema-validator

Convex Schema Validator helps developers define and validate database schemas in Convex using strongly typed validators and structured schema definitions. It provides guidance for configuring tables, field validation, optional properties, unions, nested objects, and relationships between documents. By using Convex schema validators, developers can create consistent and type-safe database models while reducing runtime validation errors and improving maintainability in TypeScript-based applications. The skill also emphasizes referencing official Convex documentation before implementation to ensure compatibility with the latest schema, index, and data type features.

The skill covers a wide range of schema modeling capabilities, including primitive validators such as strings, numbers, booleans, IDs, arrays, records, and objects. It demonstrates how to define indexes for efficient querying, including single-field indexes, compound indexes, sorting indexes, and full-text search indexes. Advanced schema structures such as nested objects, arrays of objects, record types with dynamic keys, discriminated unions, and literal-based unions are also included. Additionally, it introduces migration-oriented schema design strategies by showing how optional fields and unions can support evolving database structures over time.

This skill is designed for developers building backend applications with Convex and TypeScript who need structured guidance for database schema creation and validation. It is particularly useful for teams working on scalable applications that require consistent data modeling, efficient indexing, and maintainable schema evolution practices. Common use cases include task management systems, messaging platforms, analytics dashboards, ecommerce order management, and applications that rely on typed relational references between database tables.

FAQ

What types of validators are supported in this skill?

The skill includes validators for strings, numbers, booleans, null values, bigint values, arrays, objects, optional fields, unions, literals, records, IDs, bytes, and unrestricted values using v.any().

Does this skill support index configuration in Convex schemas?

Yes. The examples include single-field indexes, compound indexes, sorting indexes, and full-text search indexes using Convex schema configuration methods.

Can this skill be used with TypeScript projects?

Yes. The schema examples and validator mappings are designed specifically for TypeScript and show the corresponding TypeScript types for each validator.

Does the skill include strategies for schema migrations?

The content references migration strategies through the use of optional fields and unions, which can help support evolving schemas over time.

Are discriminated unions and nested object schemas supported?

Yes. The examples demonstrate discriminated unions with literal type fields as well as nested object structures and arrays of objects.

All Files

2 files
SKILL.md9.9 KB
View
agents/openai.yaml0.1 KB
View

Install convex-schema-validator

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

waynesutton/convexskills

Related Skills

short-form-video

14

multi-asset-morning-briefing

7,907

content-strategy

2,901

doherty-threshold

2,901