function-creator

Installation
Summary

Generate type-safe Convex queries, mutations, and actions with built-in validation, authentication, and error handling.

  • Supports three function types: queries (read-only, cached), mutations (transactional writes with automatic retries), and actions (external APIs, long-running tasks)
  • Enforces argument and return type validation via Convex validators; includes authentication checks and authorization patterns for ownership verification
  • Actions requiring Node.js APIs (SDKs, crypto) must use "use node" directive and live in separate files from queries and mutations
  • Provides complete examples covering secure queries with auth, validated mutations, external API calls, and internal backend-only functions with a pre-flight checklist
SKILL.md

Convex Function Creator

Generate secure, type-safe Convex functions following all best practices.

When to Use

  • Creating new query functions (read data)
  • Creating new mutation functions (write data)
  • Creating new action functions (external APIs, long-running)
  • Adding API endpoints to your Convex backend

Function Types

Queries (Read-Only)

  • Can only read from database
  • Cannot modify data or call external APIs
  • Cached and reactive
  • Run in transactions
Related skills
Installs
555
GitHub Stars
27
First Seen
Feb 18, 2026