ethereumdegen/stark-bot/supabase-cli

Claude Code and agent skill by ethereumdegen/stark-bot

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Manage Supabase projects - databases, migrations, edge functions, storage, and secrets using the Supabase CLI.

Install

npx vskill@latest install ethereumdegen/stark-bot/supabase-cli

SKILL.md

Supabase Integration

Manage your Supabase projects using the Supabase CLI. Run SQL queries, manage migrations, deploy edge functions, handle secrets, and more.

Authentication

First, check if SUPABASE_ACCESS_TOKEN is configured:

tool:api_keys_check
key_name: SUPABASE_ACCESS_TOKEN

If not configured, ask the user to create a Personal Access Token at https://supabase.com/dashboard/account/tokens and add it in Settings > API Keys as SUPABASE_ACCESS_TOKEN.

The SUPABASE_ACCESS_TOKEN env var is automatically injected into all exec commands.


Prerequisites

Ensure the Supabase CLI is installed:

tool:exec
command: supabase --version
timeout: 30

Supabase CLI is installed by the supabase_cli module. If missing, reinstall via manage_modules(action="install", name="supabase_cli").


Operations

1. List Projects
tool:exec
command: supabase projects list
timeout: 30
2. Link to Project

Link the current workspace to an existing Supabase project. The project ref is the unique ID found in your project's dashboard URL.

tool:exec
command: supabase link --project-ref PROJECT_REF
timeout: 30
3. Database Status

Inspect the linked database:

tool:exec
command: supabase inspect db info
timeout: 30
4. Run SQL Query

Execute a SQL query against the linked project:

tool:exec
command: supabase db execute "SELECT current_database(), current_user"
timeout: 60

For queries against a specific project (without linking):

tool:exec
command: supabase db execute --project-ref PROJECT_REF "SELECT ..."
timeout: 60
5. Pull Schema / Create Migration

Pull the current remote schema into a local migration file:

tool:exec
command: supabase db pull
timeout: 60

Generate a diff-based migration from local changes:

tool:exec
command: supabase db diff --use-migra -f MIGRATION_NAME
timeout: 60
6. Push Migrations

IMPORTANT: Confirm with the user before pushing migrations.

Push local migrations to the remote database:

tool:exec
command: supabase db push
timeout: 120
7. Generate TypeScript Types

Generate TypeScript types from the database schema:

tool:exec
command: supabase gen types typescript --project-ref PROJECT_REF
timeout: 60
8. Inspect Queries

View long-running queries:

tool:exec
command: supabase inspect db long-running-queries
timeout: 30

View most frequently called queries:

tool:exec
command: supabase inspect db calls
timeout: 30

View table sizes:

tool:exec
command: supabase inspect db table-sizes
timeout: 30
9. Deploy Edge Functions

IMPORTANT: Confirm with the user before deploying.

Deploy an edge function:

tool:exec
command: supabase functions deploy FUNCTION_NAME
timeout: 120

List deployed functions:

tool:exec
command: supabase functions list
timeout: 30
10. Manage Secrets

List all secrets:

tool:exec
command: supabase secrets list
timeout: 30

Set a secret:

IMPORTANT: Confirm with the user before modifying secrets.

tool:exec
command: supabase secrets set KEY=VALUE
timeout: 30

For multiple secrets:

tool:exec
command: supabase secrets set KEY1=VALUE1 KEY2=VALUE2
timeout: 30
11. Storage Operations

List files in a storage bucket:

tool:exec
command: supabase storage ls ss:///BUCKET_NAME
timeout: 30

Copy a file to storage:

tool:exec
command: supabase storage cp LOCAL_FILE ss:///BUCKET_NAME/PATH
timeout: 60
12. Create New Project

Create a new Supabase project. This is a multi-step workflow.

IMPORTANT: Confirm the project name, organization, region, and database password with the user before proceeding.

Step 1: Define the tasks

Call define_tasks with all steps upfront so progress is tracked:

json
{"tool": "define_tasks", "tasks": [
"TASK 1 — List organizations: get available orgs to create project under. See supabase skill 'Step 2'.",
"TASK 2 — Create project: create a new Supabase project. See supabase skill 'Step 3'.",
"TASK 3 — Link project: link the workspace to the new project. See supabase skill 'Step 4'.",
"TASK 4 — Configure secrets: set environment variables / secrets. See supabase skill 'Step 5'.",
"TASK 5 — Verify project: confirm project is ready and accessible. See supabase skill 'Step 6'."
]}
Step 2: List organizations
tool:exec
command: supabase orgs list
timeout: 30
Step 3: Create the project
tool:exec
command: supabase projects create PROJECT_NAME --org-id ORG_ID --db-password DB_PASSWORD --region REGION
timeout: 120

Common regions: us-east-1, us-west-1, eu-west-1, ap-southeast-1.

Step 4: Link to the new project
tool:exec
command: supabase link --project-ref PROJECT_REF
timeout: 30
Step 5: Set secrets (if needed)

Use operation #10 to set any secrets the project needs.

Step 6: Verify project
tool:exec
command: supabase projects list
timeout: 30

Then inspect the database:

tool:exec
command: supabase inspect db info
timeout: 30

Error Handling

ErrorCauseSolution
UnauthorizedToken is invalid/expiredRegenerate PAT at https://supabase.com/dashboard/account/tokens
Cannot find linked projectNo project linked in current directoryUse supabase link --project-ref REF first
Permission deniedToken lacks access to the projectVerify token owner has access to the project/org
Migration conflictRemote has changes not in localRun supabase db pull first, then resolve conflicts
Function deploy failedBuild error in edge functionCheck function code for syntax errors
supabase: command not foundCLI not installedReport to admin — should be pre-installed in Docker

Typical Workflow

  1. Verify auth — supabase projects list
  2. Link to project — supabase link --project-ref REF
  3. Check database — supabase inspect db info
  4. Take action — run queries, push migrations, deploy functions (confirm with user first)

Best Practices

  1. Always verify auth first before running other commands
  2. Link before acting — use supabase link so commands target the right project
  3. Confirm mutations — always ask the user before pushing migrations, deploying functions, or modifying secrets
  4. Pull before push — run supabase db pull before supabase db push to avoid conflicts
  5. Be careful with secrets — they may contain sensitive values, don't log them unnecessarily
  6. Use `--project-ref` for one-off commands against a specific project without linking

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
46
Repository forks
20
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ethereumdegen/stark-bot/supabase-cli/badge)](https://verified-skill.com/skills/ethereumdegen/stark-bot/supabase-cli)

Something wrong with this skill or its page? Tell us.