convex-component-authoring

Create self-contained Convex components with isolated schemas and typed functions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you design Convex components that stay self-contained, reusable, and safe to publish across projects without leaking app-specific tables or logic.

Core Features & Use Cases

  • Component Structure: Defines the expected package layout for schemas, functions, exports, and configuration.
  • Isolation and Reuse: Shows how to keep tables, queries, mutations, and actions scoped to the component itself.
  • Publishing Workflow: Explains how to package, type, document, and version a component for consumption by other apps.
  • Use Case: Build a rate limiter, shared data module, or feature-specific backend package that can be installed in multiple Convex apps with clear APIs.

Quick Start

Use this skill to draft a self-contained Convex component with isolated schema, typed functions, and publish-ready exports.

Frequently Asked Questions about convex-component-authoring

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

FAQPage Schema
How do I build reusable Convex components for multiple apps?

To build reusable Convex components, define a self-contained package with isolated schemas, typed functions, and exports. This approach keeps tables and mutations scoped to the component, ensuring safe reuse across apps without leaking app-specific logic.

What's the best way to publish a Convex backend package?

Publishing a Convex backend package requires dependency-safe packaging, clear configuration, typed function definitions, and versioning. This workflow ensures other apps can consume the component safely with a clear API.

Can I isolate Convex schema and functions within a shared module?

Yes, you can isolate Convex schema and functions within a shared module by defining the expected package layout for schemas and exports. This keeps tables, queries, and mutations scoped strictly to the component itself.

Does building modular serverless components in Convex require TypeScript?

Building modular serverless components in Convex relies on TypeScript to provide typed function definitions and clear configuration. These typed definitions are required for dependency-safe packaging and consumer consumption.

How do I structure a Convex component for a rate limiter or shared data module?

To structure a Convex component for a rate limiter or shared data module, create a self-contained package with isolated schemas and typed functions. This provides clear APIs for consumption across multiple Convex apps.

Why should I keep component tables isolated from app-specific Convex logic?

Keeping component tables isolated from app-specific Convex logic prevents data leaks and conflicts during reuse. This isolation ensures the component remains self-contained and safe to publish across different projects.