[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M796G8KMFBHRJ1WT02CV0WT7":3,"skill-same:01M796G8KMFBHRJ1WT02CV0WT7":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M796G8KMFBHRJ1WT02CV0WT7","supabase-multi-env-setup",null,"Configure Supabase across development, staging, and production with separate projects,\nenvironment-specific secrets, and safe migration promotion.\nUse when setting up multi-environment deployments, isolating dev from prod data,\nconfiguring per-environment Supabase projects, or promoting migrations through environments.\nTrigger: \"supabase environments\", \"supabase staging\", \"supabase dev prod\",\n\"supabase multi-project\", \"supabase env config\", \"database branching\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--supabase-pack--supabase-multi-env-setup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: supabase-multi-env-setup\ndescription: |\n  Configure Supabase across development, staging, and production with separate projects,\n  environment-specific secrets, and safe migration promotion.\n  Use when setting up multi-environment deployments, isolating dev from prod data,\n  configuring per-environment Supabase projects, or promoting migrations through environments.\n  Trigger: \"supabase environments\", \"supabase staging\", \"supabase dev prod\",\n  \"supabase multi-project\", \"supabase env config\", \"database branching\".\nallowed-tools: Read, Write, Edit, Bash(npx supabase:*), Bash(supabase:*), Bash(vercel:*), Grep, Glob\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, supabase, deployment, environments, multi-env, devops]\n---\n\n# Supabase Multi-Environment Setup\n\n## Overview\n\nProduction Supabase deployments require separate projects per environment — each with its own URL, API keys, database, and RLS policies. This skill configures a three-tier environment architecture (local dev, staging, production) with safe migration promotion via `supabase db push`, environment-aware `createClient` initialization, database branching for preview deployments, and CI\u002FCD pipelines that prevent accidental cross-environment operations.\n\n**When to use:** Setting up a new project with multiple environments, migrating from a single-project setup to multi-env, adding staging to an existing dev\u002Fprod split, or configuring preview environments with database branching.\n\n## Prerequisites\n\n- Three separate Supabase projects created at [supabase.com\u002Fdashboard](https:\u002F\u002Fsupabase.com\u002Fdashboard) (dev, staging, production)\n- Supabase CLI installed: `npm install -g supabase` or `npx supabase --version`\n- `@supabase\u002Fsupabase-js` v2+ installed in your project\n- Node.js 18+ with framework that supports `.env` files (Next.js, Nuxt, SvelteKit, etc.)\n- A secret management solution for CI (GitHub Actions Secrets, Vercel env vars, etc.)\n\n## Instructions\n\n### Step 1: Environment Files and Project Layout\n\nCreate one Supabase CLI project with shared migrations and per-environment credential files. Each `.env.*` file points to a different Supabase project.\n\n**Project structure:**\n\n```\nmy-app\u002F\n├── supabase\u002F\n│   ├── config.toml              # Local CLI config\n│   ├── migrations\u002F              # Shared migrations (all envs use the same schema)\n│   │   └── 20260101000000_initial.sql\n│   ├── seed.sql                 # Dev-only seed data (runs on db reset only)\n│   └── functions\u002F               # Edge Functions (deployed per env)\n├── .env.local                   # Local dev → supabase start\n├── .env.staging                 # Staging project credentials\n├── .env.production              # Production project credentials\n└── .gitignore                   # Must include .env.staging, .env.production\n```\n\n**Environment files:**\n\n```bash\n# .env.local — local development (safe defaults from supabase start)\nNEXT_PUBLIC_SUPABASE_URL=http:\u002F\u002F127.0.0.1:54321\nNEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0\nSUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU\nDATABASE_URL=postgresql:\u002F\u002Fpostgres:postgres@127.0.0.1:54322\u002Fpostgres\nSUPABASE_ENV=local\n\n# .env.staging — staging project\nNEXT_PUBLIC_SUPABASE_URL=https:\u002F\u002F\u003Cstaging-ref>.supabase.co\nNEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ...staging-anon-key\nSUPABASE_SERVICE_ROLE_KEY=eyJ...staging-service-key\nDATABASE_URL=postgres:\u002F\u002Fpostgres.\u003Cstaging-ref>:\u003Cpassword>@aws-0-\u003Cregion>.pooler.supabase.com:6543\u002Fpostgres\nSUPABASE_ENV=staging\n\n# .env.production — production project (NEVER commit this file)\nNEXT_PUBLIC_SUPABASE_URL=https:\u002F\u002F\u003Cprod-ref>.supabase.co\nNEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ...prod-anon-key\nSUPABASE_SERVICE_ROLE_KEY=eyJ...prod-service-key\nDATABASE_URL=postgres:\u002F\u002Fpostgres.\u003Cprod-ref>:\u003Cpassword>@aws-0-\u003Cregion>.pooler.supabase.com:6543\u002Fpostgres\nSUPABASE_ENV=production\n```\n\n**Critical `.gitignore` entries:**\n\n```gitignore\n.env.staging\n.env.production\n# .env.local is safe to commit (contains only local dev keys)\n```\n\n**Link each environment to the CLI:**\n\n```bash\n# Local development\nnpx supabase start\n\n# Link staging (stores ref in supabase\u002F.temp\u002Fproject-ref)\nnpx supabase link --project-ref \u003Cstaging-ref>\n\n# Link production (re-links, overwriting staging ref)\nnpx supabase link --project-ref \u003Cprod-ref>\n```\n\n> **Note:** The CLI can only link one project at a time. Switch between environments by re-running `supabase link` with the target project ref before any `db push` or `functions deploy` operation.\n\n### Step 2: Environment-Aware Client and Safeguards\n\nBuild a `createClient` wrapper that selects the correct URL and keys based on the active environment, plus production safeguards that block destructive operations.\n\n**Environment detection (`lib\u002Fenv.ts`):**\n\n```typescript\nexport type Environment = 'local' | 'staging' | 'production';\n\nexport function getEnvironment(): Environment {\n  \u002F\u002F Explicit env var takes priority\n  const explicit = process.env.SUPABASE_ENV;\n  if (explicit === 'local' || explicit === 'staging' || explicit === 'production') {\n    return explicit;\n  }\n\n  \u002F\u002F Fallback: detect from URL\n  const url = process.env.NEXT_PUBLIC_SUPABASE_URL ?? '';\n  if (url.includes('127.0.0.1') || url.includes('localhost')) return 'local';\n  if (url.includes('staging')) return 'staging';\n  return 'production';\n}\n\nexport function isProduction(): boolean {\n  return getEnvironment() === 'production';\n}\n\nexport function requireNonProduction(operation: string): void {\n  if (isProduction()) {\n    throw new Error(\n      `[BLOCKED] \"${operation}\" is not allowed in production. ` +\n      `Current SUPABASE_ENV=${process.env.SUPABASE_ENV}`\n    );\n  }\n}\n```\n\n**Supabase client factory (`lib\u002Fsupabase.ts`):**\n\n```typescript\nimport { createClient, type SupabaseClient } from '@supabase\u002Fsupabase-js';\nimport type { Database } from '.\u002Fdatabase.types';\nimport { getEnvironment } from '.\u002Fenv';\n\n\u002F\u002F Browser client (uses anon key, respects RLS)\nexport function createBrowserClient(): SupabaseClient\u003CDatabase> {\n  const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL!;\n  const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!;\n\n  return createClient\u003CDatabase>(supabaseUrl, supabaseAnonKey, {\n    auth: {\n      autoRefreshToken: true,\n      persistSession: true,\n    },\n    global: {\n      headers: { 'x-environment': getEnvironment() },\n    },\n  });\n}\n\n\u002F\u002F Server client (uses service role key, bypasses RLS)\nexport function createServerClient(): SupabaseClient\u003CDatabase> {\n  const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL!;\n  const serviceRoleKey = process.env.SUPABASE_SERVICE_ROLE_KEY!;\n\n  return createClient\u003CDatabase>(supabaseUrl, serviceRoleKey, {\n    auth: {\n      autoRefreshToken: false,\n      persistSession: false,\n    },\n  });\n}\n```\n\n**Production safeguards:**\n\n```typescript\nimport { requireNonProduction } from '.\u002Fenv';\nimport { createServerClient } from '.\u002Fsupabase';\n\n\u002F\u002F Seed data — only runs in local\u002Fstaging\nexport async function seedTestData(): Promise\u003Cvoid> {\n  requireNonProduction('seedTestData');\n  const supabase = createServerClient();\n  await supabase.from('test_users').insert([\n    { email: 'test@example.com', role: 'admin' },\n    { email: 'user@example.com', role: 'member' },\n  ]);\n}\n\n\u002F\u002F Destructive reset — only runs in local\nexport async function resetDatabase(): Promise\u003Cvoid> {\n  requireNonProduction('resetDatabase');\n  const supabase = createServerClient();\n  await supabase.rpc('truncate_all_tables');\n}\n```\n\n**Environment-specific RLS policies:**\n\n```sql\n-- supabase\u002Fmigrations\u002F20260115000000_env_rls.sql\n-- Allow broader access in staging for QA testing\nCREATE POLICY \"staging_read_all\" ON public.profiles\n  FOR SELECT\n  USING (\n    current_setting('app.environment', true) = 'staging'\n    OR auth.uid() = id\n  );\n\n-- Set environment in each request via the x-environment header\n-- or via a Postgres config parameter in your connection string\n```\n\n### Step 3: Migration Promotion and Database Branching\n\nPromote migrations through environments (local -> staging -> production) and use database branching for preview deployments.\n\n**Migration promotion workflow:**\n\n```bash\n# 1. Create migration locally\nnpx supabase migration new add_profiles_table\n# Edit: supabase\u002Fmigrations\u002F20260120000000_add_profiles_table.sql\n\n# 2. Test locally with full reset\nnpx supabase db reset          # Applies all migrations + seed.sql\nnpx supabase test db           # Run pgTAP tests if configured\n\n# 3. Push to staging\nnpx supabase link --project-ref \u003Cstaging-ref>\nnpx supabase db push           # Applies only new migrations\n# Run integration tests against staging URL\n\n# 4. Push to production (after staging verification)\nnpx supabase link --project-ref \u003Cprod-ref>\nnpx supabase db push           # Same migrations, production database\n# Verify with health check endpoint\n\n# 5. Generate types from the canonical source\nnpx supabase gen types typescript --local > lib\u002Fdatabase.types.ts\n# Or from linked project:\n# npx supabase gen types typescript --linked > lib\u002Fdatabase.types.ts\n```\n\n**Database branching for preview environments:**\n\n```bash\n# Create a branch for a feature (requires Supabase Pro plan)\nnpx supabase branches create feature-user-profiles \\\n  --project-ref \u003Cstaging-ref>\n\n# Each branch gets its own:\n# - Database with current migrations applied\n# - Unique API URL and keys\n# - Isolated storage buckets\n\n# List active branches\nnpx supabase branches list --project-ref \u003Cstaging-ref>\n\n# Connect preview deployment to the branch\n# In your CI (e.g., Vercel preview deploys):\nNEXT_PUBLIC_SUPABASE_URL=https:\u002F\u002F\u003Cbranch-ref>.supabase.co\nNEXT_PUBLIC_SUPABASE_ANON_KEY=\u003Cbranch-anon-key>\n\n# Delete branch after merge\nnpx supabase branches delete feature-user-profiles \\\n  --project-ref \u003Cstaging-ref>\n```\n\n**CI\u002FCD per-environment deployment (`.github\u002Fworkflows\u002Fdeploy.yml`):**\n\n```yaml\nname: Deploy Supabase\non:\n  push:\n    branches: [develop, main]\n\njobs:\n  deploy-staging:\n    if: github.ref == 'refs\u002Fheads\u002Fdevelop'\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: supabase\u002Fsetup-cli@v1\n        with:\n          version: latest\n      - name: Push migrations to staging\n        run: |\n          npx supabase link --project-ref ${{ secrets.STAGING_PROJECT_REF }}\n          npx supabase db push\n        env:\n          SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}\n          SUPABASE_DB_PASSWORD: ${{ secrets.STAGING_DB_PASSWORD }}\n      - name: Deploy Edge Functions\n        run: npx supabase functions deploy --project-ref ${{ secrets.STAGING_PROJECT_REF }}\n        env:\n          SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}\n\n  deploy-production:\n    if: github.ref == 'refs\u002Fheads\u002Fmain'\n    runs-on: ubuntu-latest\n    environment: production   # Requires approval in GitHub\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: supabase\u002Fsetup-cli@v1\n        with:\n          version: latest\n      - name: Push migrations to production\n        run: |\n          npx supabase link --project-ref ${{ secrets.PROD_PROJECT_REF }}\n          npx supabase db push\n        env:\n          SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}\n          SUPABASE_DB_PASSWORD: ${{ secrets.PROD_DB_PASSWORD }}\n      - name: Deploy Edge Functions\n        run: npx supabase functions deploy --project-ref ${{ secrets.PROD_PROJECT_REF }}\n        env:\n          SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}\n```\n\n**Environment-specific seed data:**\n\n```sql\n-- supabase\u002Fseed.sql (runs ONLY on `supabase db reset`, never in production)\nINSERT INTO public.profiles (id, email, role) VALUES\n  ('00000000-0000-0000-0000-000000000001', 'admin@test.local', 'admin'),\n  ('00000000-0000-0000-0000-000000000002', 'user@test.local', 'member');\n\n-- Insert test data for local development\nINSERT INTO public.projects (name, owner_id) VALUES\n  ('Test Project', '00000000-0000-0000-0000-000000000001');\n```\n\n## Output\n\nAfter completing this skill, you will have:\n\n- **Three isolated Supabase projects** — each environment has its own URL, API keys, database, and storage\n- **Environment-specific `.env` files** — `.env.local`, `.env.staging`, `.env.production` with correct credentials\n- **Environment-aware `createClient`** — browser and server clients auto-configured from env vars with `x-environment` header tracking\n- **Production safeguards** — `requireNonProduction()` guard blocks destructive operations outside local\u002Fstaging\n- **Migration promotion pipeline** — `supabase db push` promotes schema changes local -> staging -> production\n- **Database branching** — preview environments get isolated database branches (Pro plan)\n- **CI\u002FCD workflows** — GitHub Actions deploys migrations and Edge Functions per environment with approval gates for production\n- **Generated TypeScript types** — `database.types.ts` generated from local or linked project schema\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `Cannot find project ref` | CLI not linked to a project | Run `npx supabase link --project-ref \u003Cref>` before `db push` |\n| `Migration has already been applied` | Re-running an existing migration | Check `supabase_migrations.schema_migrations` table; migrations are idempotent by ref |\n| `Permission denied for schema public` | Wrong database password | Verify `SUPABASE_DB_PASSWORD` matches the project's database password in dashboard |\n| `Seed data appeared in production` | Ran `supabase db reset` on prod | `seed.sql` only runs on `db reset` — never reset production; use `db push` instead |\n| `Wrong environment keys in client` | `.env` file mismatch | Check `SUPABASE_ENV` var and verify URL matches expected project ref |\n| `Branch creation failed` | Free plan or branching not enabled | Database branching requires Supabase Pro plan; enable in project settings |\n| `Migration drift between envs` | Skipped staging promotion | Always promote through staging first; compare with `supabase migration list` per project |\n| `Type generation mismatch` | Types generated from wrong env | Regenerate from local (`--local`) or re-link to the canonical environment |\n\n## Examples\n\n**Example 1 — Quick three-env bootstrap:**\n\n```bash\n# Initialize Supabase in existing project\nnpx supabase init\n\n# Start local\nnpx supabase start\n# Copy output keys to .env.local\n\n# Create staging + production projects in dashboard\n# Copy their URLs and keys to .env.staging \u002F .env.production\n\n# Create first migration\nnpx supabase migration new create_users\n# Edit the migration, then:\nnpx supabase db reset  # Test locally\n\n# Promote to staging\nnpx supabase link --project-ref abcdefghijklmnop\nnpx supabase db push\n\n# Promote to production\nnpx supabase link --project-ref qrstuvwxyz123456\nnpx supabase db push\n```\n\n**Example 2 — Next.js middleware for environment validation:**\n\n```typescript\n\u002F\u002F middleware.ts\nimport { NextResponse } from 'next\u002Fserver';\nimport type { NextRequest } from 'next\u002Fserver';\n\nexport function middleware(request: NextRequest) {\n  const response = NextResponse.next();\n\n  \u002F\u002F Add environment header for observability\n  const env = process.env.SUPABASE_ENV ?? 'unknown';\n  response.headers.set('x-supabase-env', env);\n\n  \u002F\u002F Block admin routes in production unless authenticated\n  if (env === 'production' && request.nextUrl.pathname.startsWith('\u002Fadmin\u002Fseed')) {\n    return NextResponse.json({ error: 'Not available in production' }, { status: 403 });\n  }\n\n  return response;\n}\n```\n\n**Example 3 — Verify environment before destructive operations:**\n\n```typescript\nimport { getEnvironment, requireNonProduction } from '@\u002Flib\u002Fenv';\n\nasync function adminResetHandler(req: Request) {\n  const env = getEnvironment();\n  console.log(`[admin-reset] Running in ${env} environment`);\n\n  requireNonProduction('admin-reset');\n\n  \u002F\u002F Safe to proceed — we're in local or staging\n  const { error } = await supabase.rpc('reset_test_data');\n  if (error) throw error;\n\n  return Response.json({ status: 'reset complete', environment: env });\n}\n```\n\n## Resources\n\n- [Managing Environments — Supabase Docs](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Fguides\u002Fdeployment\u002Fmanaging-environments)\n- [Database Migrations — Supabase Docs](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Fguides\u002Fdeployment\u002Fdatabase-migrations)\n- [Database Branching — Supabase Docs](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Fguides\u002Fdeployment\u002Fbranching)\n- [Supabase CLI Reference](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Freference\u002Fcli\u002Fintroduction)\n- [createClient — @supabase\u002Fsupabase-js](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Freference\u002Fjavascript\u002Finitializing)\n- [GitHub Actions with Supabase](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Fguides\u002Fdeployment\u002Fmanaging-environments#using-github-actions)\n- [12-Factor App — Config](https:\u002F\u002F12factor.net\u002Fconfig)\n\n## Next Steps\n\n- For authentication patterns across environments, see `supabase-auth-storage-realtime-core`\n- For RLS policy testing and validation, see `supabase-policy-guardrails`\n- For local development workflow optimization, see `supabase-local-dev-loop`\n- For monitoring and observability across environments, see `supabase-observability`\n","# Supabase Multi-Environment Setup\n\n## Overview\n\nProduction Supabase deployments require separate projects per environment — each with its own URL, API keys, database, and RLS policies. This skill configures a three-tier environment architecture (local dev, staging, production) with safe migration promotion via `supabase db push`, environment-aware `createClient` initialization, database branching for preview deployments, and CI\u002FCD pipelines that prevent accidental cross-environment operations.\n\n**When to use:** Setting up a new project with multiple environments, migrating from a single-project setup to multi-env, adding staging to an existing dev\u002Fprod split, or configuring preview environments with database branching.\n\n## Prerequisites\n\n- Three separate Supabase projects created at [supabase.com\u002Fdashboard](https:\u002F\u002Fsupabase.com\u002Fdashboard) (dev, staging, production)\n- Supabase CLI installed: `npm install -g supabase` or `npx supabase --version`\n- `@supabase\u002Fsupabase-js` v2+ installed in your project\n- Node.js 18+ with framework that supports `.env` files (Next.js, Nuxt, SvelteKit, etc.)\n- A secret management solution for CI (GitHub Actions Secrets, Vercel env vars, etc.)\n\n## Instructions\n\n### Step 1: Environment Files and Project Layout\n\nCreate one Supabase CLI project with shared migrations and per-environment credential files. Each `.env.*` file points to a different Supabase project.\n\n**Project structure:**\n\n```\nmy-app\u002F\n├── supabase\u002F\n│   ├── config.toml              # Local CLI config\n│   ├── migrations\u002F              # Shared migrations (all envs use the same schema)\n│   │   └── 20260101000000_initial.sql\n│   ├── seed.sql                 # Dev-only seed data (runs on db reset only)\n│   └── functions\u002F               # Edge Functions (deployed per env)\n├── .env.local                   # Local dev → supabase start\n├── .env.staging                 # Staging project credentials\n├── .env.production              # Production project credentials\n└── .gitignore                   # Must include .env.staging, .env.production\n```\n\n**Environment files:**\n\n```bash\n# .env.local — local development (safe defaults from supabase start)\nNEXT_PUBLIC_SUPABASE_URL=http:\u002F\u002F127.0.0.1:54321\nNEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0\nSUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU\nDATABASE_URL=postgresql:\u002F\u002Fpostgres:postgres@127.0.0.1:54322\u002Fpostgres\nSUPABASE_ENV=local\n\n# .env.staging — staging project\nNEXT_PUBLIC_SUPABASE_URL=https:\u002F\u002F\u003Cstaging-ref>.supabase.co\nNEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ...staging-anon-key\nSUPABASE_SERVICE_ROLE_KEY=eyJ...staging-service-key\nDATABASE_URL=postgres:\u002F\u002Fpostgres.\u003Cstaging-ref>:\u003Cpassword>@aws-0-\u003Cregion>.pooler.supabase.com:6543\u002Fpostgres\nSUPABASE_ENV=staging\n\n# .env.production — production project (NEVER commit this file)\nNEXT_PUBLIC_SUPABASE_URL=https:\u002F\u002F\u003Cprod-ref>.supabase.co\nNEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ...prod-anon-key\nSUPABASE_SERVICE_ROLE_KEY=eyJ...prod-service-key\nDATABASE_URL=postgres:\u002F\u002Fpostgres.\u003Cprod-ref>:\u003Cpassword>@aws-0-\u003Cregion>.pooler.supabase.com:6543\u002Fpostgres\nSUPABASE_ENV=production\n```\n\n**Critical `.gitignore` entries:**\n\n```gitignore\n.env.staging\n.env.production\n# .env.local is safe to commit (contains only local dev keys)\n```\n\n**Link each environment to the CLI:**\n\n```bash\n# Local development\nnpx supabase start\n\n# Link staging (stores ref in supabase\u002F.temp\u002Fproject-ref)\nnpx supabase link --project-ref \u003Cstaging-ref>\n\n# Link production (re-links, overwriting staging ref)\nnpx supabase link --project-ref \u003Cprod-ref>\n```\n\n> **Note:** The CLI can only link one project at a time. Switch between environments by re-running `supabase link` with the target project ref before any `db push` or `functions deploy` operation.\n\n### Step 2: Environment-Aware Client and Safeguards\n\nBuild a `createClient` wrapper that selects the correct URL and keys based on the active environment, plus production safeguards that block destructive operations.\n\n**Environment detection (`lib\u002Fenv.ts`):**\n\n```typescript\nexport type Environment = 'local' | 'staging' | 'production';\n\nexport function getEnvironment(): Environment {\n  \u002F\u002F Explicit env var takes priority\n  const explicit = process.env.SUPABASE_ENV;\n  if (explicit === 'local' || explicit === 'staging' || explicit === 'production') {\n    return explicit;\n  }\n\n  \u002F\u002F Fallback: detect from URL\n  const url = process.env.NEXT_PUBLIC_SUPABASE_URL ?? '';\n  if (url.includes('127.0.0.1') || url.includes('localhost')) return 'local';\n  if (url.includes('staging')) return 'staging';\n  return 'production';\n}\n\nexport function isProduction(): boolean {\n  return getEnvironment() === 'production';\n}\n\nexport function requireNonProduction(operation: string): void {\n  if (isProduction()) {\n    throw new Error(\n      `[BLOCKED] \"${operation}\" is not allowed in production. ` +\n      `Current SUPABASE_ENV=${process.env.SUPABASE_ENV}`\n    );\n  }\n}\n```\n\n**Supabase client factory (`lib\u002Fsupabase.ts`):**\n\n```typescript\nimport { createClient, type SupabaseClient } from '@supabase\u002Fsupabase-js';\nimport type { Database } from '.\u002Fdatabase.types';\nimport { getEnvironment } from '.\u002Fenv';\n\n\u002F\u002F Browser client (uses anon key, respects RLS)\nexport function createBrowserClient(): SupabaseClient\u003CDatabase> {\n  const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL!;\n  const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!;\n\n  return createClient\u003CDatabase>(supabaseUrl, supabaseAnonKey, {\n    auth: {\n      autoRefreshToken: true,\n      persistSession: true,\n    },\n    global: {\n      headers: { 'x-environment': getEnvironment() },\n    },\n  });\n}\n\n\u002F\u002F Server client (uses service role key, bypasses RLS)\nexport function createServerClient(): SupabaseClient\u003CDatabase> {\n  const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL!;\n  const serviceRoleKey = process.env.SUPABASE_SERVICE_ROLE_KEY!;\n\n  return createClient\u003CDatabase>(supabaseUrl, serviceRoleKey, {\n    auth: {\n      autoRefreshToken: false,\n      persistSession: false,\n    },\n  });\n}\n```\n\n**Production safeguards:**\n\n```typescript\nimport { requireNonProduction } from '.\u002Fenv';\nimport { createServerClient } from '.\u002Fsupabase';\n\n\u002F\u002F Seed data — only runs in local\u002Fstaging\nexport async function seedTestData(): Promise\u003Cvoid> {\n  requireNonProduction('seedTestData');\n  const supabase = createServerClient();\n  await supabase.from('test_users').insert([\n    { email: 'test@example.com', role: 'admin' },\n    { email: 'user@example.com', role: 'member' },\n  ]);\n}\n\n\u002F\u002F Destructive reset — only runs in local\nexport async function resetDatabase(): Promise\u003Cvoid> {\n  requireNonProduction('resetDatabase');\n  const supabase = createServerClient();\n  await supabase.rpc('truncate_all_tables');\n}\n```\n\n**Environment-specific RLS policies:**\n\n```sql\n-- supabase\u002Fmigrations\u002F20260115000000_env_rls.sql\n-- Allow broader access in staging for QA testing\nCREATE POLICY \"staging_read_all\" ON public.profiles\n  FOR SELECT\n  USING (\n    current_setting('app.environment', true) = 'staging'\n    OR auth.uid() = id\n  );\n\n-- Set environment in each request via the x-environment header\n-- or via a Postgres config parameter in your connection string\n```\n\n### Step 3: Migration Promotion and Database Branching\n\nPromote migrations through environments (local -> staging -> production) and use database branching for preview deployments.\n\n**Migration promotion workflow:**\n\n```bash\n# 1. Create migration locally\nnpx supabase migration new add_profiles_table\n# Edit: supabase\u002Fmigrations\u002F20260120000000_add_profiles_table.sql\n\n# 2. Test locally with full reset\nnpx supabase db reset          # Applies all migrations + seed.sql\nnpx supabase test db           # Run pgTAP tests if configured\n\n# 3. Push to staging\nnpx supabase link --project-ref \u003Cstaging-ref>\nnpx supabase db push           # Applies only new migrations\n# Run integration tests against staging URL\n\n# 4. Push to production (after staging verification)\nnpx supabase link --project-ref \u003Cprod-ref>\nnpx supabase db push           # Same migrations, production database\n# Verify with health check endpoint\n\n# 5. Generate types from the canonical source\nnpx supabase gen types typescript --local > lib\u002Fdatabase.types.ts\n# Or from linked project:\n# npx supabase gen types typescript --linked > lib\u002Fdatabase.types.ts\n```\n\n**Database branching for preview environments:**\n\n```bash\n# Create a branch for a feature (requires Supabase Pro plan)\nnpx supabase branches create feature-user-profiles \\\n  --project-ref \u003Cstaging-ref>\n\n# Each branch gets its own:\n# - Database with current migrations applied\n# - Unique API URL and keys\n# - Isolated storage buckets\n\n# List active branches\nnpx supabase branches list --project-ref \u003Cstaging-ref>\n\n# Connect preview deployment to the branch\n# In your CI (e.g., Vercel preview deploys):\nNEXT_PUBLIC_SUPABASE_URL=https:\u002F\u002F\u003Cbranch-ref>.supabase.co\nNEXT_PUBLIC_SUPABASE_ANON_KEY=\u003Cbranch-anon-key>\n\n# Delete branch after merge\nnpx supabase branches delete feature-user-profiles \\\n  --project-ref \u003Cstaging-ref>\n```\n\n**CI\u002FCD per-environment deployment (`.github\u002Fworkflows\u002Fdeploy.yml`):**\n\n```yaml\nname: Deploy Supabase\non:\n  push:\n    branches: [develop, main]\n\njobs:\n  deploy-staging:\n    if: github.ref == 'refs\u002Fheads\u002Fdevelop'\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: supabase\u002Fsetup-cli@v1\n        with:\n          version: latest\n      - name: Push migrations to staging\n        run: |\n          npx supabase link --project-ref ${{ secrets.STAGING_PROJECT_REF }}\n          npx supabase db push\n        env:\n          SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}\n          SUPABASE_DB_PASSWORD: ${{ secrets.STAGING_DB_PASSWORD }}\n      - name: Deploy Edge Functions\n        run: npx supabase functions deploy --project-ref ${{ secrets.STAGING_PROJECT_REF }}\n        env:\n          SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}\n\n  deploy-production:\n    if: github.ref == 'refs\u002Fheads\u002Fmain'\n    runs-on: ubuntu-latest\n    environment: production   # Requires approval in GitHub\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: supabase\u002Fsetup-cli@v1\n        with:\n          version: latest\n      - name: Push migrations to production\n        run: |\n          npx supabase link --project-ref ${{ secrets.PROD_PROJECT_REF }}\n          npx supabase db push\n        env:\n          SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}\n          SUPABASE_DB_PASSWORD: ${{ secrets.PROD_DB_PASSWORD }}\n      - name: Deploy Edge Functions\n        run: npx supabase functions deploy --project-ref ${{ secrets.PROD_PROJECT_REF }}\n        env:\n          SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}\n```\n\n**Environment-specific seed data:**\n\n```sql\n-- supabase\u002Fseed.sql (runs ONLY on `supabase db reset`, never in production)\nINSERT INTO public.profiles (id, email, role) VALUES\n  ('00000000-0000-0000-0000-000000000001', 'admin@test.local', 'admin'),\n  ('00000000-0000-0000-0000-000000000002', 'user@test.local', 'member');\n\n-- Insert test data for local development\nINSERT INTO public.projects (name, owner_id) VALUES\n  ('Test Project', '00000000-0000-0000-0000-000000000001');\n```\n\n## Output\n\nAfter completing this skill, you will have:\n\n- **Three isolated Supabase projects** — each environment has its own URL, API keys, database, and storage\n- **Environment-specific `.env` files** — `.env.local`, `.env.staging`, `.env.production` with correct credentials\n- **Environment-aware `createClient`** — browser and server clients auto-configured from env vars with `x-environment` header tracking\n- **Production safeguards** — `requireNonProduction()` guard blocks destructive operations outside local\u002Fstaging\n- **Migration promotion pipeline** — `supabase db push` promotes schema changes local -> staging -> production\n- **Database branching** — preview environments get isolated database branches (Pro plan)\n- **CI\u002FCD workflows** — GitHub Actions deploys migrations and Edge Functions per environment with approval gates for production\n- **Generated TypeScript types** — `database.types.ts` generated from local or linked project schema\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `Cannot find project ref` | CLI not linked to a project | Run `npx supabase link --project-ref \u003Cref>` before `db push` |\n| `Migration has already been applied` | Re-running an existing migration | Check `supabase_migrations.schema_migrations` table; migrations are idempotent by ref |\n| `Permission denied for schema public` | Wrong database password | Verify `SUPABASE_DB_PASSWORD` matches the project's database password in dashboard |\n| `Seed data appeared in production` | Ran `supabase db reset` on prod | `seed.sql` only runs on `db reset` — never reset production; use `db push` instead |\n| `Wrong environment keys in client` | `.env` file mismatch | Check `SUPABASE_ENV` var and verify URL matches expected project ref |\n| `Branch creation failed` | Free plan or branching not enabled | Database branching requires Supabase Pro plan; enable in project settings |\n| `Migration drift between envs` | Skipped staging promotion | Always promote through staging first; compare with `supabase migration list` per project |\n| `Type generation mismatch` | Types generated from wrong env | Regenerate from local (`--local`) or re-link to the canonical environment |\n\n## Examples\n\n**Example 1 — Quick three-env bootstrap:**\n\n```bash\n# Initialize Supabase in existing project\nnpx supabase init\n\n# Start local\nnpx supabase start\n# Copy output keys to .env.local\n\n# Create staging + production projects in dashboard\n# Copy their URLs and keys to .env.staging \u002F .env.production\n\n# Create first migration\nnpx supabase migration new create_users\n# Edit the migration, then:\nnpx supabase db reset  # Test locally\n\n# Promote to staging\nnpx supabase link --project-ref abcdefghijklmnop\nnpx supabase db push\n\n# Promote to production\nnpx supabase link --project-ref qrstuvwxyz123456\nnpx supabase db push\n```\n\n**Example 2 — Next.js middleware for environment validation:**\n\n```typescript\n\u002F\u002F middleware.ts\nimport { NextResponse } from 'next\u002Fserver';\nimport type { NextRequest } from 'next\u002Fserver';\n\nexport function middleware(request: NextRequest) {\n  const response = NextResponse.next();\n\n  \u002F\u002F Add environment header for observability\n  const env = process.env.SUPABASE_ENV ?? 'unknown';\n  response.headers.set('x-supabase-env', env);\n\n  \u002F\u002F Block admin routes in production unless authenticated\n  if (env === 'production' && request.nextUrl.pathname.startsWith('\u002Fadmin\u002Fseed')) {\n    return NextResponse.json({ error: 'Not available in production' }, { status: 403 });\n  }\n\n  return response;\n}\n```\n\n**Example 3 — Verify environment before destructive operations:**\n\n```typescript\nimport { getEnvironment, requireNonProduction } from '@\u002Flib\u002Fenv';\n\nasync function adminResetHandler(req: Request) {\n  const env = getEnvironment();\n  console.log(`[admin-reset] Running in ${env} environment`);\n\n  requireNonProduction('admin-reset');\n\n  \u002F\u002F Safe to proceed — we're in local or staging\n  const { error } = await supabase.rpc('reset_test_data');\n  if (error) throw error;\n\n  return Response.json({ status: 'reset complete', environment: env });\n}\n```\n\n## Resources\n\n- [Managing Environments — Supabase Docs](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Fguides\u002Fdeployment\u002Fmanaging-environments)\n- [Database Migrations — Supabase Docs](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Fguides\u002Fdeployment\u002Fdatabase-migrations)\n- [Database Branching — Supabase Docs](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Fguides\u002Fdeployment\u002Fbranching)\n- [Supabase CLI Reference](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Freference\u002Fcli\u002Fintroduction)\n- [createClient — @supabase\u002Fsupabase-js](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Freference\u002Fjavascript\u002Finitializing)\n- [GitHub Actions with Supabase](https:\u002F\u002Fsupabase.com\u002Fdocs\u002Fguides\u002Fdeployment\u002Fmanaging-environments#using-github-actions)\n- [12-Factor App — Config](https:\u002F\u002F12factor.net\u002Fconfig)\n\n## Next Steps\n\n- For authentication patterns across environments, see `supabase-auth-storage-realtime-core`\n- For RLS policy testing and validation, see `supabase-policy-guardrails`\n- For local development workflow optimization, see `supabase-local-dev-loop`\n- For monitoring and observability across environments, see `supabase-observability`\n",{"name":5,"tags":24,"author":31,"license":15,"version":32,"description":33,"allowed-tools":34,"compatible-with":35},[25,26,27,28,29,30],"saas","supabase","deployment","environments","multi-env","devops","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Configure Supabase across development, staging, and production with separate projects,\nenvironment-specific secrets, and safe migration promotion.\nUse when setting up multi-environment deployments, isolating dev from prod data,\nconfiguring per-environment Supabase projects, or promoting migrations through environments.\nTrigger: \"supabase environments\", \"supabase staging\", \"supabase dev prod\",\n\"supabase multi-project\", \"supabase env config\", \"database branching\".\n","Read, Write, Edit, Bash(npx supabase:*), Bash(supabase:*), Bash(vercel:*), Grep, Glob","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--supabase-pack--supabase-multi-env-setup",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill supabase-multi-env-setup",{"tool":51,"command":52},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill supabase-multi-env-setup",{"tool":54,"command":55},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill supabase-multi-env-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--supabase-pack--supabase-multi-env-setup\u002FSKILL.md",true,[],[60,67,74,81,88,96],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]