技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
convex【数据与研究】Assists with building real-time reactive backends using Convex. Use when creating databases with automatic client sync, reactive queries, file storage, scheduled functions, or full-text and vector search. Trigger words: convex, reactive backend, real-time database, useQuery, useMutation, convex functions, convex schema.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Convex is a reactive backend platform where database queries, mutations, and actions are defined in TypeScript and data automatically syncs to connected clients in real-time. It eliminates WebSocket code, polling, and cache invalidation, providing ACID transactions and optimistic updates out of the box.
defineSchema() with defineTable() and typed validators (v.string(), v.number(), v.id("tableName")), and define indexes for all filtered and sorted queries.useQuery() for reactive data subscriptions that auto-update, useMutation() for writes with optimistic updates, and usePaginatedQuery() for infinite scroll.convex-auth for built-in auth or integrate Clerk/Auth0, and validate user identity at the start of every mutation with ctx.auth.getUserIdentity().ctx.scheduler.runAfter() for delayed execution and cron jobs for recurring tasks instead of making mutations slow.ctx.storage.store() for upload and ctx.storage.getUrl() for serving URLs without S3 or CDN configuration.searchIndex() or vector search with vectorIndex() for AI/RAG applications, with metadata filtering.User request: "Create a real-time chat app with Convex and React"
Actions:
messages table with schema, author reference, and timestamp indexuseQuery() in React to subscribe to messages with automatic real-time updatesOutput: A chat application where messages appear instantly for all connected users without WebSocket code.
User request: "Implement search across articles with both keyword and semantic search"
Actions:
searchIndex()vectorIndex()Output: A dual search system supporting both keyword matching and semantic similarity queries.
defineSchema() catches type errors at deploy time, not runtime.ctx.scheduler.runAfter() for background work instead of making mutations slow.