convex
Provides comprehensive guidance for Convex backend development including database operations, queries, mutations, actions, schemas, authentication, file…

Установить convex в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Convex Backend Development Skill
CRITICAL: Activation Protocol
Before proceeding with ANY Convex-related implementation:
- EVALUATE: Is this question about Convex backend, database, functions, or data operations?
- ACTIVATE: If YES, you MUST use this skill for accurate Convex implementation patterns.
- COMMIT: State "ACTIVATING CONVEX SKILL" before proceeding.
When to Use This Skill
MANDATORY activation for:
- Database queries and mutations
- Schema definitions and validation
- Query, mutation, and action functions
- Real-time data subscriptions
- Authentication setup (Auth.js, Clerk, custom)
- File storage operations
- Scheduled jobs and cron tasks
- HTTP API endpoints
- Full-text search implementation
- AI agent integration
- Convex Components
- Deployment and environment configuration
- Data import/export
- Testing Convex functions
- Performance optimization and indexes
- Any question containing: Convex, query, mutation, action, ctx, db, schema, useQuery, useMutation
DO NOT use for:
- Pure React component styling (use design-guidance skill)
- Frontend routing unrelated to data fetching
- General TypeScript questions without Convex context
- UI/UX design patterns
Documentation Location
All Convex documentation is located in: .claude/skills/convex/docs
Key documentation areas:
- Database:
docs/database/- Reading, writing, schemas, types, pagination - Functions:
docs/functions.mdx- Queries, mutations, actions - Auth:
docs/auth/- Authentication patterns and providers - File Storage:
docs/file-storage/- Upload and manage files - Scheduling:
docs/scheduling/- Cron jobs and scheduled functions - HTTP API:
docs/http-api/- External HTTP endpoints - Search:
docs/search/- Full-text search implementation - AI/Agents:
docs/agents.mdx,docs/ai.mdx- AI integration - Components:
docs/components/- Reusable Convex components - Production:
docs/production/- Deployment, hosting, integrations - Testing:
docs/testing/- Test patterns for Convex functions - CLI:
docs/cli.md- Command-line interface
Core Convex Concepts
Functions (queries, mutations, actions)
- Queries: Read-only, real-time reactive, cached
- Mutations: Write operations, transactional, consistent
- Actions: External integrations, non-transactional, async operations
Database Operations
- Document-based NoSQL database
- Strong consistency with OCC (Optimistic Concurrency Control)
- Automatic indexes for queries
- Schema validation with TypeScript types
Real-time Subscriptions
useQueryhook for reactive data- Automatic cache invalidation
- Optimistic updates with
useMutation
Core Principles
- Type Safety: Use generated types from schema with
defineSchema - Reactive Data: Prefer queries over actions for data that needs real-time updates
- Consistent Writes: Use mutations for all database writes
- Indexes: Define indexes for efficient query performance
- Schema Validation: Validate all data with
vvalidators - Error Handling: Use ConvexError for user-facing errors
- Security: Implement auth checks in every function that needs protection
Common Patterns
Query Pattern
export const listItems = query({
args: { limit: v.optional(v.number()) },
handler: async (ctx, args) => {
return await ctx.db.query("items")
.withIndex("by_creation_time")
.order("desc")
.take(args.limit ?? 10);
},
});
Mutation Pattern
export const createItem = mutation({
args: { name: v.string(), description: v.string() },
handler: async (ctx, args) => {
const identity = await ctx.auth.getUserIdentity();
if (!identity) throw new Error("Unauthenticated");
return await ctx.db.insert("items", {
name: args.name,
description: args.description,
userId: identity.subject,
createdAt: Date.now(),
});
},
});
Action Pattern
export const sendEmail = action({
args: { to: v.string(), subject: v.string(), body: v.string() },
handler: async (ctx, args) => {
// Call external API
await fetch("https://api.email-service.com/send", {
method: "POST",
body: JSON.stringify(args),
});
},
});
Workflow
- Evaluate Question: Determine if Convex-related
- Identify Topic: Database, auth, functions, file storage, etc.
- Search Documentation: Use Grep to find relevant docs in the topic area
- Read Specific Docs: Read the relevant documentation files
- Apply Patterns: Follow established Convex patterns and best practices
- Generate Code: Provide type-safe, validated, production-ready code
Progressive Documentation Reading
Only read documentation files when necessary:
- Level 1: Answer from common patterns if straightforward
- Level 2: Grep for relevant topics in docs folder
- Level 3: Read specific documentation
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Grep - 03
Glob
Вложенные файлы
- docs/_betaAdmonition.mdx
- docs/_betaContactUsAdmonition.mdx
- docs/_convexValues.mdx
- docs/_proFeatureUpsell.mdx
- docs/agents.mdx
- docs/agents/agent-usage.mdx
- docs/agents/context.mdx
- docs/agents/debugging.mdx
- docs/agents/files.mdx
- docs/agents/getting-started.mdx
- docs/agents/human-agents.mdx
- docs/agents/messages.mdx
- docs/agents/playground.mdx
- docs/agents/rag.mdx
- docs/agents/rate-limiting.mdx
- docs/agents/streaming.mdx
- docs/agents/threads.mdx
- docs/agents/tools.mdx
- docs/agents/usage-tracking.mdx
- docs/agents/workflows.mdx
- docs/ai.mdx
- docs/ai/convex-mcp-server.mdx
- docs/ai/using-cursor.mdx
- docs/ai/using-github-copilot.mdx
- docs/ai/using-windsurf.mdx
- docs/arch.png
- docs/auth.mdx
- docs/auth/_under_the_hood.mdx
- docs/auth/advanced/_category_.json
- docs/auth/advanced/custom-auth.mdx
- docs/auth/advanced/custom-jwt.mdx
- docs/auth/auth0.mdx
- docs/auth/authkit/_category_.json
- docs/auth/authkit/auto-provision.mdx
- docs/auth/authkit/index.mdx
- docs/auth/clerk.mdx
- docs/auth/convex-auth.mdx
- docs/auth/database-auth.mdx
- docs/auth/debug.mdx
- docs/auth/functions-auth.mdx
FAQ
Что делает скилл convex?
Provides comprehensive guidance for Convex backend development including database operations, queries, mutations, actions, schemas, authentication, file storage, real-time subscriptions, scheduling, HTTP APIs, search, AI agents, and deployment. MUST activate when user asks about: backend data operations, Convex functions, database queries, schemas, real-time data, auth setup, file uploads, scheduled jobs, HTTP endpoints, or any Convex-specific implementation questions. DO NOT activate for frontend UI/styling or general React component questions unrelated to Convex.
Как установить скилл convex?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл convex запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
