Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

supabase-developer

БесплатноЗапускает вложенные скриптыНе проверен

Expert Supabase development with PostgreSQL, authentication, Row Level Security, Storage, Edge Functions, and Realtime subscriptions

greedychipmunkот greedychipmunk★ 24 звезды на GitHub

Об этом скилле

Supabase Developer Skill

Overview

This skill provides comprehensive expertise in building production-ready applications with Supabase, the open-source Firebase alternative. It covers database design, authentication, Row Level Security (RLS), file storage, Edge Functions, and real-time subscriptions. Edge Functions now run on Deno 2.1 by default (full rollout August 2025), with local preview available since March 2025.

Core Capabilities

Database & PostgreSQL

  • Schema Design: Normalized tables with proper relationships and indexes
  • Migrations: Version-controlled database changes
  • Queries: Complex queries with joins, CTEs, and aggregations
  • Functions: PostgreSQL stored procedures and triggers
  • Extensions: PostGIS, pg_vector, pgcrypto, and more

Authentication

  • Email/Password: Traditional authentication flow
  • Magic Links: Passwordless email authentication
  • OAuth Providers: Google, GitHub, Discord, Twitter, and more
  • Phone Auth: SMS-based authentication
  • Multi-Factor Authentication: TOTP and SMS verification
  • Session Management: JWT tokens and refresh handling

Row Level Security (RLS)

  • Policy Design: Secure data access patterns
  • User-based Access: Policies tied to authenticated users
  • Role-based Access: Custom roles and permissions
  • Organization-based: Multi-tenant security patterns
  • Performance: Optimized RLS with proper indexing

Storage

  • File Uploads: Direct and resumable uploads
  • Access Control: Bucket policies and RLS integration
  • Transformations: Image resizing and optimization
  • CDN: Global content delivery
  • Signed URLs: Temporary access tokens

Edge Functions

  • Deno 2.1 Runtime: TypeScript/JavaScript edge computing with seamless npm imports, native TypeScript support, Web API compatibility, and better performance
  • Dashboard Editor: In-dashboard Edge Functions editor for quick updates and prototyping
  • AI Assistant: Built-in AI assistant for generating function code
  • API Routes: Custom backend logic
  • Webhooks: Event-driven integrations
  • Scheduled Tasks: Cron-based functions (pg_cron)
  • Third-party APIs: External service integrations
  • No-Docker Deploy: Deploy with supabase functions deploy --no-docker when Docker isn't available

Realtime

  • Database Changes: Listen to INSERT, UPDATE, DELETE
  • Broadcast: Publish messages to channels
  • Presence: Track online users and state
  • Postgres Changes: Row-level change subscriptions

Implementation Patterns

Project Structure

├── supabase/
│   ├── config.toml           # Project configuration
│   ├── migrations/           # Database migrations
│   │   ├── 20240101000000_initial_schema.sql
│   │   └── 20240102000000_add_profiles.sql
│   ├── functions/            # Edge Functions
│   │   ├── hello-world/
│   │   │   └── index.ts
│   │   └── _shared/          # Shared utilities
│   │       └── cors.ts
│   └── seed.sql              # Development seed data
├── src/
│   ├── lib/
│   │   └── supabase.ts       # Client initialization
│   ├── types/
│   │   └── database.types.ts # Generated types
│   └── ...
└── package.json

Database Schema Example

-- Users profile extension
create table public.profiles (
  id uuid references auth.users on delete cascade primary key,
  username text unique not null,
  full_name text,
  avatar_url text,
  created_at timestamptz default now() not null,
  updated_at timestamptz default now() not null
);

-- Enable RLS
alter table public.profiles enable row level security;

-- RLS Policies
create policy "Public profiles are viewable by everyone"
  on public.profiles for select
  using (true);

create policy "Users can update their own profile"
  on public.profiles for update
  using (auth.uid() = id);

-- Trigger for updated_at
create trigger handle_updated_at
  before update on public.profiles
  for each row execute function moddatetime(updated_at);

Client Initialization

// src/lib/supabase.ts
import { createClient } from '@supabase/supabase-js'
import type { Database } from '@/types/database.types'

const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL!
const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!

export const supabase = createClient<Database>(
  supabaseUrl,
  supabaseAnonKey
)

Authentication Patterns

// Sign up with email
const { data, error } = await supabase.auth.signUp({
  email: '[email protected]',
  password: 'secure-password',
  options: {
    data: {
      full_name: 'John Doe'
    }
  }
})

// Sign in with OAuth
const { data, error } = await supabase.auth.signInWithOAuth({
  provider: 'google',
  options: {
    redirectTo: `${window.location.origin}/auth/callback`
  }
})

// Get current user
const { data: { user } } = await supabase.auth.getUser()

// Listen to auth changes
supabase.auth.onAuthStateChange((event, session) => {
  if (event
Полный SKILL.md на GitHub

Установить supabase-developer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

resources/authentication.mdresources/cli-reference.mdresources/client-libraries.mdresources/database-patterns.mdresources/edge-functions.mdresources/local-development.mdresources/performance-optimization.mdresources/production-deployment.mdresources/realtime.mdresources/row-level-security.mdresources/storage.mdresources/troubleshooting.mdscripts/README.mdscripts/backup-database.shscripts/create-function.shscripts/create-migration.shscripts/deploy-function.shscripts/generate-types.shscripts/link-project.shscripts/local-dev.shscripts/run-migrations.shscripts/run-tests.shscripts/seed-database.shscripts/serve-functions.shscripts/setup-project.shscripts/setup-testing.shscripts/test-rls.shtemplates/README.mdtemplates/auth-helpers.tstemplates/edge-function-complete.tstemplates/rls-policies.sqltemplates/schema-base.sqltemplates/storage-helpers.tstemplates/supabase-client.ts

FAQ

Что делает скилл supabase-developer?

Expert Supabase development with PostgreSQL, authentication, Row Level Security, Storage, Edge Functions, and Realtime subscriptions

Как установить скилл supabase-developer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл supabase-developer запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить supabase-developer с