Token导航 LogoToken导航

Agent Skill · 研究检索

supabase-expert(Supabase expert 搜索)

supabase-expert 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

supabase-expert 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,674 个 Skill 里排第 67,168。

总安装 250周安装 10GitHub Stars 1下载 81核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:supabase-expert(Supabase expert 搜索)
来源仓库:https://github.com/velcrafting/codex-skills
仓库路径:skills/supabase-expert
安装命令:
npx skills add https://github.com/velcrafting/codex-skills --skill supabase-expert
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/velcrafting/codex-skills --skill supabase-expert

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

supabase-expert 用于查找、检索和筛选相关信息,适合快速定位候选结果。适用于根据关键词、任务场景或来源线索进行信息聚合的场景。可辅助缩小搜索范围,提高信息获取效率和准确性。使用时需结合上下文判断结果相关性,避免依赖单一来源得出结论。安装前建议检查仓库维护状态和网络访问权限,防止技能失效。

来源仓库内路径:skills/supabase-expert

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/velcrafting/codex-skills --skill supabase-expe…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

supabase-expert 怎么安装?

在终端执行 npx skills add https://github.com/velcrafting/codex-skills --skill supabase-expert。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

supabase-expert 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

supabase-expert 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

supabase-expert 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

supabase-expert 用的人多吗?

公开数据是累计安装 250 次,近一周安装 10 次,下载 81 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

supabase-expert 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
supabase-expert

Supabase expert 搜索 · 本页

2501接触敏感数据MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Supabase Expert

Overview

Comprehensive guidance for working with Supabase including database operations, authentication, storage, edge functions, and Next.js integration. Enforces security patterns, performance optimizations, and modern best practices.

Critical Rules

API Keys (New System)

Supabase now offers two key types with improved security:

Key TypePrefixSafetyUse Case
Publishablesb_publishable_...Safe for clientBrowser, mobile, CLI
Secretsb_secret_...Backend onlyServers, Edge Functions
Legacy anonJWT-basedSafe for clientBeing deprecated
Legacy service_roleJWT-basedBackend onlyBeing deprecated

Key Rules:

  • Secret keys return HTTP 401 if used in browser
  • New keys support independent rotation without downtime
  • Migrate from legacy keys when possible

See references/api-keys.md for migration guide and security practices.

Authentication SSR Rules

NEVER USE (DEPRECATED):

  • Individual cookie methods: get(), set(), remove()
  • Package: @supabase/auth-helpers-nextjs

ALWAYS USE:

  • Package: @supabase/ssr
  • Cookie methods: getAll() and setAll() ONLY
  • Proxy (formerly Middleware) MUST call getUser() to refresh session
  • Proxy MUST return supabaseResponse object
Important: As of Next.js 16+, use proxy.ts instead of middleware.ts. See https://nextjs.org/docs/app/api-reference/file-conventions/proxy

See references/auth-ssr-patterns.md for complete patterns.

RLS Policy Rules

  • Always wrap functions in SELECT: (SELECT auth.uid()) not auth.uid()
  • SELECT: USING only (no WITH CHECK)
  • INSERT: WITH CHECK only (no USING)
  • UPDATE: Both USING and WITH CHECK
  • DELETE: USING only (no WITH CHECK)
  • Always specify TO authenticated or TO anon
  • Create indexes on ALL columns used in policies
  • NEVER use FOR ALL - create 4 separate policies

See references/rls-policy-patterns.md for performance-optimized templates.

Database Function Rules

  • DEFAULT: Use SECURITY INVOKER (safer than DEFINER)
  • ALWAYS: Set search_path = '' for security
  • USE: Fully qualified names (public.table_name)
  • SPECIFY: Correct volatility (IMMUTABLE/STABLE/VOLATILE)
  • AVOID: SECURITY DEFINER unless absolutely required

Edge Function Rules

  • USE: Deno.serve (not old serve import)
  • IMPORTS: Always use npm:/jsr:/node: prefix with version numbers
  • SHARED: Place shared code in _shared/ folder
  • FILES: Write only to /tmp directory
  • NEVER: Use bare specifiers or cross-function dependencies

See references/edge-function-templates.md for complete templates.

Storage Rules

  • Enable RLS on storage buckets
  • Use signed URLs for private content
  • Apply image transformations via URL parameters
  • Leverage CDN for public assets

See references/storage-patterns.md for setup and patterns.

Workflow Decision Tree

User mentions database/Supabase work?
├─> Creating new tables?
│   └─> Use: Table Creation Workflow
├─> Creating RLS policies?
│   └─> Use: RLS Policy Workflow (references/rls-policy-patterns.md)
├─> Creating database function?
│   └─> Use: Database Function Workflow (references/sql-templates.md)
├─> Setting up Auth?
│   └─> Use: Auth SSR Workflow (references/auth-ssr-patterns.md)
├─> Creating Edge Function?
│   └─> Use: Edge Function Workflow (references/edge-function-templates.md)
├─> Setting up Storage?
│   └─> Use: Storage Workflow (references/storage-patterns.md)
├─> Next.js integration?
│   └─> Use: Next.js Patterns (references/nextjs-caveats.md)
└─> API key questions?
    └─> Use: API Keys Guide (references/api-keys.md)

Table Creation Workflow

When to use: Creating new database tables.

  1. Design table structure:

- id (UUID PRIMARY KEY) - created_at, updated_at (TIMESTAMPTZ) - created_by (UUID reference to auth.users or profiles) - Use snake_case for all identifiers - Add comments on all tables

  1. Follow template: CREATE TABLE IF NOT EXISTS public.table_name (id UUID PRIMARY KEY DEFAULT gen_random_uuid(), name TEXT NOT NULL, status TEXT DEFAULT 'active', created_by UUID REFERENCES auth.users(id), created_at TIMESTAMPTZ DEFAULT NOW(), updated_at TIMESTAMPTZ DEFAULT NOW()); COMMENT ON TABLE public.table_name IS 'Description'; ALTER TABLE public.table_name ENABLE ROW LEVEL SECURITY; CREATE INDEX idx_table_name_status ON public.table_name(status);
  2. Enable RLS and create policies
  3. Create TypeScript types for type safety

See references/sql-templates.md for complete templates.

Auth SSR Quick Reference

Browser Client:

import { createBrowserClient } from '@supabase/ssr'

export function createClient() {
  return createBrowserClient(
    process.env.NEXT_PUBLIC_SUPABASE_URL!,
    process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY!
  )
}

Server Client:

import { createServerClient } from '@supabase/ssr'
import { cookies } from 'next/headers'

export async function createClient() {
  const cookieStore = await cookies()

  return createServerClient(
    process.env.NEXT_PUBLIC_SUPABASE_URL!,
    process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY!,
    {
      cookies: {
        getAll() { return cookieStore.getAll() },
        setAll(cookiesToSet) {
          try {
            cookiesToSet.forEach(({ name, value, options }) =>
              cookieStore.set(name, value, options)
            )
          } catch { /* Ignore in Server Components */ }
        },
      },
    }
  )
}

Proxy (Critical) - replaces middleware.ts:

// proxy.ts (at root or src/ directory)
import { createServerClient } from '@supabase/ssr'
import { NextResponse, type NextRequest } from 'next/server'

export async function proxy(request: NextRequest) {
  let supabaseResponse = NextResponse.next({ request })

  const supabase = createServerClient(
    process.env.NEXT_PUBLIC_SUPABASE_URL!,
    process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY!,
    {
      cookies: {
        getAll() { return request.cookies.getAll() },
        setAll(cookiesToSet) {
          cookiesToSet.forEach(({ name, value }) =>
            request.cookies.set(name, value)
          )
          supabaseResponse = NextResponse.next({ request })
          cookiesToSet.forEach(({ name, value, options }) =>
            supabaseResponse.cookies.set(name, value, options)
          )
        },
      },
    }
  )

  // CRITICAL: Must call getUser() to refresh session
  await supabase.auth.getUser()

  return supabaseResponse  // MUST return supabaseResponse
}

RLS Policy Quick Reference

OperationUSINGWITH CHECK
SELECTRequiredIgnored
INSERTIgnoredRequired
UPDATERequiredRequired
DELETERequiredIgnored

Example Policy:

CREATE POLICY "Users view own records"
ON public.table_name
FOR SELECT
TO authenticated
USING ((SELECT auth.uid()) = user_id);

Storage Quick Reference

Create bucket:

INSERT INTO storage.buckets (id, name, public)
VALUES ('avatars', 'avatars', false);

Storage policy:

CREATE POLICY "Users upload own avatar"
ON storage.objects
FOR INSERT
TO authenticated
WITH CHECK (
  bucket_id = 'avatars' AND
  (SELECT auth.uid())::text = (storage.foldername(name))[1]
);

Image transformation URL:

/storage/v1/object/public/bucket/image.jpg?width=200&height=200&resize=cover

Edge Function Quick Reference

import { createClient } from 'npm:@supabase/supabase-js@2'

Deno.serve(async (req: Request) => {
  if (req.method === 'OPTIONS') {
    return new Response('ok', {
      headers: {
        'Access-Control-Allow-Origin': '*',
        'Access-Control-Allow-Headers': 'authorization, content-type',
      }
    })
  }

  // User-scoped client (respects RLS)
  const supabase = createClient(
    Deno.env.get('SUPABASE_URL')!,
    Deno.env.get('SUPABASE_PUBLISHABLE_KEY')!,
    { global: { headers: { Authorization: req.headers.get('Authorization')! } } }
  )

  // Admin client (bypasses RLS) - use SUPABASE_SECRET_KEY for admin operations
  // const adminClient = createClient(
  //   Deno.env.get('SUPABASE_URL')!,
  //   Deno.env.get('SUPABASE_SECRET_KEY')!
  // )

  // Your logic here

  return new Response(JSON.stringify({ success: true }), {
    headers: { 'Content-Type': 'application/json' }
  })
})

PostgreSQL Style Guide

  • lowercase for SQL keywords
  • snake_case for tables and columns
  • Plural table names (users, orders)
  • Singular column names (user_id, order_date)
  • Schema prefix in queries (public.users)
  • Comments on all tables
  • ISO 8601 dates

Pre-Flight Checklist

Before ANY Supabase work:

  • Using publishable key (sb_publishable_...) for client code
  • Using secret key (sb_secret_...) only in secure backend
  • Following table naming conventions
  • Enabled RLS on tables
  • Created indexes for policy columns
  • Wrapped auth functions in SELECT
  • Using @supabase/ssr with getAll/setAll
  • Edge Functions using Deno.serve
  • Imports have version numbers

Resources

Reference Files (Load as needed)

  • references/api-keys.md - New API key system, migration guide
  • references/storage-patterns.md - Storage setup, RLS, transformations
  • references/nextjs-caveats.md - Next.js specific patterns and gotchas
  • references/sql-templates.md - Complete SQL templates
  • references/rls-policy-patterns.md - Performance-optimized RLS patterns
  • references/auth-ssr-patterns.md - Complete Auth SSR implementation
  • references/edge-function-templates.md - Edge function templates

Common Mistakes to Avoid

  1. Using auth.uid() without wrapping in SELECT
  2. Forgetting to create indexes on policy columns
  3. Using SECURITY DEFINER by default
  4. Mixing individual cookie methods (get/set/remove)
  5. Using bare import specifiers in Edge Functions
  6. Using secret keys in browser code
  7. Not calling getUser() in proxy
  8. Not returning supabaseResponse from proxy
  9. Using middleware.ts instead of proxy.ts (deprecated in Next.js 16+)

Auth Providers Supported

Supabase Auth supports 20+ OAuth providers:

  • Google, GitHub, GitLab, Bitbucket
  • Apple, Microsoft, Facebook, Twitter
  • Discord, Slack, Spotify, Twitch
  • LinkedIn, Notion, Figma, Zoom
  • Phone auth (Twilio, MessageBird, Vonage)
  • Anonymous sign-ins
  • Enterprise SSO (SAML)

See references/auth-ssr-patterns.md for provider setup.


Skill Version: 2.0.0 Last Updated: 2025-01-01 Documentation: https://supabase.com/docs

平台分布

Claude Code

31.03%
按下载量换算25

windsurf

23.54%
按下载量换算19

trae

16.58%
按下载量换算13

OpenCode

12.55%
按下载量换算10

Codex

7.64%
按下载量换算6

Antigravity

3.6%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills