What problem does it solve?
This Skill provides a standardized set of Convex development guidelines that help teams build maintainable, scalable Convex apps by enforcing consistent function organization, query patterns, validation, TypeScript usage, and robust error handling.
Core Features & Use Cases
- Domain-driven function organization: Structure code by domain (e.g., users.ts, tasks.ts) with explicit schema usage and clear boundaries.
- Validation & error handling: Require return validators, use ConvexError for user-facing errors, and implement idempotent mutations to prevent retries from causing inconsistencies.
- TypeScript-centric practices: Emphasize strict typing with Id/Doc types, typed inputs/outputs, and end-to-end type safety.
- Use Case: Onboarding a new Convex project team by refactoring to domain-based modules and documenting conventions.
Quick Start
Review the Convex Best Practices guidelines and apply them to your project by organizing functions by domain, adding schema definitions, and implementing explicit validators and error handling.