function-creator
Originally fromget-convex/convex-agent-plugins
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
More from get-convex/agent-skills
convex-quickstart
Creates or adds Convex to an app. Use for new Convex projects, npm create
44.9Kconvex-performance-audit
Audits Convex performance for reads, subscriptions, write contention, and
44.4Kconvex-setup-auth
Sets up Convex auth, identity mapping, and access control. Use for login, auth
44.3Kconvex-migration-helper
Plans Convex schema and data migrations with widen-migrate-narrow and
44.2Kconvex-create-component
Builds reusable Convex components with isolated tables and app-facing APIs.
44.2Kconvex
Routes general Convex requests to the right project skill. Use when the user
20.8K