agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/supabase/SKILL.md

supabase

Skill13 starsChanged 26 days agoMITView on GitHub

  • Installs packages

67 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use flutter, react-native and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ffsshhttiikkSkill

    flutter

    Flutter cross-platform framework

    Also in 3 projects that use this

  • VercelSkill

    react-native

    React Native renderer for json-render that turns JSON specs into native mobile UIs. Use when working with @json-render/react-native, building React Native UIs from JSON, creating mobile component catalogs, or rendering AI-generated specs on mobile.

    Also in 3 projects that use this

  • VercelSkill

    vercel-optimize

    Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps. Collect Vercel metrics, usage, project config, and code scan results first; investigate only metric-backed candidates; produce ranked recommendations grounded in verified files and version-aware Vercel/framework docs. Trigger for Vercel bill reduction, slow or expensive routes, caching opportunities, Function Invocations, Build Minutes, Fast Data Transfer, Core Web Vitals, Bot Management, Fluid compute, or cost breakdown requests.

    Also in 3 projects that use this

  • wewpellex21Skill

    backend

    Servers, routes, APIs, and backend architecture. Activated when Claude creates server-side code, API routes, or Express/Fastify/Next.js API handlers.

    Also in 3 projects that use this

  • klauswgSkill

    performance

    Optimize web performance for faster loading and better user experience. Use when asked to "speed up my site", "optimize performance", "reduce load time", "fix slow loading", "improve page speed", or "performance audit".

    Also in 4 projects that use this

  • DatabricksSkill

    deploy-to-vercel

    Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

    Also in 3 projects that use this

  • +2 more from vercel-labs

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 65 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never expose the service_role key to the frontend.

    line 28
  2. Very specific:

    Use generated TypeScript types (supabase gen types typescript) to ensure type-safe database queries.

    line 34
  3. Very specific:

    If queries return empty arrays [] instead of expected data, it is almost always due to missing or misconfigured RLS policies.

    line 37
  4. Distinctive:

    Use this when your agent works with supabase — structured patterns beat pasted docs and prevent common hallucinations.

    line 43

“Common” is measured: kept by at least 6 in 10 of the 65 edited versions of this file we could read. “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 API Skill

Overview

Supabase provides Postgres database access, authentication, edge functions, and storage. This skill covers the @supabase/supabase-js client and Row Level Security (RLS).

Installation

npm install @supabase/supabase-js
pip install supabase

Authentication

Clients use the SUPABASE_URL and anon key. Server environments use the service_role key to bypass RLS.

Core Concepts

  • RLS (Row Level Security): Postgres policies that restrict row access based on the authenticated user.
  • Realtime: Postgres CDC streamed over WebSockets.

Common Workflows

  1. Authenticate user via supabase.auth.signInWithPassword.
  2. Query data: supabase.from('table').select('*').
  3. RLS automatically filters rows.

Error Handling

Supabase returns { data, error }. Always check if (error) rather than relying on try/catch, as the JS client does not throw exceptions for query errors.

Security

Never expose the service_role key to the frontend. Always enable RLS on public tables.

Rate Limits

Auth API is heavily rate-limited to prevent brute-forcing. Database queries are limited by your Postgres instance compute.

Best Practices

Use generated TypeScript types (supabase gen types typescript) to ensure type-safe database queries.

Troubleshooting

If queries return empty arrays [] instead of expected data, it is almost always due to missing or misconfigured RLS policies.

References

Why use this skill

Use this when your agent works with supabase — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Inventing column names or schema fields
  • Using deprecated driver methods or wrong connection strings
  • Omitting connection pooling or transaction boundaries

Production checklist

  • Migrations version-controlled and applied via CI
  • Connection limits and pooling configured
  • Backups and restore procedure documented

Related skills

  • postgresql — depends on
  • nextjs — integrates with
  • supabase-ssr — works well with

Last Verified: 2026-07-02

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.