Build supabase edge functions

From Mountain-Nomad-BC/Pacify-X · View interactive version

Build supabase edge functions is an AI agent skill from the GitHub repository Mountain-Nomad-BC/Pacify-X. Build Supabase Edge Functions with explicit auth, secrets, CORS, bounds, idempotency, tests, and deployment evidence.

How to use this skill

Skill file

build-supabase-edge-functions

Outcome

Build Supabase Edge Functions with explicit auth, secrets, CORS, bounds, idempotency, tests, and deployment evidence.

Suggest or activate when

Do not suggest or activate when

Discover before acting

Procedure

  1. Define request/response schema, auth/signature, secrets, CORS, timeout, external calls, retries, region, idempotency, and failure destination.
  2. Scaffold and test locally; validate input/auth, inject managed secrets, bound calls/retries, return stable errors, and use database transactions/RPC for atomic changes.
  3. Deploy through non-production, correlate logs, verify source hash, and test retry/timeout behavior.

Best practices

Verification and evidence

Capture the selected environment, versions, authority, redacted configuration or command evidence, test identifiers, observed external outcome, rollback point, and unresolved risks. A successful command proves only that command; verify the requested real-world result separately.

Common failure modes

PACIFY-X governance hooks

Load metadata at startup and this body only after semantic selection. Before installation, credentials, external calls, deployments, production actions, or schema changes, route through the existing controls that apply:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.