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-reliability-patterns

Skill by jeremylongshore

Adds bounded read retries and a circuit breaker to Supabase database calls in TypeScript apps. It is for developers who want fault-tolerant reads and clear handling of outages. Writes, Auth failures and RLS denials are not retried.

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

Install supabase-reliability-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-reliability-patterns ~/.claude/skills/supabase-reliability-patterns

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

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

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

About

This skill gives guidance and TypeScript helpers for making Supabase calls more resilient. It limits retries to explicitly idempotent reads. The retry helper only retries a fixed set of transient PostgREST and Postgres error codes, using exponential backoff with jitter and a maximum of five extra attempts. A single-process circuit breaker counts returned database errors, opens after repeated transient failures, and allows one half-open probe after a reset delay.

The skill also shows an authorized read that verifies the user before querying, with matching RLS required on the table. It says that outages should be shown as unavailable rather than as empty data, and that cached results must not be shared across identities. Write retries, Auth failures and RLS denials are not retried. Offline queues, health checks and dual writes appear only in a reference file and need their own durability and replay review. It suits developers building fault-tolerant Supabase apps.

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

What it can do

  • withReadRetryRetries only transient read error codes with exponential backoff and jitter, up to five extra attempts.
  • ReadCircuitSingle-process circuit breaker that counts returned database errors and opens after repeated transient failures.
  • listOwnTodosExample authorized read that verifies the user and wraps a query in the circuit and retry helpers.
  • Error handling guidanceTable of dispositions for auth, RLS, exhausted reads, circuit open, write timeouts and stale cache.

What you need

  • A Supabase project
  • @supabase/supabase-js client
  • TypeScript
  • Claude Code

Try asking

  • Wrap my Supabase todos read with the retry and circuit breaker helpers
  • Add a circuit breaker to my Supabase database reads in TypeScript
  • Show me how to handle a Supabase outage without returning empty data

Good to know

  • Write calls such as insert are not retried by the read helper.
  • Finite retry attempts do not bound a stalled network call; a deadline is still required.
  • The circuit breaker is single-process and illustrative, not a distributed admission controller.
  • Offline queue and dual-write patterns need their own durability and replay review.

Security check

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

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

Inside the skill

Allowed tools: ReadWriteEditBash(supabase:*)Bash(curl:*)Grep

Alternatives to supabase-reliability-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-reliability-patterns: common questions

Does this skill retry failed Supabase writes?

No. The source says not to wrap insert calls in the read-retry helper, because a timeout can follow a committed write. Write queues need durable operation IDs and idempotency first.

Which errors trigger a retry?

Only error codes in a fixed transient read set, such as 08006, 53300 and PGRST001 to PGRST003. Auth, RLS, schema and validation errors are not retried.

Does the skill cover offline-first apps?

It mentions offline recovery patterns in a reference file, but the source says they need their own durability and replay review before use.

How do I install supabase-reliability-patterns?

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

Is supabase-reliability-patterns free?

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

Is supabase-reliability-patterns safe to use?

It scores 76 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-reliability-patterns?

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

supabase-reliability-patterns Install

Add to stack

Loading.