What problem does it solve? Writing Convex backend functions correctly requires knowing when to use queries versus mutations versus actions, how to validate arguments, and how to handle errors and internal-only logic. This Skill provides the patterns and code templates to implement Convex functions correctly the first time. ## Core Features & Use Cases - Function Type Guidance: Clear rules for choosing between reactive queries, transactional mutations, external-API actions, and HTTP webhook endpoints. - Validation & Error Handling: Enforces argument and return validators with convex/values and user-facing errors via ConvexError. - Internal Functions & Scheduling: Patterns for internal-only mutations and scheduled functions using ctx.scheduler. - Use Case: When building a chat feature, use this Skill to generate a messages.ts file with a paginated list query, a send mutation with validation, and an internal mutation that notifies subscribers. ## Quick Start Ask the AI to write a Convex mutation that creates a task with argument validation and a query that lists tasks by user using an index.