deployment — Cloudflare Workers deployment deployment, ai-driven-project-template, community, Cloudflare Workers deployment, ide skills, Supabase Edge Functions deployment, unified deployment strategy, serverless function deployment, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Cloud-Native Agents needing unified deployment to Cloudflare Workers and Supabase Edge Functions. Deployment is the process of releasing software applications or functions to production environments, such as Cloudflare Workers and Supabase Edge Functions, using tools like Wrangler and Supabase CLI

Features

Deploys API applications (Hono) to Cloudflare Workers via Wrangler
Deploys serverless functions (Deno) to Supabase Edge Functions via Supabase CLI
Supports simultaneous deployment to both Cloudflare Workers and Supabase Edge Functions
Enables deployment to production, publishing APIs or functions, and setting up CI/CD deployments
Allows testing deployments on feature branches

# Core Topics

AndrijaSkontra AndrijaSkontra
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The deployment skill by AndrijaSkontra is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for Cloudflare Workers deployment, Supabase Edge Functions deployment, unified deployment strategy.

Ideal Agent Persona

Perfect for Cloud-Native Agents needing unified deployment to Cloudflare Workers and Supabase Edge Functions.

Core Value

Empowers agents to deploy APIs and serverless functions via Wrangler and Supabase CLI, supporting simultaneous deployment to both platforms with protocols like CI/CD.

Capabilities Granted for deployment

Deploying API applications to Cloudflare Workers
Publishing serverless functions to Supabase Edge Functions
Setting up automated CI/CD deployments for feature branches

! Prerequisites & Limits

  • Requires Wrangler for Cloudflare Workers
  • Requires Supabase CLI for Supabase Edge Functions
  • Limited to Cloudflare Workers and Supabase Edge Functions
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

deployment

Install deployment, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Unified Deployment Skill

This skill handles deployment to multiple platforms:

  • Cloudflare Workers: API application (Hono) deployment via Wrangler
  • Supabase Edge Functions: Serverless functions (Deno) deployment via Supabase CLI
  • Both: Deploy to both platforms simultaneously

When to Use

  • Deploying to production
  • Publishing APIs or functions
  • Setting up CI/CD deployments
  • Testing deployments on feature branches

Pre-deployment Checklist

For Cloudflare Workers

Before deploying to Cloudflare, verify:

  1. Environment variables in .env:
    • CLOUDFLARE_API (API token)
    • CLOUDFLARE_ACCOUNT_ID (Account ID)
  2. wrangler.jsonc configuration is valid
  3. Dependencies installed in apps/api (bun install)
  4. Bun is installed

For Supabase Edge Functions

Before deploying to Supabase, verify:

  1. Environment variables in .env:
    • SUPABASE_URL (Project URL)
    • SUPABASE_PROJECT_REF (Project reference ID)
  2. Supabase CLI is installed (npm install -g supabase or brew install supabase/tap/supabase)
  3. Logged into Supabase CLI (supabase login)
  4. Project is linked (script will attempt to link automatically)
  5. Functions exist in supabase/functions/ directory

Branch-Based Deployments

The deployment skill automatically detects your git branch and deploys accordingly:

Branch Detection

BranchEnvironmentDescription
main / masterProductionDeploys to production resources
Any other branchPreviewCreates branch-specific resources

Cloudflare Workers Branch Naming

Feature branches deploy to separate workers with sanitized names:

Git BranchWorker NameURL
mainapihttps://api.*.workers.dev
feature/user-authapi-feature-user-authhttps://api-feature-user-auth.*.workers.dev
fix/login-bugapi-fix-login-bughttps://api-fix-login-bug.*.workers.dev

Naming Rules:

  • Max 63 characters (DNS limit)
  • Only lowercase alphanumeric and hyphens
  • Slashes and underscores converted to hyphens
  • Leading/trailing hyphens removed

Supabase Preview Branches

For feature branches, the script:

  1. Checks if a Supabase preview branch exists
  2. Prompts to create one if it doesn't
  3. Deploys functions to the branch environment

Important: Supabase preview branches have their own:

  • Project reference (different URL)
  • anon API key
  • service_role API key
  • Isolated database

After deploying to a Supabase branch, run the following to get credentials:

bash
1supabase branches get <branch-name> --project-ref $SUPABASE_PROJECT_REF

Cleanup Commands

Delete Cloudflare Preview Worker:

bash
1wrangler delete --name api-feature-user-auth

Delete Supabase Preview Branch:

bash
1supabase branches delete feature-user-auth --project-ref $SUPABASE_PROJECT_REF

Connecting Cloudflare to Supabase Branches

When your Cloudflare Worker connects to Supabase, and you deploy to a feature branch:

  1. The Cloudflare Worker deploys as api-<branch-name>
  2. You need to update the worker's environment variables with the branch-specific Supabase credentials

Option 1: Use Wrangler Secrets (Recommended)

bash
1# Get branch credentials 2supabase branches get feature-user-auth --project-ref $SUPABASE_PROJECT_REF 3 4# Set secrets on branch worker 5wrangler secret put SUPABASE_URL --name api-feature-user-auth 6wrangler secret put SUPABASE_ANON_KEY --name api-feature-user-auth

Option 2: Use separate .dev.vars files Create branch-specific local configuration for testing.

Deployment Process

Step 1: Environment Verification

  • Read the .env file from project root to verify credentials exist
  • Check platform-specific environment variables based on deployment target

Step 2: Execute Deployment Script

The unified deployment script supports interactive platform selection.

Choose the appropriate script based on the user's platform:

For Unix/Mac/Linux:

bash
1.claude/skills/deployment/scripts/deploy.sh

For Windows PowerShell:

powershell
1.claude/skills/deployment/scripts/deploy.ps1

Automated Deployment (Non-interactive): Set DEPLOY_TARGET environment variable to skip interactive prompt:

bash
1# Deploy to Cloudflare only 2DEPLOY_TARGET=cloudflare .claude/skills/deployment/scripts/deploy.sh 3 4# Deploy to Supabase only 5DEPLOY_TARGET=supabase .claude/skills/deployment/scripts/deploy.sh 6 7# Deploy to both platforms 8DEPLOY_TARGET=both .claude/skills/deployment/scripts/deploy.sh

Step 3: Platform Selection

If running interactively, the script will prompt:

Select deployment platform:
  1) Cloudflare Workers
  2) Supabase Edge Functions
  3) Both platforms

Enter choice [1-3]:

Step 4: Deployment Execution

Cloudflare Workers:

  • Navigate to apps/api directory
  • Execute bun run deploy
  • Deploy with Wrangler and minification
  • Return deployment URL (format: https://api.*.workers.dev)

Supabase Edge Functions:

  • Navigate to project root
  • Link project if not already linked
  • Execute supabase functions deploy
  • Deploy all functions in supabase/functions/
  • Return functions URL (format: https://<ref>.supabase.co/functions/v1/)

Step 5: Verify Deployment Success

  • Check the output for success messages
  • Display deployment URLs for each platform
  • Show deployment summary
  • Report any errors encountered

Error Handling

Cloudflare Workers Errors

  • Missing .env file: Prompt user to create .env with required Cloudflare variables
  • Invalid API token: Direct user to https://dash.cloudflare.com/profile/api-tokens
    • Token needs "Workers Scripts > Edit" permission
  • Wrangler errors: Display full error and check:
    • API token permissions
    • Account ID is correct
    • Network connectivity
  • Bun not found: Install from https://bun.sh
  • node_modules missing: Run bun install in apps/api

Supabase Edge Functions Errors

  • Supabase CLI not installed: Install via:
    • npm install -g supabase
    • brew install supabase/tap/supabase (Mac)
    • scoop install supabase (Windows with Scoop)
  • Not logged in: Run supabase login to authenticate
  • Project not linked: Script will attempt auto-linking with SUPABASE_PROJECT_REF
    • If fails, run manually: supabase link --project-ref <ref>
  • Missing SUPABASE_PROJECT_REF: Add to .env file
  • Functions directory not found: Ensure supabase/functions/ exists with function subdirectories

Environment Variables Reference

Cloudflare Workers

bash
1CLOUDFLARE_API="your-api-token" 2CLOUDFLARE_ACCOUNT_ID="your-account-id"

Supabase Edge Functions

bash
1SUPABASE_URL="https://your-ref.supabase.co" 2SUPABASE_PROJECT_REF="your-ref" 3SUPABASE_ANON_KEY="your-anon-key" # Optional, for API integration 4SUPABASE_SERVICE_ROLE_KEY="your-service-key" # Optional, for admin operations

Safety Guidelines

  • Always verify environment variables before deploying
  • Show user what platform(s) will be deployed to
  • Report deployment URLs after successful deploy
  • Keep .env file secure and never commit it
  • Supabase service role keys should NEVER be exposed publicly
  • Test locally before deploying to production

Available Endpoints After Deployment

Cloudflare Workers API

  • Base URL: https://api.*.workers.dev
  • Health Check: GET /
  • Database Test: GET /db-test (tests Supabase connection)

Supabase Edge Functions

  • Base URL: https://<ref>.supabase.co/functions/v1
  • Hello World: GET /hello-world or POST /hello-world

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is deployment?

Perfect for Cloud-Native Agents needing unified deployment to Cloudflare Workers and Supabase Edge Functions. Deployment is the process of releasing software applications or functions to production environments, such as Cloudflare Workers and Supabase Edge Functions, using tools like Wrangler and Supabase CLI

How do I install deployment?

Run the command: npx killer-skills add AndrijaSkontra/ai-driven-project-template. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for deployment?

Key use cases include: Deploying API applications to Cloudflare Workers, Publishing serverless functions to Supabase Edge Functions, Setting up automated CI/CD deployments for feature branches.

Which IDEs are compatible with deployment?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for deployment?

Requires Wrangler for Cloudflare Workers. Requires Supabase CLI for Supabase Edge Functions. Limited to Cloudflare Workers and Supabase Edge Functions.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add AndrijaSkontra/ai-driven-project-template. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use deployment immediately in the current project.

Related Skills

Looking for an alternative to deployment or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI