Scaffold a new Convex app with realtime + auth + file uploads
언제 쓸까: You're starting fresh and want correct Convex patterns from file one.
사전 조건
- Convex CLI — npm create convex
흐름
-
Design the schemaUse the convex-schema-validator skill. Design tables for users, projects, and files with proper indices.✓ 복사됨→ Schema uses v.id(), indices declared, relationships correct
-
Wire queries and mutationsUse the convex-functions skill. Implement CRUD for projects.✓ 복사됨→ Query for reads, mutation for writes, no action misuse
-
Add realtime + file uploadsUse convex-realtime and convex-file-storage to make projects live-update with file attachments.✓ 복사됨→ React subscribes via useQuery, files stored via storage.generateUploadUrl
결과: A correctly-structured Convex app you can build on.
함정
- Using actions where mutations suffice — Skill enforces: mutations for DB writes, actions for external I/O