function-creator

Generate secure, type-safe Convex backend functions with validation and authentication.

5|1|Updated May 31, 2026
One-click install
npx skills add https://github.com/waynesutton/teleprompter --skill function-creator-waynesutton
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: function-creator
Source: https://github.com/waynesutton/teleprompter/tree/main/.cursor/skills/function-creator
Command: npx skills add https://github.com/waynesutton/teleprompter --skill function-creator-waynesutton

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured, safe way to define Convex backend logic (queries, mutations, and actions) with rigorous validation, authentication, and error handling, reducing bugs and security risks.

Core Features & Use Cases

  • Argument validation for all function types (queries, mutations, actions) to ensure correct shapes
  • Return type validation and error handling to prevent invalid responses
  • Authentication and authorization checks to enforce secure access control
  • Clear separation of internal/private logic from public API calls to safeguard backend surfaces
  • Ready-to-use examples for common Convex patterns, plus guidance for creating new API endpoints

Quick Start

Use the function-creator to generate a secure, type-safe Convex query, mutation, or action with proper validation and authentication.

Frequently Asked Questions about function-creator

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

FAQPage Schema
How do I create secure Convex backend functions with authentication and validation?

To create secure Convex backend functions, define queries, mutations, and actions using argument validation, return type validation, and authentication checks. This enforces secure access control and prevents invalid API responses.

How do I add argument and return type validation to Convex mutations and queries?

Add argument and return type validation to Convex mutations and queries by enforcing strict type definitions for inputs and outputs. This ensures correct data shapes and prevents invalid responses from reaching the client.

What is the best way to separate internal private logic from public API endpoints in Convex?

Separate internal private logic from public API endpoints in Convex by establishing clear API surface boundaries. This safeguards backend functions by ensuring only explicitly authorized queries and mutations are exposed publicly.

Does this approach support generating type-safe Convex actions for external API calls?

Yes, this approach supports generating type-safe Convex actions for external API calls. It applies rigorous argument validation, authentication checks, and error handling to external-call operations within your Convex projects.

How do I implement authorization checks for Convex backend read and write operations?

Implement authorization checks for Convex backend read and write operations by enforcing authentication logic directly within queries and mutations. This secures access control before any database read or write logic executes.