convex-pro-max
Installation
SKILL.md
Convex Pro Max
The definitive guide for building production-ready Convex applications.
Critical Rules
- Always use new function syntax with
args,returns, andhandler. - Always validate args AND returns on public functions.
- Always use indexes — never
.filter()on the database. Use.withIndex(). - Always
awaitpromises — enable@typescript-eslint/no-floating-promises. - Use
internal*functions for scheduled jobs, crons, and sensitive operations. - Never use
ctx.dbin actions — usectx.runQuery/ctx.runMutation. - Actions are NOT transactional — consolidate reads into single queries, writes into single mutations.
- Return
nullexplicitly if a function returns nothing (returns: v.null()). - Use
v.id("table")notv.string()for document IDs. - Install
@convex-dev/eslint-plugin— enforces object syntax, arg validators, explicit table IDs, correct runtime imports.
Function Types
Related skills