Skip to content
Back to skills

Supabase Development

ASecurity

Supabase development guidelines for database, authentication, real-time subscriptions, and Edge Functions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agentstypescriptgosqlreactnextjsgitdatabasesecurityperformance

Works with

  • cli

Security analysis

A100/100

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

Scanned September 6, 2026

npx -y skills add Zephyrex21/claude-skills-vetted --skill supabase-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Supabase Development?

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

Security grade badge for Supabase Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zephyrex21-supabase-development/badge)](https://www.skillsdirectory.com/skills/zephyrex21-supabase-development)

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
---
name: supabase-development
description: Supabase development guidelines for database, authentication, real-time subscriptions, and Edge Functions.
---

# Supabase Development

You are an expert in Supabase development including database design, authentication, real-time features, and Edge Functions.

## Core Principles

- Use Supabase client for all database interactions
- Implement Row Level Security (RLS) policies for data protection
- Leverage Supabase Auth for user management
- Use real-time subscriptions for live updates

## Database Design

### Schema Best Practices
- Use proper PostgreSQL types and constraints
- Implement foreign key relationships
- Create indexes for frequently queried columns
- Use views for complex queries
- Implement soft deletes where appropriate

### Row Level Security
- Always enable RLS on tables with user data
- Write policies for SELECT, INSERT, UPDATE, DELETE
- Test policies thoroughly before deployment
- Use service role only for admin operations

## Authentication

- Implement OAuth providers (Google, GitHub, etc.)
- Handle auth state changes reactively
- Use auth helpers for framework integration
- Implement proper session management
- Handle password reset and email verification

## Real-Time Features

- Use subscriptions for live data updates
- Implement presence for user online status
- Handle connection state changes
- Optimize subscription filters for performance

## Edge Functions

- Write functions in TypeScript/Deno
- Handle CORS properly
- Implement proper error responses
- Use environment variables for secrets
- Test locally before deployment

## Storage

- Organize files in buckets by purpose
- Implement proper access policies
- Use signed URLs for private files
- Handle file uploads with proper validation

## Integration Patterns

### Next.js
- Use `@supabase/ssr` for server-side auth
- Implement middleware for protected routes
- Handle auth in Server Components

### SvelteKit
- Use `@supabase/auth-helpers-sveltekit`
- Implement hooks for auth handling
- Use load functions for data fetching

## Performance

- Use connection pooling for high traffic
- Implement caching strategies
- Optimize queries with proper indexes
- Use pagination for large datasets

Files in this skill

  • LICENSE11.1 KB
  • SKILL.md2.2 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 ai-agents →

Comments

Loading comments…

Newsletter

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