Skip to content
Back to skills

Supabase Official Mastery

ASecurity

This mastery hub synchronizes the **Official Supabase agentic skills** currently active in the `.ai/skills` system. It provides the definitive technical architecture and standards for Backend-as-a-Service (BaaS) and high-performance Postgres management.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
developmenttypescriptsqlreactnextjsnodedatabasefrontendbackendsecurityperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add iDorgham/Workspace-Factory --skill supabase-official-mastery --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Supabase Official Mastery?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Supabase Official Mastery
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/idorgham-supabase-official-mastery/badge)](https://www.skillsdirectory.com/skills/idorgham-supabase-official-mastery)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
type: Skill
subagents: [core-validator, integrity-bot]
agents: [master-guide, swarm-router]
dependencies: [core-orchestration, global-sync]
version: 1.0.0
---



# Supabase Official Integration Mastery

This mastery hub synchronizes the **Official Supabase agentic skills** currently active in the `.ai/skills` system. It provides the definitive technical architecture and standards for Backend-as-a-Service (BaaS) and high-performance Postgres management.

## πŸ› οΈ Technical Architecture

| Feature | Sovereign Implementation |
|---------|-----------|
| **PostgreSQL** | Primary database (direct + pooled URLs). |
| **Auth** | User management via `@supabase/ssr` (Next.js App Router). |
| **Storage** | Object storage for user uploads and media. |
| **Realtime** | WebSocket-based DB change subscriptions. |
| **Row Level Security** | Native multi-tenant isolation. |

### Monorepo Integration
```typescript
// packages/shared/src/lib/supabase/server.ts
import { createServerClient } from '@supabase/ssr'
import { cookies } from 'next/headers'

export function createSupabaseServerClient() {
  const cookieStore = cookies()
  return createServerClient(
    process.env.NEXT_PUBLIC_SUPABASE_URL!,
    process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
    {
      cookies: {
        getAll() { return cookieStore.getAll() },
        setAll(cookiesToSet) {
          cookiesToSet.forEach(({ name, value, options }) =>
            cookieStore.set(name, value, options)
          )
        },
      },
    }
  )
}
```

### RLS (Row Level Security) Standard
```sql
-- Enable RLS and define owner-only policy
ALTER TABLE bookings ENABLE ROW LEVEL SECURITY;

CREATE POLICY "users_own_bookings" ON bookings
  FOR ALL USING (auth.uid() = user_id);
```

## πŸ› οΈ Synced System Capabilities
The following skills are linked directly to the executable `.ai/skills` directory:

### Database & Platform
- **supabase**: General integration protocols for the Supabase platform ecosystem.
- **supabase-postgres-best-practices**: Advanced standards for indexing, RLS (Row Level Security), and SQL performance within Supabase.

## πŸ”— Integrated Sub-Skills (Complete List)
*The system maintains 1:1 parity with the following `.ai/skills/official-supabase-*` capability nodes:*

- `official-supabase-supabase`
- `official-supabase-supabase-postgres-best-practices`

## πŸ›‘οΈ Common Pitfalls
- **[SM-001]** Directly using `supabase-js` in Server Components instead of `@supabase/ssr` β€” causes cookie sync issues.
- **[SM-002]** Exposing `SUPABASE_SERVICE_ROLE_KEY` in the frontend β€” absolute security bypass.
- **[SM-003]** Forgetting to enable RLS β€” tables remain public until RLS is explicitly enabled.
- **[SM-004]** Not paginating `.select('*')` queries β€” Supabase does not apply automatic limits.
- **[SM-005]** Leaking Realtime channel subscriptions β€” memory leaks in client-side React.
- **[SM-006]** Blind `.upsert()` usage β€” can silently overwrite data without active unique constraints.

## βœ… Success Criteria
- [ ] `database.types.ts` generated from schema and committed.
- [ ] RLS enabled on every user-scoped table.
- [ ] `SUPABASE_SERVICE_ROLE_KEY` restricted to server-side admin logic.
- [ ] `getUser()` used in Server Components for secure identity verification.
- [ ] All Supabase responses validated via Zod schemas.

## πŸ“₯ Execution Protocol
To invoke any of these synced skills within a project, use the corresponding slash command mapped in the system router.

---
*Generated by Sovereign Factory Sync Ops*

Files in this skill

  • SKILL.md3.4 KB
  • core.py2.5 KB
  • manifest.yaml198 B
  • tests/test_core.py1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development β†’

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.