supabase
Skill2 starsChanged 4 months agoMITView on GitHub
Use to add a Postgres database, auth, storage, or realtime to an app with the Supabase client — and to lock it down with Row Level Security.
- Reads credentials
- Installs packages
32 other projects use a version of this.
Adopted by
Most recently taken up by
- r2hu1/openbotstheir own version, first seen Oct 4, 2026
- nafiskabbo/skillstheir own version, first seen Sep 23, 2026
- NiazMorshed2007/jcrtheir own version, first seen Sep 20, 2026
- PracticalSwan/agent-skillstheir own version, first seen Sep 14, 2026
- irwebtools/Product-Skillstheir own version, first seen Sep 9, 2026
- PentesterFlow/agenttheir own version, first seen Aug 31, 2026
Used with
Projects with it also use firebase, tailwind and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
xfstudioSkillfirebase
Firebase gives you a complete backend in minutes - auth, database, storage, functions, hosting. But the ease of setup hides real complexity. Security rules are your last line of defense, and they're often wrong. Firestore queries are limited, and you learn this after you've designed your data model. This skill covers Firebase Authentication, Firestore, Realtime Database, Cloud Functions, Cloud Storage, and Firebase Hosting. Key insight: Firebase is optimized for read-heavy, denormalized data. I
Also in 3 projects that use this
nth5693Skilltailwind
Also in 4 projects that use this
NVIDIASkilltesting
Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.
Also in 3 projects that use this
Other versions32 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 32
- openai/plugins★ 7.3ksame name
- supabase/agent-skills★ 2.7ksame name
- PentesterFlow/agent★ 1.4ksame name
- alinaqi/maggy★ 707same name
- nth5693/gemini-kit★ 373same name
- Mindrally/skills★ 266same name
- magnus919/agent-skills★ 109same name
- Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations★ 73same name
- Kastalien-Research/thoughtbox★ 66same name
- salavender/antigravity-compound-engineering-plugin★ 48same name
22 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- anthropicSkill
- clerkSkill
- cloudflare-workersSkill
- dockerSkill
- fly-ioSkill
- github-actionsSkill
- neonSkill
- netlifySkill
- nextjsSkill
- openaiSkill
- prismaSkill
- railwaySkill
- renderSkill
- resendSkill
- sentrySkill
- stripeSkill
- tailwindcssSkill
- terraformSkill
- upstash-redisSkill
- vercelSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 29 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Use when: you need a database plus auth/storage/realtime with minimal backend code.
- Distinctive: line 22
Use when: you want a real Postgres you can also hit with SQL, Prisma, or Drizzle.
- Distinctive: line 23
Don't use for: pure edge KV/caching (use Redis) or when you need a self-managed DB.
“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Supabase — Skillship
Open-source Firebase alternative: hosted Postgres + Auth + Storage + Realtime, queried through auto-generated REST/JS APIs and secured with Postgres Row Level Security (RLS).
🧭 When to use this skill
- Use when: you need a database plus auth/storage/realtime with minimal backend code.
- Use when: you want a real Postgres you can also hit with SQL, Prisma, or Drizzle.
- Don't use for: pure edge KV/caching (use Redis) or when you need a self-managed DB.
⚡ Quickstart
1. Install
npm install @supabase/supabase-js
# For Next.js / SSR cookie-based auth also install:
npm install @supabase/ssr2. Configure env (from Project → Connect)
# .env.local — the publishable/anon key is safe for the browser; the service_role key is NOT.
NEXT_PUBLIC_SUPABASE_URL=https://<project-ref>.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=<publishable-anon-key>
SUPABASE_SERVICE_ROLE_KEY=<service-role-key> # server-only, bypasses RLS — never expose3. Minimal working example
import { createClient } from "@supabase/supabase-js";
const supabase = createClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
);
const { data, error } = await supabase.from("instruments").select();🧩 Common recipes
Recipe: CRUD queries
// SELECT with filter (always filter, even though RLS also applies)
const { data } = await supabase.from("todos").select("*").eq("user_id", userId);
// INSERT
const { data, error } = await supabase.from("todos").insert({ title: "Ship it" }).select();
// UPDATE
await supabase.from("todos").update({ done: true }).eq("id", 42);
// DELETE
await supabase.from("todos").delete().eq("id", 42);Recipe: Auth (email + password)
await supabase.auth.signUp({ email, password });
await supabase.auth.signInWithPassword({ email, password });
const { data: { user } } = await supabase.auth.getUser();
await supabase.auth.signOut();
// OAuth: await supabase.auth.signInWithOAuth({ provider: "github" });Recipe: Server client for Next.js (SSR, cookie-based)
// lib/supabase/server.ts
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_ANON_KEY!,
{
cookies: {
getAll: () => cookieStore.getAll(),
setAll: (list) => list.forEach(({ name, value, options }) =>
cookieStore.set(name, value, options)),
},
}
);
}Recipe: Storage upload
await supabase.storage.from("avatars").upload(`${userId}/pic.png`, file, { upsert: true });
const { data } = supabase.storage.from("avatars").getPublicUrl(`${userId}/pic.png`);Recipe: Row Level Security (the part people skip — don't)
-- Enable RLS on EVERY table in the public schema
alter table todos enable row level security;
-- Users can only read their own rows
create policy "read own todos"
on todos for select
to authenticated
using ( (select auth.uid()) = user_id );
-- Users can only insert rows they own
create policy "insert own todos"
on todos for insert
to authenticated
with check ( (select auth.uid()) = user_id );Wrap
auth.uid()in(select ...)so Postgres caches it per-statement (huge RLS perf win). UPDATE needs bothusingandwith check, and requires a matching SELECT policy to work.
🚀 Ship to production
- RLS enabled on every table in exposed schemas (
public). No RLS = public data. service_rolekey lives only in server env; never shipped to the browser/bundle.- Policies use
to authenticated/to anonso they short-circuit for the wrong role. - Indexes added on columns used in policies (e.g.
user_id). - Auth redirect URLs / site URL configured for your production domain.
- Don't trust
user_metadatafor authorization — it's user-editable; useapp_metadata.
🔐 Security & secrets
- anon/publishable key: safe in the browser only because RLS gates access. Without policies, an enabled-RLS table returns nothing and a no-RLS table is fully exposed.
- service_role key: bypasses RLS. Server-side admin tasks only. Treat like a root password.
- JWTs aren't always fresh — revoking a role in
app_metadatawon't apply until the token refreshes.
🐛 Common errors & fixes
| Symptom | Likely cause | Fix |
Query returns [] for logged-in user | RLS enabled but no SELECT policy, or auth.uid() is null | Add a policy; ensure the request carries the user's token |
new row violates row-level security policy | INSERT with check fails | Make inserted user_id equal auth.uid() |
| UPDATE silently affects 0 rows | Missing SELECT policy alongside UPDATE | Add a SELECT policy for the same rows |
| Data publicly readable | RLS not enabled on the table | alter table X enable row level security; |
📚 Sources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

