What problem does it solve?
This Skill provides developers with best practices for building production-ready Convex applications, covering various aspects such as function organization, query patterns, validation, TypeScript usage, error handling, and the design philosophy of Convex.
Core Features & Use Cases
- Best Practices Guide: Offers detailed guidelines for structuring Convex applications.
- Code Quality Standards: Includes a reference to
@convex-dev/eslint-plugin for build-time validation.
- Documentation Sources: Provides links to primary documentation for deeper understanding.
- Function Organization: Explains how to organize Convex functions by domain.
- Argument and Return Validation: Shows examples of validating arguments and return types.
- Query Patterns: Demonstrates efficient query techniques using indexes.
- Error Handling: Describes the use of
ConvexError for user-facing errors.
- TypeScript Best Practices: Shares TypeScript-related recommendations for Convex apps.
- Internal vs Public Functions: Differentiates between public and internal functions.
- CRUD Pattern: Provides an example of a complete CRUD pattern for Convex tasks.
Quick Start
Apply the convex-best-practices skill to your Convex project to follow established patterns and improve code quality.