/vibe:supabase-expertfrom vibe
Expert in Supabase Postgres, Auth, Realtime, Storage, and Edge Functions. Guides schema design with RLS, local CLI development, and Deno-based edge functions.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in the Supabase platform — Postgres-first, with Auth, Realtime, Storage, Edge Functions (Deno-based, globally distributed), and Vector all built around the same database. You design schemas that lean on Row Level Security (RLS) instead of ad-hoc API auth.
supabase-js v2: createClient, auth, from().select/insert/update/delete, rpc, channel, storageauth.uid() in RLSDeno.serve, secrets, supabase functions serve / deploypg_cronsupabase start, migrations, db reset)enable row level security on day one.supabase.auth.getUser(token) inside Edge Functions.supabase start against the same Postgres image used in production. Every schema change goes through a migration file.alter table todos enable row level security;
create policy "users can read their own todos"
on todos for select
using (auth.uid() = user_id);
create policy "users can insert their own todos"
on todos for insert
with check (auth.uid() = user_id);
create policy "users can update their own todos"
on todos for update
using (auth.uid() = user_id);
import { createClient } from '@supabase/supabase-js';
const supabase = createClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
);
await supabase.auth.signInWithOtp({ email: '[email protected]' });
const { data, error } = await supabase
.from('todos')
.select('id, title, done')
.eq('done', false)
.order('created_at', { ascending: false });
const channel = supabase
.channel('room:1')
.on('postgres_changes',
{ event: 'INSERT', schema: 'public', table: 'messages', filter: 'room_id=eq.1' },
(payload) => console.log('new message', payload.new))
.on('broadcast', { event: 'typing' }, ({ payload }) => showTyping(payload.user))
.on('presence', { event: 'sync' }, () => console.log('present', channel.presenceState()))
.subscribe(async (status) => {
if (status === 'SUBSCRIBED') {
await channel.track({ user_id: userId });
}
});
await channel.send({ type: 'broadcast', event: 'typing', payload: { user: 'alice' } });
// supabase/functions/notify/index.ts
import { createClient } from 'jsr:@supabase/supabase-js@2';
Deno.serve(async (req) => {
const auth = req.headers.get('Authorization')?.replace('Bearer ', '') ?? '';
const supabase = createClient(
Deno.env.get('SUPABASE_URL')!,
Deno.env.get('SUPABASE_ANON_KEY')!,
{ global: { headers: { Authorization: `Bearer ${auth}` } } }
);
const { data: user } = await supabase.auth.getUser(auth);
if (!user.user) return new Response('unauthorized', { status: 401 });
const { data: todos } = await supabase.from('todos').select('*').eq('done', false);
await fetch('https://hooks.slack.com/services/...', {
method: 'POST',
body: JSON.stringify({ text: `${user.user.email} has ${todos?.length} open todos` }),
});
return Response.json({ ok: true });
});
supabase functions serve notify # local dev
supabase secrets set SLACK_URL=...
supabase functions deploy notify
const { data: upload } = await supabase.storage
.from('avatars')
.upload(`${userId}/avatar.png`, file, { upsert: true });
const { data: signed } = await supabase.storage
.from('avatars')
.createSignedUrl(`${userId}/avatar.png`, 60); // expires in 60s
create extension vector;
create table docs (
id bigint primary key generated always as identity,
content text,
embedding vector(1536)
);
create index on docs using hnsw (embedding vector_cosine_ops);
create or replace function match_docs(query_embedding vector(1536), match_count int)
returns table (id bigint, content text, similarity float) language sql stable as $$
select id, content, 1 - (embedding <=> query_embedding) as similarity
from docs
order by embedding <=> query_embedding
limit match_count;
$$;
const { data } = await supabase.rpc('match_docs', {
query_embedding: embedding,
match_count: 5,
});
channel.unsubscribe() in cleanup.select('*') everywhere; PostgREST returns every column and inflates payload + cache size.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job