convex
使用Convex后端开发模式、验证器、索引、操作、查询、突变、文件存储、调度、React hooks和组件。在编写Convex代码、调试Convex问题或规划Convex架构时使用。
📖 中文导读:使用Convex后端开发模式、验证器、索引、操作、查询、突变、文件存储、调度、React hooks和组件。在编写Convex代码、调试Convex问题或规划Convex架构时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: convex description: Convex backend development patterns, validators, indexes, actions, queries, mutations, file storage, scheduling, React hooks, and components. Use when writing Convex code, debugging Convex issues, or planning Convex architecture.
Provide comprehensive Convex development guidance to avoid common mistakes and ensure code compiles on first try. Key rules (full details in references/guide.md):Functions: Import from ./_generated/server, use query({ args, handler }) syntax
Indexes: Never use .filter() - use .withIndex(). Never define by_creation_time index
Actions: Add "use node"; at top, never use ctx.db - use ctx.runQuery/ctx.runMutation
Scheduler: Auth does NOT propagate - use internal functions
React: Never call hooks conditionally - use "skip" pattern