moai-platform-supabase

Enable vector search and multi-tenant isolation for Supabase applications.

1.2k|214|Updated Sep 16, 2025
One-click install
npx skills add https://github.com/modu-ai/moai-adk --skill moai-platform-supabase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-platform-supabase
Source: https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-platform-supabase
Command: npx skills add https://github.com/modu-ai/moai-adk --skill moai-platform-supabase

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Supabase-based platform for multi-tenant apps, real-time syncing, and vector search with pgvector.

Core Features & Use Cases

  • PostgreSQL 16 + pgvector for embeddings
  • RLS for multi-tenant data isolation
  • Real-time subscriptions and presence
  • Edge Functions and storage integration

Quick Start

Set up a Supabase-backed app with auth, database, and storage; enable RLS and real-time features.

Frequently Asked Questions about moai-platform-supabase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up vector search with PostgreSQL and pgvector in Supabase?

Vector search with pgvector in Supabase enables semantic search by storing embeddings and querying similarity using HNSW or IVFFlat indexes. Enable the pgvector extension, create a vector column, build an index, and query using distance operators to find semantically related results across your data.

Can I use Row-Level Security policies to isolate data in a multi-tenant Supabase application?

Row-Level Security (RLS) policies in Supabase enforce multi-tenant data isolation by restricting database access at the row level based on authenticated user context. Define policies that filter queries to return only rows belonging to a user's tenant, preventing cross-tenant data leakage.

What's the best way to implement real-time updates in a Supabase application?

Supabase real-time subscriptions listen to database changes and push updates to connected clients instantly. Subscribe to table changes, presence events, or specific columns; your application receives notifications when data is inserted, updated, or deleted, enabling live collaboration without polling.

How do I use Edge Functions with Supabase storage transformations?

Edge Functions in Supabase run server-side logic at the edge to transform files, validate uploads, or trigger workflows. Pair them with storage hooks to intercept uploads, process images or documents, and generate embeddings or metadata before persisting transformed content to storage.

Does Supabase support embedding storage and similarity search for AI applications?

Yes. Supabase with pgvector supports storing AI embeddings, building efficient indexes for fast similarity search, and querying semantically related content. Store embeddings from language models, use vector indexes for retrieval-augmented generation, and power semantic search features in AI-driven apps.