跳到正文
cccskills
免费在 GitHub 公开

supabase-cli

This skill should be used when user asks to "use supabase CLI", "supabase init", "supabase start", "run migrations", "deploy edge functions", "manage Supabase project", or works with the supabase command-line tool for local development and project management.

中文简介正在准备中。当前显示原文说明。

集成工具Supabase
查看安装方法

包含的文件(57)

  • SKILL.md6.3 KB
  • references/commands/functions.md543 B
  • references/commands/gen.md594 B
  • references/commands/init.md682 B
  • references/commands/link.md626 B
  • references/commands/login.md695 B
  • references/commands/network-bans.md230 B
  • references/commands/projects.md477 B
  • references/commands/pull.md7.0 KB
  • references/commands/secrets.md476 B
  • references/commands/start.md850 B
  • references/commands/status.md432 B
  • references/commands/stop.md475 B
  • references/commands/vanity-subdomains.md149 B
  • references/config/diff.md2.3 KB
  • references/config/pull.md8.0 KB
  • references/config/push.md1.5 KB
  • references/db/advisors.md174 B
  • references/db/diff.md2.7 KB
  • references/db/dump.md926 B
  • references/db/lint.md1.0 KB
  • references/db/pull.md3.4 KB
  • references/db/push.md843 B
  • references/db/query.md337 B
  • references/db/reset.md1.3 KB
  • references/db/schema-declarative-generate.md1.5 KB
  • references/db/schema-declarative-sync.md413 B
  • references/domains/activate.md523 B
  • references/examples.yaml16.2 KB
  • references/functions/new.md510 B
  • references/functions/serve.md1.9 KB
  • references/inspect/db-bloat.md1.3 KB
  • references/inspect/db-blocking.md1.2 KB
  • references/inspect/db-cache-hit.md1.3 KB
  • references/inspect/db-calls.md1.3 KB
  • references/inspect/db-index-sizes.md660 B
  • references/inspect/db-index-usage.md968 B
  • references/inspect/db-locks.md1.1 KB
  • references/inspect/db-long-running-queries.md1.0 KB
  • references/inspect/db-outliers.md1.9 KB
  • references/inspect/db-replication-slots.md1.3 KB
  • references/inspect/db-role-connections.md1.6 KB
  • references/inspect/db-seq-scans.md720 B
  • references/inspect/db-table-index-sizes.md627 B
  • references/inspect/db-table-record-counts.md636 B
  • references/inspect/db-table-sizes.md756 B
  • references/inspect/db-total-index-size.md272 B
  • references/inspect/db-total-table-sizes.md608 B
  • references/inspect/db-traffic-profile.md1.8 KB
  • references/inspect/db-unused-indexes.md923 B
  • references/inspect/db-vacuum-stats.md2.4 KB
  • references/migration/list.md722 B
  • references/migration/new.md376 B
  • references/migration/repair.md2.6 KB
  • references/migration/squash.md892 B
  • references/overview.md5.4 KB
  • references/test/db.md440 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Supabase CLI Skill

Skill for local development, migrations, edge functions, and project management with the supabase CLI. Official docs: https://supabase.com/docs/reference/cli/about

Installation

# macOS / Linux (Homebrew)
brew install supabase/tap/supabase

# npm
npm install -g supabase

# Windows (Scoop)
scoop bucket add supabase https://github.com/supabase/scoop-bucket.git
scoop install supabase

Authentication

# Login with access token from https://supabase.com/dashboard/account/tokens
supabase login

# Link to a project
supabase link --project-ref <project-id>

Quick Decision Trees

"I need local development"

Local dev?
├─ Initialize project → supabase init
├─ Start local stack → supabase start
│  ├─ Without specific services → supabase start -x studio,imgproxy
│  └─ Status → supabase status
├─ Stop local stack → supabase stop
│  └─ Clean up data → supabase stop --no-backup
├─ View service URLs → supabase status
└─ Bootstrap from template → supabase bootstrap

"I need database migrations"

Migrations?
├─ Create new migration → supabase migration new <name>
├─ Apply pending migrations → supabase migration up
│  └─ Rollback → supabase migration down
├─ Diff local changes → supabase db diff
│  └─ Save as migration → supabase db diff -f <name>
├─ Pull remote schema → supabase db pull
├─ Push local migrations → supabase db push
├─ Reset local database → supabase db reset
├─ List migrations → supabase migration list
├─ Squash migrations → supabase migration squash
├─ Run arbitrary SQL → supabase db query 'SELECT 1'
├─ Run pgTAP tests → supabase test db
└─ Lint schema → supabase db lint

"I need edge functions"

Edge Functions?
├─ Create new function → supabase functions new <name>
├─ Serve locally → supabase functions serve
│  └─ With env file → supabase functions serve --env-file .env.local
├─ Deploy to project → supabase functions deploy <name>
│  └─ Deploy all → supabase functions deploy
├─ Delete function → supabase functions delete <name>
├─ List functions → supabase functions list
└─ Download function → supabase functions download <name>

"I need to manage secrets"

Secrets?
├─ Set secrets → supabase secrets set KEY=value KEY2=value2
├─ Set from .env file → supabase secrets set --env-file .env
├─ List secrets → supabase secrets list
└─ Unset secrets → supabase secrets unset KEY KEY2

"I need code generation"

Code gen?
├─ TypeScript types from DB → supabase gen types typescript --project-id <id>
│  └─ From local DB → supabase gen types typescript --local
├─ Signing key → supabase gen signing-key
└─ Bearer JWT → supabase gen bearer-jwt --project-ref <ref>

"I need to inspect the database"

Inspect?
├─ Database stats → supabase inspect db db-stats
├─ Slow queries → supabase inspect db outliers
├─ Lock monitoring → supabase inspect db locks / blocking
├─ Long running queries → supabase inspect db long-running-queries
├─ Index analysis → supabase inspect db index-usage / unused-indexes
├─ Table sizes → supabase inspect db table-sizes / table-record-counts
├─ Cache hit ratio → supabase inspect db cache-hit
├─ Bloat → supabase inspect db bloat
├─ Vacuum stats → supabase inspect db vacuum-stats
└─ Replication slots → supabase inspect db replication-slots

"I need project management"

Project management?
├─ Create project → supabase projects create <name> --org-id <id> --db-password <pw> --region <r>
├─ List projects → supabase projects list
├─ Delete project → supabase projects delete --project-ref <ref>
├─ API keys → supabase projects api-keys --project-ref <ref>
├─ Organizations → supabase orgs list / create
├─ Custom domains → supabase domains create / get / activate
├─ Preview branches → supabase branches create / list / delete
├─ Backups (PITR) → supabase backups list / restore
├─ SSO management → supabase sso add / list / remove
└─ Push config → supabase config push

Common Workflows

New project setup

supabase init
supabase start
# Make schema changes in Supabase Studio (http://127.0.0.1:54323)
supabase db diff -f initial_schema
supabase stop

Migration workflow

# Create migration from local changes
supabase db diff -f add_profiles_table

# Or write SQL directly
supabase migration new add_profiles_table
# Edit supabase/migrations/<timestamp>_add_profiles_table.sql

# Test locally
supabase db reset
supabase test db

# Deploy to remote
supabase db push

Edge function development

supabase functions new my-function
# Edit supabase/functions/my-function/index.ts
supabase functions serve  # local dev with hot reload
supabase functions deploy my-function

Generate types after schema change

# From remote project
supabase gen types typescript --project-id <id> > database.types.ts

# From local running instance
supabase gen types typescript --local > database.types.ts

Reference Index

CategoryReferenceDescription
Top-level commandsreferences/commands/init, start, stop, status, login, link
Databasereferences/db/diff, dump, lint, pull, push, reset, query
Migrationsreferences/migration/list, new, repair, squash, up, down
Edge Functionsreferences/functions/new, serve, deploy, delete
Inspectreferences/inspect/20+ database inspection subcommands
Configreferences/config/push config to remote
Domainsreferences/domains/custom domain management
Testsreferences/test/pgTAP database tests
Examplesreferences/examples.yamlUsage examples for all commands

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

This skill should be used when the user asks for "ADHD output", "fewer output tokens", "short numbered steps", "limited working memory formatting", or explicitly invokes "adhd-output-style".

中文简介正在准备中。当前显示原文说明。

fcakyon/claude-codex-settings11822026年10月20日 更新

Agent-browser usage guide. Read this before running any agent-browser commands. Covers the snapshot-and-ref workflow, navigating pages, interacting with elements (click, fill, type, select), extracting text and data, taking screenshots, managing tabs, handling forms and auth, waiting for content, running multiple browser sessions in parallel, and troubleshooting common failures. Use when the user asks to interact with a website, fill a form, click something, extract data, take a screenshot, log into a site, test a web app, or automate any browser task.

中文简介正在准备中。当前显示原文说明。

fcakyon/claude-codex-settings11822026年10月20日 更新

Build, debug, or review Cloudflare Agents SDK applications using the agents package.

中文简介正在准备中。当前显示原文说明。

fcakyon/claude-codex-settings11822026年10月20日 更新

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

中文简介正在准备中。当前显示原文说明。

fcakyon/claude-codex-settings11822026年10月20日 更新

This skill should be used when user asks to "query Azure resources", "list storage accounts", "manage Key Vault secrets", "work with Cosmos DB", "check AKS clusters", "use Azure MCP", or interact with any Azure service.

中文简介正在准备中。当前显示原文说明。

fcakyon/claude-codex-settings11822026年10月20日 更新

basin

免费

Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL. Use for streaming data into R2 Iceberg tables, managing catalogs, or querying those tables; also use for requests using the former Data Platform, Pipelines, R2 Data Catalog, or R2 SQL names.

中文简介正在准备中。当前显示原文说明。

fcakyon/claude-codex-settings11822026年10月20日 更新

查看 fcakyon 的全部技能

报告此技能的问题