convex-actions-general

Define Convex actions, HTTP endpoints, validators, and TypeScript patterns.

25|4|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/Sstobo/convex-skills --skill convex-actions-general
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-actions-general
Source: https://github.com/Sstobo/convex-skills/tree/main/convex-actions-general
Command: npx skills add https://github.com/Sstobo/convex-skills --skill convex-actions-general

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers design and apply Convex action management, HTTP endpoints, validators, schemas, and TypeScript patterns to build robust, scalable APIs.

Core Features & Use Cases

  • Define public and internal functions with strict validators and file-based routing in the convex/ directory.
  • Create performant HTTP endpoints using convex/http.ts patterns and httpAction decorators.
  • Enforce API design best practices for environment variables, scheduling, and file storage workflows.

Quick Start

Use the convex-actions-general skill as a reference to implement public and internal Convex actions, HTTP endpoints, validators, and TypeScript typings in your project.

Frequently Asked Questions about convex-actions-general

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

FAQPage Schema
How do I set up Convex HTTP endpoints with TypeScript?

Create Convex HTTP endpoints by defining routes with the httpAction decorator in the convex/http.ts file, applying TypeScript patterns and strict validators to manage external HTTP requests.

What is the difference between public and internal functions in Convex?

In Convex, public functions are directly callable from clients, while internal functions are restricted to server-side execution only. You register both using file-based routing in the convex/ directory to enforce strict API boundaries.

How do I use validators to enforce schemas for Convex actions?

Apply strict validators to function arguments and returns when defining Convex actions. This TypeScript pattern guarantees data integrity and prevents invalid inputs from entering your API workflows.

Can I schedule Convex actions and manage environment variables?

Yes, Convex actions support scheduling for delayed or recurring execution. You can also securely manage environment variables to configure your API workflows and file storage operations without hardcoding sensitive data.

What are the best practices for file storage in Convex APIs?

Best practices for Convex file storage involve using dedicated actions to manage uploads and retrieval, combining strict validators and environment variables to secure file workflows and maintain scalable API design.