edge-functions

edge-functions is a skill for Claude Code, Codex from Ampli-Group/agentic-mobile-blueprint. It costs 52 tokens per session (532 once invoked), scanned A, original, MIT.

A set of rules for creating and debugging Supabase Edge Functions, which are small server-side programs hosted by Supabase. They use the Deno runtime and follow conventions for requests, responses, shared code, errors, and cross-origin access.

In plain words
What is it for?
It is for scaffolding, modifying, and debugging functions in supabase/functions, including handling HTTP requests, AI calls, errors, and frontend or mobile requests.
Why use it?
It provides a consistent structure for functions and clarifies how they connect to the frontend and shared monitoring code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { initSentry, handleError } from "../_shared/sentry.ts";.

Good fit It is for scaffolding, modifying, and debugging functions in supabase/functions, including handling HTTP requests, AI calls, errors, and frontend or mobile requests.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Ampli-Group/agentic-mobile-blueprint
agentmods
npx agentmods add skills/ampli-group/agentic-mobile-blueprint/edge-functions

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for edge-functions

README.md
[![agentmods](https://agentmods.dev/badge/skills/ampli-group/agentic-mobile-blueprint/edge-functions/github.svg)](https://agentmods.dev/skills/ampli-group/agentic-mobile-blueprint/edge-functions)
Your own site
<a href="https://agentmods.dev/skills/ampli-group/agentic-mobile-blueprint/edge-functions"><img src="https://agentmods.dev/badge/skills/ampli-group/agentic-mobile-blueprint/edge-functions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for edge-functions

Your own site · 80×15
<a href="https://agentmods.dev/skills/ampli-group/agentic-mobile-blueprint/edge-functions"><img src="https://agentmods.dev/badge/skills/ampli-group/agentic-mobile-blueprint/edge-functions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 532 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00532
Opus 5 $0.00026 $0.00266
Sonnet 5 $0.00010 $0.00106
Haiku 4.5 $0.00005 $0.00053

Measured 9d ago against content hash fc3b5ccdf8c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

edge-functions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/edge-functions/SKILL.md · 79 lines

What it actually says

Supabase Edge Functions

Runtime

Deno. Entry point: Deno.serve(). Files live in supabase/functions/<name>/index.ts.

New Function Scaffold

import { initSentry, handleError } from "../_shared/sentry.ts";

initSentry();

const corsHeaders = {
  "Access-Control-Allow-Origin": "*",
  "Access-Control-Allow-Headers": "authorization, x-client-info, apikey, content-type",
};

Deno.serve(async (req: Request) => {
  if (req.method === "OPTIONS") return new Response("ok", { headers: corsHeaders });

  try {
    const body = await req.json();
    const result = { message: "Hello" };
    return new Response(JSON.stringify(result), {
      headers: { ...corsHeaders, "Content-Type": "application/json" },
    });
  } catch (error) {
    return handleError(error, { functionName: "my-function", corsHeaders });
  }
});

For AI calls, wrap with withTrace() — see the langfuse-tracing skill.

Imports

  • Shared code: ../_shared/sentry.ts, ../_shared/langfuse/gemini.ts
  • External: via import map in supabase/functions/deno.json
  • Convention: npm: prefix for npm packages, URLs for Deno packages

Calling from Frontend/Mobile

const { data, error } = await supabase.functions.invoke('my-function', {
  body: { prompt: 'Hello' },
});

Database Migrations

Path: supabase/migrations/. Naming: 00000000000000_slug.sql.

Rules:

  • Enable RLS on every table
  • Policies use auth.uid() for row-level access
  • Add updated_at trigger for mutable tables
  • Index foreign keys and common filter columns
  • Storage bucket policies: auth.uid()::text = (storage.foldername(name))[1]

Local Development

mise run supabase:function   # Starts functions with hot reload

Env vars for functions go in supabase/functions/.env.local.

Deploy

supabase functions deploy <function-name>
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 79 lines · 52 tokens per session scan A fc3b5ccdf8c0

Subscribe to this mod's changes

edge-functions is a skill published in the GitHub repository Ampli-Group/agentic-mobile-blueprint (4 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 532 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

adapter-aws-lambda

Deploy tRPC on AWS Lambda with awsLambdaRequestHandler() from @trpc/server/adapters/aws-lambda for API Gateway v1 (REST, APIGatewayProxyEvent) and v2 (HTTP, APIGatewayProxyEventV2), and Lambda Function URLs. Enable response streaming with awsLambdaStreamingRequestHandler() wrapped in awslambda.streamifyResponse().…

trpc/trpc · 93 tokens

adapter-fetch

Deploy tRPC on WinterCG-compliant edge runtimes with fetchRequestHandler() from @trpc/server/adapters/fetch. Supports Cloudflare Workers, Deno Deploy, Vercel Edge Runtime, Astro, Remix, SolidStart. FetchCreateContextFnOptions provides req (Request) and resHeaders (Headers) for context creation. The endpoint option…

trpc/trpc · 86 tokens

azure-eventhub-dotnet

Azure Event Hubs SDK for .NET. Use for high-throughput event streaming: sending events (EventHubProducerClient, EventHubBufferedProducerClient), receiving events (EventProcessorClient with checkpointing), partition management, and real-time data ingestion. Triggers: "Event Hubs", "event streaming"…

microsoft/skills · 94 tokens

azure-mgmt-apimanagement-dotnet

Azure Resource Manager SDK for API Management in .NET. Use for MANAGEMENT PLANE operations: creating/managing APIM services, APIs, products, subscriptions, policies, users, groups, gateways, and backends via Azure Resource Manager. Triggers: "API Management", "APIM service", "create APIM", "manage APIs"…

microsoft/skills · 97 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

azure-servicebus-dotnet

Azure Service Bus SDK for .NET. Enterprise messaging with queues, topics, subscriptions, and sessions. Use for reliable message delivery, pub/sub patterns, dead letter handling, and background processing. Triggers: "Service Bus", "ServiceBusClient", "ServiceBusSender", "ServiceBusReceiver", "ServiceBusProcessor"…

microsoft/skills · 86 tokens