convex-functions

Implement and validate typed Convex server functions with error handling.

1|1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/Cheggin/request-for-startups --skill convex-functions-cheggin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-functions
Source: https://github.com/Cheggin/request-for-startups/tree/main/skills/convex-functions
Command: npx skills add https://github.com/Cheggin/request-for-startups --skill convex-functions-cheggin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Craft robust Convex server logic by providing well-structured templates for queries, mutations, actions, and HTTP actions with strict argument validation and clear error handling.

Core Features & Use Cases

  • Typed function definitions for query, mutation, action, and HTTP action patterns.
  • Examples include getUser, listUserTasks, createTask, sendEmail, and HTTP actions, plus internal functions and scheduling.
  • Best practices coverage: validation, error handling, and security considerations.

Quick Start

Copy this Skill into your Convex project, install dependencies, and start the convex server to begin creating validated queries, mutations, actions, and HTTP actions.

Frequently Asked Questions about convex-functions

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

FAQPage Schema
How do I validate arguments in Convex queries and mutations?

You define typed argument validators in the function frontmatter to validate Convex queries and mutations. This Skill provides templates that enforce strict argument validation, rejecting invalid data before execution.

What is the difference between Convex actions and HTTP actions?

Convex actions handle server-side side effects like sendEmail, while HTTP actions process external HTTP requests. This Skill provides templates for both patterns with typed arguments and robust error handling.

How do I handle errors in Convex server functions?

Implement robust error handling within Convex queries, mutations, and actions using security-conscious coding patterns. This Skill provides production-grade templates to manage errors across all server function types.

Can I schedule internal functions in Convex?

Yes, Convex supports scheduling internal functions. This Skill includes scheduling examples alongside common patterns like getUser, listUserTasks, createTask, and sendEmail to demonstrate end-to-end server logic implementation.

Do I need strict frontmatter metadata for Convex functions?

Yes, Convex functions require strict frontmatter metadata. This Skill enforces explicit frontmatter, argument validators, and return validators to maintain production-grade, security-conscious coding practices across your backend.