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
Convex
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.
Convex by majiayu000 · b8e00ac
npx skillmds add majiayu000/convex File contents
---name: convexdescription: 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.---
<objective>
Provide comprehensive Convex development guidance to avoid common mistakes and ensure code compiles on first try.
</objective>
<quick_reference>
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
</quick_reference>
<process>
1. Read `references/guide.md` for comprehensive Convex patterns
2. Apply patterns to the specific task
3. Verify against the checklist in section 18 of the guide
</process>
<required_reading>
Always load: references/guide.md
</required_reading>
majiayu000/claude-skill-registry-data/tree/main/development/convex commit b8e00ac539
Frequently asked questions
Run npx skillmds add majiayu000/convex in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
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. It is listed under Web & Frontend on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
majiayu000 (@majiayu000) published this skill. Their other Agent Skills are listed on their SkillMD profile.