edge-function-creator

Scaffold Supabase Edge Functions with CORS and auth patterns.

1|Updated Jun 10, 2025
One-click install
npx skills add https://github.com/Columbia-Cloudworks-LLC/EquipQR --skill edge-function-creator
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: edge-function-creator
Source: https://github.com/Columbia-Cloudworks-LLC/EquipQR/tree/main/.cursor/skills/edge-function-creator
Command: npx skills add https://github.com/Columbia-Cloudworks-LLC/EquipQR --skill edge-function-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Scaffolds new Supabase Edge Functions with standard imports, CORS handling, and auth patterns from the EquipQR codebase. It ensures a consistent starting point for function development and reduces boilerplate work.

Core Features & Use Cases

  • Provides a boilerplate index.ts with user-scoped authentication by default, plus patterns for admin/service-role or no-auth as needed.
  • Includes shared utilities under supabase/functions/_shared for consistent CORS, error handling, and client creation.
  • Use Case: rapidly bootstrap an API route or webhook endpoint in a Supabase project with secure defaults and predictable structure.

Quick Start

Execute the scaffold script with the function name to generate a new Supabase Edge Function scaffold.

Frequently Asked Questions about edge-function-creator

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

FAQPage Schema
How do I scaffold a Supabase Edge Function with TypeScript?▼

To scaffold a Supabase Edge Function, run the scaffold script with a function name to generate a new index.ts file with standard imports, CORS handling, and authentication patterns.

What's the best way to handle CORS in Supabase Edge Functions?▼

Handling CORS in Supabase Edge Functions is streamlined by generating shared utilities under supabase/functions/_shared, ensuring consistent CORS handling across new function scaffolds.

Can I create a Supabase Edge Function without user authentication?▼

Yes, you can create a Supabase Edge Function without user authentication because the scaffold supports a no-auth variant, alongside default user-scoped and admin/service-role patterns.

Does this scaffolding tool support admin or service-role authentication patterns?▼

Yes, this scaffolding tool supports admin or service-role authentication patterns, providing options beyond the default user-scoped authentication for elevated access requirements.

Why use a shared scaffold framework for Supabase Edge Functions?▼

Using a shared scaffold framework for Supabase Edge Functions ensures a consistent starting point for development and reduces boilerplate work across multiple projects and use cases.

How do I bootstrap an API route or webhook endpoint in Supabase?▼

To bootstrap an API route or webhook endpoint in Supabase, use the scaffolding script to rapidly generate a function with secure defaults and predictable structure.