Convex Schema Builder

Design and evolve Convex schemas with proper indexes, relationships, and repo-specific constraints. Use when editing convex/schema.ts or adding tables.

majiayu000 4b06417 2 files · 2.0 KB Updated 567 repo stars

File contents

Convex Schema Builder

Use this skill for convex/schema.ts work.

Core rules

  • Prefer flat, relational documents over deep nesting.
  • Index foreign keys and common filter paths early.
  • Use arrays only for small, naturally bounded sets.
  • Keep schema changes compatible with current data unless the task explicitly includes a migration.

AgentForge-specific guidance

  • Schema should support the data layer only. Do not model Mastra runtime execution inside Convex unless the repo already does so intentionally.
  • If a schema change is for daemon memory or runtime coordination, cross-check docs/TECH-REFERENCE.md before changing table shapes.

References

majiayu000/claude-skill-registry-data/tree/main/data/convex-schema-builder commit 4b06417143

Frequently asked questions

npx skillmds add majiayu000/convex-schema-builder