cloudai-x/claude-workflow/convex-backend
- community
Checking that the SKILL.md file is still in the repository.
Convex backend development guidelines. Use when writing Convex functions, schemas, queries, mutations, actions, or any backend code in a Convex project. Triggers on tasks involving Convex database operations, real-time subscriptions, file storage, or serverless functions.
Install
npx vskill@latest install cloudai-x/claude-workflow/convex-backendSKILL.md
Convex Backend Guidelines
When to Load
- Trigger: Convex-specific development, writing Convex functions, schemas, queries, mutations, actions, or real-time subscriptions
- Skip: Project does not use Convex as its backend
Comprehensive guide for building Convex backends with TypeScript. Covers function syntax, validators, schemas, queries, mutations, actions, scheduling, and file storage.
When to Apply
Reference these guidelines when:
- Writing new Convex functions (queries, mutations, actions)
- Defining database schemas and validators
- Implementing real-time data fetching
- Setting up cron jobs or scheduled functions
- Working with file storage
- Designing API structure
Rule Categories
| Category | Impact | Description | |
|---|---|---|---|
| Function Syntax | CRITICAL | New function syntax with args/returns/handler | |
| Validators | CRITICAL | Type-safe argument and return validation | |
| Schema Design | HIGH | Table definitions, indexes, system fields | |
| Query Patterns | HIGH | Efficient data fetching with indexes | |
| Mutation Patterns | MEDIUM | Database writes, patch vs replace | |
| Action Patterns | MEDIUM | External API calls, Node.js runtime | |
| Scheduling | MEDIUM | Crons and delayed function execution | |
| File Storage | LOW | Blob storage and metadata |
Quick Reference
Function Registration
Function Syntax (Always Use This)
Common Validators
| Type | Validator | Example | |
|---|---|---|---|
| String | v.string() | "hello" | |
| Number | v.number() | 3.14 | |
| Boolean | v.boolean() | true | |
| ID | v.id("tableName") | doc._id | |
| Array | v.array(v.string()) | ["a", "b"] | |
| Object | v.object({...}) | {name: "x"} | |
| Optional | v.optional(v.string()) | undefined | |
| Union | v.union(v.string(), v.number()) | "x" or 1 | |
| Literal | v.literal("status") | "status" | |
| Null | v.null() | null |
Function References
Query with Index
Key Rules
- Always include `args` and `returns` validators on all functions
- Use `v.null()` for void returns - never omit return validator
- Use `withIndex()` not `filter()` - define indexes in schema
- Use `internalQuery/Mutation/Action` for private functions
- Actions cannot access `ctx.db` - use runQuery/runMutation instead
- Include type annotations when calling functions in same file
Full Compiled Document
For the complete guide with all rules and detailed code examples, see AGENTS.md.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/convex-backend/SKILL.md
Popularity
- Repository stars
- 1,300
- Repository forks
- 185
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cloudai-x/claude-workflow/convex-backend)