agentleFS
MindrallyMindrally/skills/supabase-development/SKILL.md

supabase-development

Skill275 starsChanged 52 days agoApache-2.0View on GitHub

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

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 18 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    Distinctive · estimate

    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
  1. Distinctive:

    Use Supabase client for all database interactions

    line 15
  2. Distinctive:

    Use real-time subscriptions for live updates

    line 18
  3. Distinctive:

    Use proper PostgreSQL types and constraints

    line 23
  4. Distinctive:

    Create indexes for frequently queried columns

    line 25
  5. Distinctive:

    Use views for complex queries

    line 26
  6. Distinctive:

    Always enable RLS on tables with user data

    line 30
  7. Distinctive:

    Write policies for SELECT, INSERT, UPDATE, DELETE

    line 31
  8. Distinctive:

    Test policies thoroughly before deployment

    line 32
  9. Distinctive:

    Use service role only for admin operations

    line 33
  10. Distinctive:

    Use auth helpers for framework integration

    line 39
  11. Distinctive:

    Use subscriptions for live data updates

    line 45
  12. Distinctive:

    Write functions in TypeScript/Deno

    line 52
  13. Distinctive:

    Use environment variables for secrets

    line 55
  14. Distinctive:

    Test locally before deployment

    line 56
  15. Distinctive:

    Use signed URLs for private files

    line 62
  16. Very specific:

    Use @supabase/ssr for server-side auth

    line 68
  17. Distinctive:

    Use load functions for data fetching

    line 75
  18. Distinctive:

    Use connection pooling for high traffic

    line 79
  19. Distinctive:

    Use pagination for large datasets

    line 82

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.