What problem does it solve?
This Skill provides a structured, battle-tested approach to building Convex applications, ensuring teams can deliver robust, scalable data-driven apps with consistent patterns.
Core Features & Use Cases
- Domain-based function organization: separate files by domain (e.g., users.ts, tasks.ts) to keep code maintainable.
- Validation and error handling: always define argument/return validators and use ConvexError for user-facing errors.
- Efficient data access: use indexes and withIndex for performant queries; design queries around reactive patterns.
- TypeScript discipline: leverage Id and Doc types for strong typing across the data layer.
- Internal vs public functions and governance: separate internal mutations from public API surface to protect sensitive operations.
- Use case: a Convex-based app that needs clear architecture, reliable error handling, and scalable data access as the project grows from a handful of routes to a broader domain.
Quick Start
Apply the Convex best practices to your project by organizing functions by domain, adding validation, adopting index-based queries, and standardizing error handling.