What problem does it solve?
This Skill addresses the complexity and fragmentation of building large Convex backends by providing a cohesive set of architectural patterns. It guides you on organizing queries, mutations, and actions, implementing robust authentication, and adopting resilient generation practices to ensure progress even during long-running tasks.
Core Features & Use Cases
- Standardized Query/Mutation/Action patterns for real-time Convex apps
- TypeScript recursion workarounds via internal helpers to avoid depth limits
- Auth patterns to reliably fetch or create the current user in mutations and actions
- Normalized schema guidance and indexing strategies for scalable data models
- Resilient generation patterns with long-running actions and DB-persisted state
- Testing patterns and utilities to validate Convex workflows
Quick Start
Review the convex-patterns documentation and start refactoring your project to reuse the provided patterns. Begin by extracting authentication and helper logic into internal queries and using actions for long-running tasks, ensuring DB persistence for resilience.