function-creator

Generate validated Convex queries, mutations, and actions with authentication and authorization checks.

1|1|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/LucaDeLeo/ASTN --skill function-creator-lucadeleo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: function-creator
Source: https://github.com/LucaDeLeo/ASTN/tree/main/.claude/skills/function-creator
Command: npx skills add https://github.com/LucaDeLeo/ASTN --skill function-creator-lucadeleo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate secure, type-safe Convex functions (queries, mutations, and actions) with proper validation, authentication, and error handling to accelerate backend API development.

Core Features & Use Cases

  • Guided API endpoint creation: templates for queries, mutations, and actions with built-in validators and auth checks.
  • Consistent security posture: enforce argument validation, return types, and authorization across all endpoints.
  • Practical examples: ready-to-use patterns for common Convex backend tasks and safe data access.

Quick Start

Create a new Convex API endpoint by following the patterns in this guide to generate a validated query or mutation handler.

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 endpoints with validation?

To create secure Convex backend endpoints, generate validated queries, mutations, and actions with built-in argument validators, authentication checks, and type-safe database interactions. This enforces a consistent security posture across all API endpoints.

What is the best way to enforce authentication and authorization in Convex functions?

Enforce authentication and authorization in Convex functions by applying built-in auth checks and validators to queries, mutations, and actions. This approach separates secure data access patterns and ensures safe API interactions.

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

Add argument and return type validation to Convex mutations by defining validators within the mutation handler. This ensures type-safe database interactions and prevents invalid data from processing through the API.

Does this approach work for separating queries, mutations, and actions in a Convex project?

Yes, this approach works for separating queries, mutations, and actions in a Convex project. It provides distinct templates and practical patterns for each endpoint type, ensuring clear separation of concerns and safe data access.

Why does my Convex API endpoint lack type safety and proper error handling?

Your Convex API endpoint lacks type safety and proper error handling if it is missing defined argument and return validators. Implementing guided API endpoint creation with built-in validators and auth checks resolves this by enforcing strict validation.