Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

moai-platform-supabasemoai platform Supabase 搜索

Agent Skill

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

总安装

649

周安装

26

GitHub Stars

公开资料未说明

下载量

210
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add modu-ai/moai-rank --skill "moai-platform-supabase"

简介

用于在 Codex、Claude、Cursor 和 Gemini CLI 中查找、检索和筛选相关信息。

  • 适合根据关键词或任务场景快速定位候选结果,支持来源仓库和安装命令验证。
  • 通过 npx skills add modu-ai/moai-rank --skill "moai-platform-supabase" 安装。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

moai-platform-supabase: Supabase Platform Specialist

Quick Reference

Supabase Full-Stack Platform: PostgreSQL 16 with pgvector for AI/vector search, Row-Level Security for multi-tenant apps, real-time subscriptions, Edge Functions with Deno runtime, and integrated Storage with transformations.

Core Capabilities

PostgreSQL 16 provides latest PostgreSQL with full SQL support, JSONB, and advanced features.

pgvector Extension enables AI embeddings storage with HNSW and IVFFlat indexes for similarity search.

Row-Level Security provides automatic multi-tenant data isolation at database level.

Real-time Subscriptions enable live data sync via Postgres Changes and Presence.

Edge Functions provide serverless Deno functions at the edge.

Storage provides file storage with automatic image transformations.

Auth provides built-in authentication with JWT integration.

When to Use Supabase

Use Supabase for multi-tenant SaaS applications requiring data isolation, AI/ML applications needing vector embeddings and similarity search, real-time collaborative features including presence and live updates, full-stack applications needing auth, database, and storage, and projects requiring PostgreSQL-specific features.

Context7 Documentation Access

For latest Supabase API documentation, use the Context7 MCP tools:

Step 1 - Resolve library ID: Use mcp__context7__resolve-library-id with query "supabase" to get the Context7-compatible library ID.

Step 2 - Fetch documentation: Use mcp__context7__get-library-docs with the resolved library ID, specifying topic and token allocation.

Example topics include "postgresql pgvector", "row-level-security policies", "realtime subscriptions presence", "edge-functions deno", "storage transformations", and "auth jwt".


Module Index

This skill uses progressive disclosure with specialized modules for detailed implementation patterns.

Core Modules

postgresql-pgvector covers PostgreSQL 16 with pgvector extension for AI embeddings and semantic search. Topics include vector storage with 1536-dimension OpenAI embeddings, HNSW and IVFFlat index strategies, semantic search functions, and hybrid search combining vector and full-text.

row-level-security covers RLS policies for multi-tenant data isolation. Topics include basic tenant isolation patterns, hierarchical organization access, role-based modification policies, and service role bypass for server operations.

realtime-presence covers real-time subscriptions and presence tracking. Topics include Postgres Changes subscription patterns, filtered change listeners, presence state management, and collaborative cursor and typing indicators.

edge-functions covers serverless Deno functions at the edge. Topics include basic Edge Function with authentication, CORS header configuration, JWT token verification, and rate limiting implementation.

storage-cdn covers file storage with image transformations. Topics include file upload patterns, image transformation URLs, thumbnail generation, and cache control configuration.

auth-integration covers authentication patterns and JWT handling. Topics include server-side client creation, cookie-based session management, auth state synchronization, and protected route patterns.

typescript-patterns covers TypeScript client patterns and service layers. Topics include server-side client for Next.js App Router, service layer abstraction pattern, subscription management, and type-safe database operations.


Quick Start Patterns

Database Setup

To enable pgvector extension and create embeddings table, execute SQL to create extension vector if not exists. Create a documents table with id as UUID primary key defaulting to gen_random_uuid(), content as TEXT not null, embedding as vector with 1536 dimensions, metadata as JSONB defaulting to empty object, and created_at as TIMESTAMPTZ defaulting to NOW(). Create an index on documents embedding using hnsw with vector_cosine_ops operator class.

Basic RLS Policy

To create a tenant isolation policy, alter the projects table to enable row level security. Create a policy named "tenant_isolation" on projects for all operations using a condition where tenant_id equals the tenant_id extracted from the auth.jwt() function cast to UUID.

Real-time Subscription

For real-time subscription, create a channel using supabase.channel with a channel name. Chain the on method for postgres_changes with event set to asterisk for all events, schema set to public, and table set to messages. Provide a callback that logs the payload. Chain subscribe to activate the subscription.

Edge Function Template

For Edge Function template, import serve from deno.land/std/http/server.ts and createClient from esm.sh/@supabase/supabase-js. Call serve with an async handler that creates a Supabase client using environment variables SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY. Process the request and return a new Response with JSON stringified success object.


Best Practices

Performance: Use HNSW indexes for vectors and Supavisor for connection pooling in serverless environments.

Security: Always enable RLS, verify JWT tokens, and use service_role only in Edge Functions.

Migration: Use Supabase CLI with supabase migration new and supabase db push commands.


Works Well With

  • moai-platform-neon for alternative PostgreSQL for specific use cases
  • moai-lang-typescript for TypeScript patterns for Supabase client
  • moai-domain-backend for backend architecture integration
  • moai-foundation-quality for security and RLS best practices
  • moai-workflow-testing for test-driven development with Supabase

Module References

For detailed implementation patterns, see the modules directory:

  • modules/postgresql-pgvector.md covers complete vector search implementation
  • modules/row-level-security.md covers multi-tenant RLS patterns
  • modules/realtime-presence.md covers real-time collaboration features
  • modules/edge-functions.md covers serverless function patterns
  • modules/storage-cdn.md covers file storage and transformations
  • modules/auth-integration.md covers authentication patterns
  • modules/typescript-patterns.md covers TypeScript client architecture

For API reference summary, see reference.md. For full-stack templates, see examples.md.


Status: Production Ready Generated with: MoAI-ADK Skill Factory v2.0 Last Updated: 2026-01-11 Version: 2.1.0 (Modularized) Coverage: PostgreSQL 16, pgvector, RLS, Real-time, Edge Functions, Storage

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.31%
按下载量换算64

OpenCode

24.4%
按下载量换算51

trae

16.65%
按下载量换算35

Antigravity

11.42%
按下载量换算24

windsurf

7.29%
按下载量换算15

Codex

3.87%
按下载量换算8

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills