convex-functions

Installation
Summary

Build Convex queries, mutations, actions, and HTTP endpoints with validation, error handling, and proper runtime considerations.

  • Four function types for different use cases: queries (read-only, cached, reactive), mutations (transactional writes), actions (external API calls), and HTTP actions (webhooks and API endpoints)
  • All functions require explicit argument and return validators using Convex's v schema system, with ConvexError for user-facing error messages
  • Internal functions restrict sensitive operations to server-side calls only; actions access the database indirectly via runQuery and runMutation
  • Includes scheduling support for delayed function execution and comprehensive examples covering messaging, payments, webhooks, and notification workflows
SKILL.md

Convex Functions

Master Convex functions including queries, mutations, actions, and HTTP endpoints with proper validation, error handling, and runtime considerations.

Code Quality

All examples in this skill comply with @convex-dev/eslint-plugin rules:

  • Object syntax with handler property
  • Argument validators on all functions
  • Explicit table names in database operations

See the Code Quality section in convex-best-practices for linting setup.

Documentation Sources

Before implementing, do not assume; fetch the latest documentation:

Related skills
Installs
2.4K
GitHub Stars
396
First Seen
Jan 24, 2026