function-creator

Generate Convex query, mutation, and action endpoints with validation and auth.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/tomrford/dotfiles --skill function-creator-tomrford
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: function-creator
Source: https://github.com/tomrford/dotfiles/tree/main/.agents/skills/function-creator
Command: npx skills add https://github.com/tomrford/dotfiles --skill function-creator-tomrford

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convex function creation is expedited by providing a structured pattern that includes validation, authentication, and error handling to reduce boilerplate.

Core Features & Use Cases

  • Query, Mutation, and Action scaffolds: Generate endpoints with strong type validators and safe defaults.
  • Auth & Authorization: Built-in patterns to enforce user authentication and resource permissions.
  • Rapid backend iteration: Accelerates backend development by providing ready-to-use templates for Convex apps.

Quick Start

Create a new query, mutation, or action using the standard template and deploy to your Convex project.

Frequently Asked Questions about function-creator

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

FAQPage Schema
How do I create Convex API endpoints with validation and authentication?

Convex API endpoints with validation and authentication are generated using structured scaffolds for queries, mutations, and actions. These templates embed argument and return type validators alongside built-in authorization patterns to reduce boilerplate.

What is the best way to enforce argument validation in Convex backend functions?

Argument validation in Convex backend functions is enforced by applying strong type validators within the endpoint scaffold. This ensures safe defaults and consistent patterns across all query, mutation, and action definitions.

Does this approach support building both read queries and write mutations for Convex apps?

Yes, this approach supports building both read queries and write mutations for Convex apps. It provides ready-to-use templates that enforce argument and return type validation, auth controls, and error handling across all endpoint types.

How do I add authorization checks to Convex mutations and actions?

Authorization checks are added to Convex mutations and actions using built-in patterns provided by the scaffold. These patterns enforce user authentication and resource permissions directly within the endpoint definitions.

Why do I need structured templates for Convex function creation?

Structured templates for Convex function creation are needed to expedite backend development by providing consistent patterns for validation, authentication, and error handling, which significantly reduces repetitive boilerplate code.

Can I use these scaffolds to handle error handling and return type validation consistently?

Yes, these scaffolds handle error handling and return type validation consistently. They enforce safe defaults and strong type validation across all generated Convex query, mutation, and action endpoint definitions.