Database
convex-development - Claude MCP Skill
Apply Convex database best practices for cost optimization, performance, security, and architecture. Use when: building Convex backends, optimizing queries, handling embeddings/vector search, reviewing Convex code, designing schemas, planning migrations, or discussing Convex architecture. Keywords: Convex, real-time database, queries, mutations, actions, indexes, pagination, vector search, embeddings, schema, migrations, ctx.auth, convex-helpers, bandwidth.
SEO Guide: Enhance your AI agent with the convex-development tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to apply convex database best practices for cost optimization, performance, security, and architecture.... Download and configure this skill to unlock new capabilities for your AI workflow.
Documentation
SKILL.md# Convex Development Best practices for robust, secure, performant, cost-effective Convex backends. ## Core Principle **Deep modules via the `convex/model/` pattern.** Most logic should be plain TypeScript; query/mutation wrappers should be thin. ``` convex/ _generated/ # MUST commit to git! model/ # Business logic (testable, reusable) users.ts # Public API (thin wrappers) schema.ts ``` ## Critical Rules 1. **ALWAYS commit `convex/_generated/`** - Required for type-checking, CI/CD, team productivity 2. **Index what you query** - `.withIndex()` not `.filter()` for efficient queries 3. **Compound indexes for multi-field filters** - If querying `userId + status`, create index `["userId", "status"]` to filter at index level, not post-fetch 4. **Paginate everything** - Never unbounded `.collect()` on user-facing queries 5. **Trust `ctx.auth` only** - Never user-provided auth data ## Quick Reference | Need | Use | |------|-----| | Read data reactively | `query` | | Write to database | `mutation` | | External APIs, vector search | `action` | | Scheduled tasks | `internalMutation` / `internalAction` | ## Anti-Patterns Scanner Run `scripts/anti_patterns_scanner.py ./convex` to detect common issues. ## Detailed References For comprehensive guidance, see: - `references/cost-mitigation.md` - Bandwidth optimization, indexing, pagination - `references/embeddings-vectors.md` - Vector search patterns, co-location decisions - `references/query-performance.md` - Compound indexes, query segmentation, caching - `references/security-access.md` - Auth patterns, RLS, RBAC, convex-helpers - `references/schema-migrations.md` - Expand/Contract pattern, environment management - `references/architectural-patterns.md` - File organization, state machines, naming ## Philosophy - **Cost First**: Bandwidth is often the largest cost. Index aggressively, paginate everything. - **Security First**: Never trust client input. Always use `ctx.auth`. - **Reactivity is Power**: Use `useQuery` for real-time updates; don't forfeit with one-off fetches. - **Type Safety End-to-End**: Leverage Convex's full type chain from database to UI.
Signals
Information
- Repository
- phrazzld/claude-config
- Author
- phrazzld
- Last Sync
- 3/2/2026
- Repo Updated
- 3/1/2026
- Created
- 1/13/2026
Reviews (0)
No reviews yet. Be the first to review this skill!
Related Skills
mem0
Integrate Mem0 Platform into AI applications for persistent memory, personalization, and semantic search. Use this skill when the user mentions "mem0", "memory layer", "remember user preferences", "persistent context", "personalization", or needs to add long-term memory to chatbots, agents, or AI apps. Covers Python and TypeScript SDKs, framework integrations (LangChain, CrewAI, Vercel AI SDK, OpenAI Agents SDK, Pipecat), and the full Platform API. Use even when the user doesn't explicitly say "mem0" but describes needing conversation memory, user context retention, or knowledge retrieval across sessions.
upgrade-nodejs
Upgrading Bun's Self-Reported Node.js Version
cursorrules
CrewAI Development Rules
cn-check
Install and run the Continue CLI (`cn`) to execute AI agent checks on local code changes. Use when asked to "run checks", "lint with AI", "review my changes with cn", or set up Continue CI locally.
Related Guides
Bear Notes Claude Skill: Your AI-Powered Note-Taking Assistant
Learn how to use the bear-notes Claude skill. Complete guide with installation instructions and examples.
Mastering tmux with Claude: A Complete Guide to the tmux Claude Skill
Learn how to use the tmux Claude skill. Complete guide with installation instructions and examples.
OpenAI Whisper API Claude Skill: Complete Guide to AI-Powered Audio Transcription
Learn how to use the openai-whisper-api Claude skill. Complete guide with installation instructions and examples.