Deploy functions

From pipecat-ai/gradient-bang · View interactive version

Deploy functions is an AI agent skill from the GitHub repository pipecat-ai/gradient-bang. Deploys all Supabase edge functions.

How to use this skill

Skill file

Deploy Supabase Functions

Deploys all Supabase edge functions.

Parameters

The user specifies the environment as an argument: /deploy-functions dev, /deploy-functions eval, or /deploy-functions prod. If not provided, ask which environment.

Steps

1. Source env and resolve the project ref

set -a && source <env-file> && set +a
PROJECT_REF=$(echo "$SUPABASE_URL" | sed -E 's|https://([^.]+).*|\1|')
echo "Deploying to project: $PROJECT_REF"

SUPABASE_URL is defined in every cloud env file (https://<ref>.supabase.co). Extracting the ref from it pins the deploy to the env the user asked for, regardless of what supabase link last pointed at. Never rely on --linked for remote deploys — the linked project may belong to a different environment.

2. Deploy

npx supabase functions deploy --workdir deployment/ --no-verify-jwt --project-ref "$PROJECT_REF"

3. Verify

Confirm the output shows all functions deployed successfully (Deployed Functions on project <ref>: ...) and that the printed project ref matches the env you intended. Report any errors to the user.

Important notes

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.