convex-functions

Write Convex function definitions with validators and safe error handling.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/althof3/TCG-auction --skill convex-functions-althof3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-functions
Source: https://github.com/althof3/TCG-auction/tree/main/.agent/skills/convex-functions
Command: npx skills add https://github.com/althof3/TCG-auction --skill convex-functions-althof3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing queries, mutations, actions, and HTTP actions with proper argument validation, error handling, internal functions, and runtime considerations

Core Features & Use Cases

  • Create robust Convex server-side logic including typed args, validation, and safe handlers for queries, mutations, actions, and HTTP endpoints.
  • Utilize internal functions, scheduling, and referencing modules to structure production-grade Convex apps with predictable error handling.
  • Integrate with Convex docs and best practices to enforce consistent, reliable function implementations across a project.

Quick Start

Create a Convex module with a sample query, mutation, action, and http-action, each with args validators and a safe handler, following the examples in this skill.

Frequently Asked Questions about convex-functions

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

FAQPage Schema
How do I add validation to Convex functions for queries and mutations?

To validate Convex functions, you define argument schemas on the args object for queries and mutations. This enforces typed inputs and safe error handling, ensuring robust server-side logic before data access or external integration execution.

What is the difference between internal functions and HTTP actions in Convex?

Internal functions in Convex are private server-side logic not directly exposed to clients, while HTTP actions handle external HTTP endpoints. Both require validated args and safe error handling to structure production-grade apps with predictable runtime behavior.

How do I handle errors safely in Convex server-side actions and HTTP endpoints?

Safe error handling in Convex actions and HTTP endpoints involves using safe handlers with validated arguments. This catches runtime issues predictably, ensuring robust server-side logic for data-access and external integration workflows.

Can I use scheduling and module referencing with Convex mutations and actions?

Yes, Convex supports scheduling and referencing modules within mutations and actions. By applying validators on args and proper error handling, you can structure production-grade apps with reliable internal functions and timed workflows.

When should I use Convex HTTP actions instead of standard queries?

Use Convex HTTP actions for external integrations requiring HTTP endpoints, and standard queries for internal data access. Both require argument validators and safe handlers to enforce consistent, reliable function implementations across your project.