Skip to main content
skill CX Codex

supabase-development — Claude Code skill: Supabase rules for your

Gives the agent a working set of Supabase rules: schema design, RLS policies, auth, realtime subscriptions and Edge Functions.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Mindrally/skills --skill supabase-development -a claude-code
Open on GitHub

What supabase-development does

This skill turns the assistant into a careful Supabase developer. It keeps in mind that the database is reached through the Supabase client, that Row Level Security goes on every table holding user data, and that the service role stays reserved for admin work. Policies are expected for SELECT, INSERT, UPDATE and DELETE, and they should be tested before deployment.

The rules cover four areas. Schema: PostgreSQL types and constraints, foreign keys, indexes on frequently queried columns, views for complex queries, soft deletes. Auth: OAuth providers, reactive handling of auth state changes, session management, password reset and email verification. Realtime: subscriptions for live updates, presence for online status, tuned subscription filters. Edge Functions are written in TypeScript and Deno, with CORS, error responses and secrets kept in environment variables.

Storage and framework integration get their own sections. For Next.js the skill points at @supabase/ssr and middleware for protected routes; for SvelteKit, at @supabase/auth-helpers-sveltekit and hooks. Performance advice comes down to connection pooling, caching, indexes and pagination. One thing to know up front: the skill assumes your project already runs on Supabase and won't walk you through standing the service up.

What it helps with

  • design a schema with foreign keys and indexes
  • write RLS policies for reads and writes
  • wire up OAuth and handle auth state changes
  • subscribe to table changes over realtime
  • move logic into an Edge Function with CORS and secrets

Example prompts for the agent

  • enable RLS on the profiles table and write SELECT and UPDATE policies
  • add a realtime subscription to the messages table in the chat component
  • set up Google auth in Next.js with @supabase/ssr

How to install supabase-development

1Skills CLI (Vercel)

npx skills add Mindrally/skills --skill supabase-development -a claude-code

2Manually: put the files in place

~/.claude/skills/supabase-development/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/supabase-development/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about supabase-development

How do I install supabase-development in Claude?

Run npx skills add Mindrally/skills --skill supabase-development -a claude-code. The skill file lands at ~/.claude/skills/supabase-development/SKILL.md.

What does supabase-development do?

It gives the agent Supabase guidelines: schema design, RLS policies, authentication, realtime subscriptions, Edge Functions and Storage.

Which frameworks does the skill cover for Supabase integration?

It has sections for Next.js and SvelteKit — @supabase/ssr with middleware in the first case, @supabase/auth-helpers-sveltekit with hooks in the second.

Source text

SKILL.md · Apache-2.0
---
name: supabase-development
description: Supabase development guidelines for database, authentication, real-time subscriptions, and Edge Functions.
metadata:
  maintainer: Mindrally
  source: https://github.com/Mindrally/skills
---

# 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

© Mindrally · Apache-2.0 · Mindrally/skills

Similar skills

All skills for Data and databases →

From the same set168

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor