convex

Develop Convex backend functions with schemas, security, and real-time sync.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/pratikpakhale/convex-next-starter --skill convex-pratikpakhale
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex
Source: https://github.com/pratikpakhale/convex-next-starter/tree/main/.agent/skills/convex
Command: npx skills add https://github.com/pratikpakhale/convex-next-starter --skill convex-pratikpakhale

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and patterns for developing robust backend applications using Convex, covering everything from basic function definitions to advanced security and real-time features.

Core Features & Use Cases

  • Function Development: Write queries, mutations, actions, and HTTP endpoints.
  • Schema & Validation: Define and validate database schemas.
  • Real-time & State Management: Build reactive UIs and manage application state.
  • Security & Best Practices: Implement secure authorization, rate limiting, and audit trails.
  • Use Case: A developer needs to build a new feature that involves creating, reading, updating, and deleting data, while also handling real-time updates and ensuring the data is securely accessed. This Skill provides all the necessary patterns and examples.

Quick Start

Use the convex skill to learn how to write a basic query function.

Frequently Asked Questions about convex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define database schemas and validate data in a Convex backend?

To define database schemas in a Convex backend, you use schema validation rules within your function definitions. This ensures data integrity for queries and mutations by strictly enforcing types before real-time data synchronization occurs.

How do I set up real-time data synchronization for reactive UIs?

Real-time data synchronization is set up by defining query functions that the Convex client automatically subscribes to. This approach pushes live database updates directly to your reactive UI components without requiring manual polling.

What is the difference between mutations, actions, and HTTP actions in backend functions?

Mutations modify database state transactionally, actions handle side effects like third-party API calls, and HTTP actions process external webhooks. Selecting the correct function type ensures scalable and secure backend operations.

How do I implement secure authorization and rate limiting for API endpoints?

Secure authorization and rate limiting are implemented within your function definitions using built-in security patterns. This approach protects your backend endpoints by validating user permissions and restricting excessive API requests.

Can I schedule recurring tasks and cron jobs using Convex?

Yes, you can schedule recurring tasks using Convex cron job scheduling. This feature allows you to automate backend workflows reliably by executing specified mutations or actions at predefined time intervals.