Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

supabase-sdk-patterns

Skill by jeremylongshore

Supabase SDK Patterns is an agent skill with production patterns for @supabase/supabase-js v2 and supabase-py. It covers queries, auth, realtime, storage, and RPC calls. It is for developers building apps on Supabase who want type-safe, error-checked code.

  • Score 79
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install supabase-sdk-patterns

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/supabase-sdk-patterns ~/.claude/skills/supabase-sdk-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install supabase-sdk-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Supabase SDK Patterns is an agent skill that gives production patterns for @supabase/supabase-js v2 and supabase-py. It covers client initialization, CRUD queries with filters, auth, realtime subscriptions, storage, and RPC calls. Database queries return a { data, error } result, and the skill directs the assistant to check that error before using the data.

The skill tells the assistant to scope clients to an identity and to generate typed database definitions with supabase gen types typescript. It includes a table of common Postgres and PostgREST error codes with suggested actions, such as retrying on connection errors or checking RLS policies. Reference files cover queries and filters, auth, realtime, storage, and a service layer with pagination. It is written for developers building Supabase apps in TypeScript or Python.

Written from the project's SKILL.md and checked against it.

What it can do

  • Client setupCreates a typed Supabase client that is scoped to an identity.
  • Query and filter patternsBuilds select, filter, order, and limit chains on tables with error checks.
  • Insert, upsert, and updateWrites rows and returns the affected row using select and single calls.
  • Auth flowsCovers sign-up, sign-in, session retrieval, and auth state listeners.
  • Realtime subscriptionsSubscribes to postgres_changes on a channel and removes it on cleanup.
  • Storage handlingUploads and downloads files and creates signed URLs for private buckets.
  • RPC callsCalls Postgres functions through the Supabase client with error handling.
  • Python equivalentsShows supabase-py versions of the query patterns.
  • Error code referenceLists common Postgres and PostgREST error codes with suggested actions.

What you need

  • Supabase project with URL and publishable or anon key
  • @supabase/supabase-js v2 (TypeScript) or the supabase pip package (Python)
  • Supabase CLI to generate database types for TypeScript projects

Try asking

  • Set up a typed Supabase client in my Next.js app
  • Write a Supabase query that filters active users and orders by name
  • Add a Supabase realtime subscription with proper channel cleanup

Good to know

  • The browser example uses public configuration, not service-role credentials.
  • Python clients raise service-specific exceptions instead of returning a { data, error } tuple.
  • Cookie-based SSR needs a request-scoped @supabase/ssr client, not a shared client.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/supabase-sdk-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditGrep

  • SKILL.md7 KB
  • references/auth-realtime-storage.md3 KB
  • references/errors.md487 B
  • references/examples.md2 KB
  • references/implementation.md2 KB
Show all 7 files
  • references/queries-and-filters.md3 KB
  • references/service-patterns.md2 KB

Alternatives to supabase-sdk-patterns

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

supabase-sdk-patterns: common questions

Does this skill cover Python as well as TypeScript?

Yes. It includes Python equivalents for the query patterns. The source notes that supabase-py raises exceptions rather than returning a JavaScript-style error tuple.

Which Supabase errors does it explain?

It lists PGRST116, 23505, 42501, PGRST000, 42P01, 23503, and 42703 with a suggested action for each. Examples include using maybeSingle for zero-or-one results and checking RLS policies for 42501.

Can I use service-role keys with these patterns?

The source says privileged admin keys should be isolated from normal request code. Its client example uses public build-time configuration rather than server secret or service-role credentials.

How do I install supabase-sdk-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is supabase-sdk-patterns free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is supabase-sdk-patterns safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to supabase-sdk-patterns?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

supabase-sdk-patterns Install

Add to stack

Loading.