edge-functions

Develop Supabase Edge Functions using shared utilities and Deno conventions.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/AhmedAGadir/arabybuddy --skill edge-functions-ahmedagadir
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: edge-functions
Source: https://github.com/AhmedAGadir/arabybuddy/tree/main/.claude/skills/edge-functions
Command: npx skills add https://github.com/AhmedAGadir/arabybuddy --skill edge-functions-ahmedagadir

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized and convention-driven approach to developing backend functions for the ArabyBuddy application using Supabase Edge Functions. It ensures consistency in handling shared utilities, authentication, and response formatting.

Core Features & Use Cases

  • Shared Utilities: Leverages a centralized _shared/mod.ts for common logic like CORS handling, authentication checks, and response helpers.
  • Convention Enforcement: Guides developers to follow established patterns for function creation and utility usage.
  • Reference Implementations: Includes examples for user-authenticated (delete-account) and webhook/service-authenticated (revenuecat-webhook) functions.

Quick Start

Consult the _shared/mod.ts file for available utility functions before writing new edge functions.

Frequently Asked Questions about edge-functions

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

FAQPage Schema
How do I structure Supabase Edge Functions in Deno?

Structure Supabase Edge Functions in Deno by using a shared `_shared/mod.ts` file for centralized logic like authentication, CORS, and response helpers. Follow established conventions and reference existing implementations for common scenarios.

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

Handle authentication in Supabase Edge Functions by leveraging centralized shared utilities from `_shared/mod.ts`. This enforces consistent authentication checks across user-authenticated functions and webhook or service-authenticated endpoints.

How do I manage CORS and API responses in a Deno backend?

Manage CORS and API responses in a Deno backend by importing centralized response helpers and CORS handling logic from a shared `_shared/mod.ts` module. This ensures standardized formatting across all backend functions.

Are there reference patterns for Supabase webhooks and user accounts?

Yes, reference patterns for Supabase webhooks and user accounts include implementations for user-authenticated functions like `delete-account` and service-authenticated webhooks like `revenuecat-webhook`. These demonstrate standard shared utility usage.

Does this approach enforce specific conventions for backend logic?

Yes, this approach enforces specific conventions for backend logic by requiring adherence to Deno conventions and Supabase best practices. It guides developers to follow established patterns for function creation and utility usage to ensure consistency.