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-advanced-troubleshooting

Skill by jeremylongshore

Diagnoses deep Supabase performance and connectivity problems using PostgreSQL system views. It is for developers who need more than standard troubleshooting, including support escalations.

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

Install supabase-advanced-troubleshooting

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-advanced-troubleshooting ~/.claude/skills/supabase-advanced-troubleshooting

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

Step-by-step: install supabase-advanced-troubleshooting in Claude Code

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

About

This Claude Code skill provides advanced Supabase diagnostics for cases where basic debugging does not reveal the root cause. It uses pg_stat_statements to rank slow queries by cumulative execution time, pg_locks joined to pg_stat_activity to find blocked and blocking queries, and idle connection queries to detect leaks. It also covers RLS policy conflict analysis, Edge Function cold start profiling, and Realtime channel drop investigation.

The skill works in three tracks chosen by the symptom. SKILL.md contains starter SQL queries and an SDK overview, and reference files hold the full toolkits. It expects a Supabase project with pg_stat_statements enabled and a service-role key for the diagnostic RPCs. It is aimed at developers investigating performance regressions or race conditions, or building evidence for a Supabase support escalation.

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

What it can do

  • Slow query analysisRanks queries by total execution time using pg_stat_statements and suggests EXPLAIN ANALYZE follow-up.
  • Lock debuggingFinds blocked and blocking query pairs using pg_locks joined to pg_stat_activity.
  • Connection leak detectionFinds idle and idle-in-transaction connections and provides kill commands for cleanup.
  • RLS conflict analysisLists RLS policies with permissive or restrictive classification and compares access levels.
  • Edge Function profilingMeasures cold start versus warm invocation latency for Edge Functions.
  • Realtime debuggingMonitors Realtime channel state and covers publication configuration for dropped channels.
  • Diagnostic bundleBuilds a JSON bundle of connection health, table sizes and recent errors for support tickets.

What you need

  • Supabase project with pg_stat_statements extension enabled
  • Direct database access through SQL Editor or psql
  • @supabase/supabase-js v2 or later
  • Supabase service-role key for diagnostic RPCs
  • Dashboard access to Edge Function Logs and Invocations panels
  • Claude Code

Try asking

  • Use supabase-advanced-troubleshooting to find my slowest queries by total time.
  • Check my Supabase project for blocked queries and lock contention.
  • Help me find idle-in-transaction connections that may be leaking.

Good to know

  • The Supabase CLI has no remote functions logs command, so remote Edge Function evidence comes from the Dashboard.
  • Local functions serve output is not remote evidence.
  • The anon key cannot read pg_stat_activity or system catalogs, so the service-role key is needed for those RPCs.
  • Reference files hold the full query sets and SDK helpers, so SKILL.md alone is a starting skeleton.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

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

Inside the skill

Allowed tools: ReadGrepBash(npx supabase:*)Bash(supabase:*)Bash(curl:*)Bash(psql:*)

Alternatives to supabase-advanced-troubleshooting

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

supabase-advanced-troubleshooting: common questions

What does the Supabase advanced troubleshooting skill diagnose?

It covers slow queries via pg_stat_statements, lock contention via pg_locks, connection leaks, RLS policy conflicts, Edge Function cold starts, and Realtime connection drops.

Which key does it need for diagnostic queries?

The skill recommends the service-role key for the diagnostic RPCs, because they read pg_stat_activity and system catalogs that the anon key cannot access. It should be loaded from the environment and never committed.

Can it read remote Edge Function logs from the CLI?

No. The source says the CLI has no remote functions logs command, so remote logs should be read from the Dashboard Logs and Invocations panels.

How do I install supabase-advanced-troubleshooting?

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

Is supabase-advanced-troubleshooting free?

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

Is supabase-advanced-troubleshooting safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to supabase-advanced-troubleshooting?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

supabase-advanced-troubleshooting Install

Add to stack

Loading.