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-observability

Skill by jeremylongshore

Sets up monitoring and observability for Supabase projects using Dashboard reports, CLI inspect commands, pg_stat_statements, log drains, and alerting. It is for developers who need to diagnose slow queries, forward logs, or alert on project health.

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

Install supabase-observability

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

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

Step-by-step: install supabase-observability in Claude Code

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

About

This skill guides an AI assistant through monitoring a Supabase project. It starts with the built-in Dashboard reports for API, database, auth, storage, and realtime metrics. It then uses the supabase inspect db CLI commands, such as cache hit ratio and sequential scans, for deeper Postgres diagnostics. It also covers pg_stat_statements for query analytics and log drains for forwarding logs to an external destination.

The skill adds custom metrics through a scheduled Edge Function that checks quota thresholds, plus a health check endpoint for uptime monitors. Scheduling uses pg_cron and pg_net with credentials stored in Vault. The source points to reference files for full commands, SQL, and alert configuration. It is intended for developers and operators who run Supabase projects and want to track their health.

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

What it can do

  • Dashboard reportsReviews API requests, database, auth usage, storage, and realtime metrics in the Supabase Dashboard.
  • supabase inspect dbRuns CLI diagnostics such as cache-hit and seq-scans against a linked project.
  • pg_stat_statements queriesRanks queries by average execution time to find slow queries.
  • Log drainsForwards project logs to an approved external destination configured in Project Settings.
  • Quota metrics Edge FunctionCollects quota-relevant data on a schedule and logs a warning when database size nears its limit.
  • Health check endpointReturns per-service status with latency for uptime monitors.
  • Scheduled invocationsSchedules function calls with pg_cron and pg_net, using Vault for URL and credentials.

What you need

  • Supabase CLI installed
  • Supabase project linked with supabase link
  • Pro plan or higher for log drains and extended log retention
  • @supabase/supabase-js v2 or higher for application-level monitoring

Try asking

  • Run the cache hit ratio and sequential scan checks on my linked Supabase project
  • Show me the slowest queries from pg_stat_statements for my database
  • Set up a scheduled Edge Function that warns when database size nears the quota

Good to know

  • Log drains and extended log retention require the Pro plan or higher.
  • A function TOML schedule field is not supported; use pg_cron and pg_net instead.
  • The quota alert example assumes an 8GB Pro plan database limit.
  • Log drain destinations should be reviewed for data exported, retention, credentials, and region before enabling.

Security check

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

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

Inside the skill

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

  • SKILL.md7 KB
  • references/alert-configuration.md930 B
  • references/cli-inspect-commands.md2 KB
  • references/custom-metrics-and-health-checks.md4 KB
  • references/diagnostic-scripts.md1 KB
Show all 9 files
  • references/errors.md477 B
  • references/examples.md345 B
  • references/metrics-collection.md2 KB
  • references/query-analytics-and-log-drains.md2 KB

Alternatives to supabase-observability

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-observability: common questions

What is the cache hit ratio target for a Supabase database?

The source says the cache hit ratio should be above 99%. A ratio below 95% suggests the working set exceeds RAM, and the fix is to upgrade compute or optimize queries.

Which log destinations does the skill mention?

The source lists Datadog, Logflare, or a webhook as examples of log drain destinations. Each destination must be configured under Project Settings > Log Drains.

Can I use this skill for incident response?

The source points to a separate skill, supabase-incident-runbook, for incident response procedures. This skill focuses on monitoring, diagnostics, log forwarding, and alerting.

How do I install supabase-observability?

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

Is supabase-observability free?

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

Is supabase-observability 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-observability?

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

supabase-observability Install

Add to stack

Loading.