Skip to main content

db-convex

Use when writing Convex schema, queries, mutations, actions, or workflows. Triggers on Convex schema, defineTable, Convex query, Convex mutation, Convex action, httpAction, searchIndex, Convex index, identity.subject, use node, ConvexError, Convex workflow, v.string, v.object, Convex auth, Convex function, reactive query, Convex pagination, schema.ts.

Quellinformationen

Repository
george11642/george-plugins
Letzte Quellaktivität
11. März 2026 um 22:42
Erkannte Sprache von SKILL.md
Englisch
Sterne
2
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
db-convex
description
Use when writing Convex schema, queries, mutations, actions, or workflows. Triggers on Convex schema, defineTable, Convex query, Convex mutation, Convex action, httpAction, searchIndex, Convex index, identity.subject, use node, ConvexError, Convex workflow, v.string, v.object, Convex auth, Convex function, reactive query, Convex pagination, schema.ts.
# DB Convex ## Schema Pattern ```typescript // schema.ts (check project CLAUDE.md for exact path) defineTable({ field: v.string(), optional: v.optional(v.string()), nested: v.object({ key: v.string() }), }) .index("by_field", ["field"]) .searchIndex("search_field", { searchField: "field" }) ``` ## Function Types | Type | Use Case | Runtime | |------|----------|---------| | `query` | Read data, reactive | V8 (no Node APIs) | | `mutation` | Write data, transactional | V8 | | `action` | External APIs, side effects | Node.js (`"use node"`) | | `httpAction` | Webhook endpoints | Node.js | ## Key Patterns - Auth: `identity.subject === clerkUserId` (NOT `tokenIdentifier.includes()`) - Stripe SDK needs `"use node"` — split into separate files - Check project CLAUDE.md for workflow, HTTP webhook, and cron file locations ## Anti-Patterns - `instanceof ConvexError` (may fail in monorepos) -- use `"data" in err` (duck-type check) - ConvexError data in actions (doesn't propagate to client) -- use client-side pre-flight checks for action errors
Auf GitHub ansehen