convex-functions

Build and validate Convex backend functions for queries, mutations, actions, and scheduled jobs.

1|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/cgRGM/rivercitymd --skill convex-functions-cgrgm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-functions
Source: https://github.com/cgRGM/rivercitymd/tree/main/.cursor/skills/convex-functions
Command: npx skills add https://github.com/cgRGM/rivercitymd --skill convex-functions-cgrgm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design, implement, and refine Convex backend functions with the right patterns for validation, data access, external integrations, and operational safety.

Core Features & Use Cases

  • Queries and Mutations: Create reactive read functions and transactional write functions with clear argument and return validation.
  • Actions and HTTP Actions: Build server-side workflows that call external APIs, handle webhooks, and bridge Convex with outside services.
  • Internal Functions and Scheduling: Use internal functions for sensitive operations and scheduled execution for delayed or recurring tasks.
  • Use Case: A real-time app needs to send notifications, process payments, and update records safely without mixing database access and external network calls in the wrong runtime.

Quick Start

Ask me to write or review a Convex function for your app, and I will produce the correct function type with validation, error handling, and runtime guidance.

Frequently Asked Questions about convex-functions

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

FAQPage Schema
How do I build reliable Convex backend functions for real-time apps?

To build reliable Convex backend functions, you implement queries, mutations, and actions with enforced argument and return validators, transactional writes, and safe error handling for production data access.

What is the best way to handle external API calls and webhooks in Convex?

The best way to handle external API calls and webhooks in Convex is by using HTTP actions, which bridge Convex with outside services and isolate external network calls from database operations.

How do I validate arguments and returns in Convex queries and mutations?

You validate arguments and returns in Convex queries and mutations by enforcing built-in validators on function inputs and outputs, ensuring reliable data access and preventing invalid server-side workflows.

When should I use internal functions and scheduled jobs in Convex?

Use Convex internal functions and scheduled jobs when you need to execute sensitive operations or run delayed and recurring server-side tasks without exposing them directly to client-side calls.

Can I use Convex functions with Next.js for production server-side workflows?

Yes, you can use Convex functions with Next.js to build production server-side workflows, applying runtime selection and safe error handling to manage data access and external integrations reliably.