What problem does it solve?
It solves the problem of building new Convex query, mutation, and action functions without skipping critical validation, authentication, or authorization logic.
Core Features & Use Cases
- Type-safe function generation: Ensures every function defines
args validators and returns validators for predictable runtime behavior.
- Secure auth and authorization patterns: Recommends
ctx.auth.getUserIdentity() checks and ownership/permission checks before reading or writing protected data.
- Correct function classification: Guides you to use
query for read-only access, mutation for transactional writes, and action for external API calls (including optional "use node" for Node.js-only SDKs).
- Operational safety checklist: Emphasizes awaited promises, indexed querying guidance, descriptive errors, and correct use of
internal.* for scheduled/backend-only work.
Quick Start
Use the function-creator skill to design a new Convex mutation for updating a user-owned resource by providing the resource id, the fields you want to allow updating, and the authorization rule that must be enforced.