What problem does it solve?
This Skill solves the common pain point of developers writing Convex backend functions that are inefficient, insecure, or non-compliant with platform best practices, leading to bugs, performance issues, and security vulnerabilities in full-stack applications.
Core Features & Use Cases
- Full function type coverage: Provides clear guidance and examples for Convex queries, mutations, actions, HTTP actions, internal functions, and scheduled functions, with explicit use cases for each type.
- Production-ready patterns: Includes mandatory argument validation, proper error handling with ConvexError, secure internal function access, and correct database access patterns to avoid common pitfalls.
- Real-world code examples: Offers complete, working samples for common workflows like user data fetching, task management, external payment processing, webhook handling, and scheduled notifications.
Use case example: For a task management app, use this Skill to implement reactive cached queries for user task lists, transactional mutations for creating and deleting tasks, and actions for integrating with external payment APIs.
Quick Start
Use the convex-functions skill to write a validated Convex mutation that creates a new task for a user with proper error handling for missing users.