Agent skill

Supabase Observability

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Set up monitoring and observability for Supabase projects using Dashboard reports, CLI inspect commands, pgstatstatements, log drains, and alerting.

MITAuto-check passedDevOps & Cloud

Install Supabase Observability

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill supabase-observability -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace supabase-observability --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/supabase-observability .claude/skills/supabase-observability && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
supabase-observability
GitHub stars
2.8k
Token cost
~1.7k tokens
SKILL.md length
529 words
Files
9 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Set up monitoring and observability for Supabase projects using Dashboard reports, CLI inspect commands, pgstatstatements, log drains, and alerting.

  • Works in 3 steps: Dashboard Reports and CLI Inspect Commands → Query Analytics with pg_stat_statements… → Custom Metrics, Alerting, and Health…
  • Implementing monitoring
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 4 more sections
  • Calls supabase and npx; needs DATADOG_API_KEY

What it does

Supabase Observability is an agent skill from jeremylongshore/tons-of-skills-marketplace. Set up monitoring and observability for Supabase projects using Dashboard reports, CLI inspect commands, pgstatstatements, log drains, and alerting. Use when implementing monitoring, diagnosing slow queries, forwarding logs, or configuring alerts for Supabase project health. Trigger with phrases like "supabase monitoring", "supabase metrics", "supabase observability", "supabase logs", "supabase alerts", "supabase inspect", "supabase log drain".

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files (for example `references/alert-configuration.md`, `references/cli-inspect-commands.md` and `references/custom-metrics-and-health-checks.md`). Compatibility notes: Designed for Claude Code

It sits in DevOps & Cloud, covering Observability and Query optimization. It works with Supabase. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Implementing monitoring
  • Diagnosing slow queries
  • Forwarding logs
  • Configuring alerts for Supabase project health

Example prompts

  • “supabase monitoring”
  • “supabase metrics”
  • “supabase observability”
  • “/supabase-observability”

Requirements

  • Node.js
  • A credential in DATADOG_API_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(npx supabase:*), Bash(supabase:*), Grep

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Dashboard Reports and CLI Inspect Commands
  2. Query Analytics with pg_stat_statements and Log Drains
  3. Custom Metrics, Alerting, and Health Checks

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(npx supabase:*)
    • Bash(supabase:*)
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • supabase
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • supabase.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • DATADOG_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Supabase Observability loads about 1.7k tokens when it runs, and up to ~4.7k if it reads all its reference files. Until then it costs about 118 tokens; SKILL.md has 529 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~118
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 529 words, ~1,675 tokens.

Download SKILL.mdSave it as .claude/skills/supabase-observability/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
supabase-observability
description
Set up monitoring and observability for Supabase projects using Dashboard reports, CLI inspect commands, pg_stat_statements, log drains, and alerting. Use when implementing monitoring, diagnosing slow queries, forwarding logs, or configuring alerts for Supabase project health. Trigger with phrases like "supabase monitoring", "supabase metrics", "supabase observability", "supabase logs", "supabase alerts", "supabase inspect", "supabase log drain".
allowed-tools
Read, Write, Edit, Bash(npx supabase:*), Bash(supabase:*), Grep
compatibility
Designed for Claude Code
version
1.54.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, supabase, monitoring, observability

Supabase Observability

Overview

Monitor Supabase projects end-to-end: Dashboard reports for API/database/auth metrics, supabase inspect db CLI for deep Postgres diagnostics, pg_stat_statements for query analytics, log drains for external aggregation, Edge Functions for custom metrics, and alerting on quota thresholds.

Follow the three steps below from this file for the high-level workflow, then drill into the linked references/ files for the full commands, SQL, and function source.

Prerequisites

  • Supabase CLI installed (npx supabase --version)
  • Supabase project linked (supabase link --project-ref <ref>)
  • Pro plan or higher for log drain support and extended log retention
  • @supabase/supabase-js v2+ installed for application-level monitoring

Instructions

Step 1: Dashboard Reports and CLI Inspect Commands

Start with the built-in Dashboard > Reports (API Requests, Database, Auth Usage, Storage, Realtime) for high-level metrics. For deeper Postgres diagnostics, use the supabase inspect db subcommands — begin with cache hit ratio and sequential scans:

bash
# Cache hit ratio — should be > 99% (below 95% means upgrade compute)
npx supabase inspect db cache-hit --linked

# Sequential scans — tables needing indexes
npx supabase inspect db seq-scans --linked

The full report table plus all nine inspect subcommands (table sizes, index usage, long-running queries, bloat, blocking, replication slots, and more) are in references/cli-inspect-commands.md.

Step 2: Query Analytics with pg_stat_statements and Log Drains

Enable pg_stat_statements for query-level metrics, then rank queries by execution time:

sql
create extension if not exists pg_stat_statements;

-- Top slowest queries by average execution time
select substring(query, 1, 80) as query_preview, calls,
  round(mean_exec_time::numeric, 2) as avg_ms
from pg_stat_statements
where mean_exec_time > 50
order by mean_exec_time desc limit 20;

Forward logs to external aggregation with a log drain:

bash
npx supabase log-drains add --name datadog-drain --type datadog \
  --datadog-api-key "$DATADOG_API_KEY" --datadog-region us1 --linked

The complete slow-query / high-frequency / connection-monitoring SQL set and every log-drain command (Datadog, webhook, list, remove) are in references/query-analytics-and-log-drains.md.

Step 3: Custom Metrics, Alerting, and Health Checks

Emit business-level metrics from a scheduled Edge Function, alert on quota thresholds, and expose a health endpoint for uptime monitors. The skeleton of the metrics collector:

typescript
// supabase/functions/collect-metrics/index.ts — see reference for full source
const DB_LIMIT_MB = 8000; // 8GB Pro plan limit
if (dbSize > DB_LIMIT_MB * 0.85) {
  console.warn(`[QUOTA_ALERT] Database at ${Math.round(dbSize / DB_LIMIT_MB * 100)}% capacity`);
}

Schedule it every 15 minutes via [functions.collect-metrics] in config.toml. The complete collector, the multi-service health-check endpoint, and Realtime connection monitoring are in references/custom-metrics-and-health-checks.md. For external alert rules, see the Prometheus AlertManager set in references/alert-configuration.md.

Output

  • Dashboard reports configured for API, database, and auth monitoring
  • CLI inspect commands available for Postgres diagnostics (table sizes, index usage, cache hits, sequential scans, long-running queries)
  • pg_stat_statements enabled with slow-query and high-frequency-query views
  • Log drains forwarding to external tools (Datadog, Logflare, or webhook)
  • Custom metrics Edge Function collecting quota-relevant data on a schedule
  • Health check endpoint returning per-service status with latency
  • Alerting on quota thresholds (database size, user count)
Show full SKILL.md (179 more words)Show less

Error Handling

IssueCauseSolution
pg_stat_statements returns no rowsExtension not enabledEnable via Dashboard > Database > Extensions
supabase inspect db failsCLI not linked to projectRun supabase link --project-ref <ref>
Log drain not receiving eventsAPI key invalid or region mismatchVerify credentials; check supabase log-drains list
Cache hit ratio below 95%Working set exceeds RAMUpgrade compute add-on or optimize queries
Health check returns 503One or more services degradedCheck detail field in response; verify service role key
Edge Function cron not firingMissing schedule in config.tomlAdd [functions.<name>] with schedule field and redeploy
Long-running queries growingMissing indexes or lock contentionRun inspect db seq-scans and inspect db blocking

Examples

A one-shot diagnostic bash script that runs every inspect command in sequence, plus the app_metrics backing table schema with a 90-day retention policy, are in references/diagnostic-scripts.md. For application-level Prometheus instrumentation of the Supabase client, see references/metrics-collection.md.

Resources

Next Steps

For incident response procedures, see supabase-incident-runbook. For performance optimization, see supabase-performance-tuning.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (references) in skills/.curated/supabase-observability of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/alert-configuration.md
  • references/cli-inspect-commands.md
  • references/custom-metrics-and-health-checks.md
  • references/diagnostic-scripts.md
  • references/errors.md
  • references/examples.md
  • references/metrics-collection.md
  • references/query-analytics-and-log-drains.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Supabase Observability next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Supabase Observability compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Supabase Observability this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.7kAutomated safety check: PassMIT
Cloudflare Workers Otel Utelsmizchi/skills360—~1.4kAutomated safety check: NotesNone
Database Observabilitygrafana/skills282—~1.1kAutomated safety check: PassApache-2.0
Database ObservabilityKilo-Org/kilo-marketplace190—~1.4kAutomated safety check: PassApache-2.0
Supabase Postgres Best Practicessupabase/agent-skills2.7k24 repos~808Automated safety check: PassMIT
Vercel Optimize Auditvercel-labs/agent-skills32k8 repos~4.3kAutomated safety check: PassNone

Similar skills

  • Cloudflare Worker telemetry at the fetch boundary — OTLP traces / metrics / logs + utels error tracking + D1 Proxy that emits slow-query warnings.

    360 GitHub stars~1.4k tokensUpdated 9 days ago
    DevOps & CloudAuto-check: notes
  • Official

    Set up Grafana Cloud Database Observability for MySQL and PostgreSQL — enables pgstatstatements / Performance Schema, creates a least-privilege monitoring user, configures the…

    282 GitHub stars~1.1k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Database Observability

    Kilo-Org/kilo-marketplace

    Grafana Cloud Database Observability — query-level performance insights for MySQL and PostgreSQL.

    190 GitHub stars~1.4k tokensUpdated 12 days ago
    DevOps & CloudAuto-check passed
  • Official

    Gives the agent Postgres rules to consult before writing or changing tables, queries, indexes, RLS policies or migrations, and when diagnosing slow queries.

    2.7k GitHub starsUsed in 24 repos~808 tokens
    DatabasesAuto-check passed
  • Vercel Optimize Audit

    vercel-labs/agent-skills

    Official

    Runs a metrics-first audit of a deployed Vercel project, gating investigations on real signals to produce ranked, citation-backed cost and performance recommendations.

    32k GitHub starsUsed in 8 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • Kubeshark Installer

    kubeshark/kubeshark

    Installs and configures Kubeshark on a Kubernetes cluster, choosing between the quick CLI path and a Helm install with custom values.

    12k GitHub stars~3.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Supabase Observability

What does Supabase Observability do?

Set up monitoring and observability for Supabase projects using Dashboard reports, CLI inspect commands, pgstatstatements, log drains, and alerting. Supabase Observability is an agent skill from jeremylongshore/tons-of-skills-marketplace. Set up monitoring and observability for Supabase projects using Dashboard reports, CLI inspect commands, pgstatstatements, log drains, and alerting.

When should I use Supabase Observability?

Supabase Observability fits situations like: implementing monitoring; diagnosing slow queries; forwarding logs; configuring alerts for Supabase project health.

How do I install Supabase Observability in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill supabase-observability -a claude-code`. Or copy the skill folder (skills/.curated/supabase-observability in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/supabase-observability in your project. Claude Code loads it when a task matches its description.

How do I install Supabase Observability in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill supabase-observability -a codex`. Or copy the skill folder (skills/.curated/supabase-observability in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/supabase-observability in your project. Codex loads it when a task matches its description.

Can I use Supabase Observability in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill supabase-observability -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/supabase-observability, .gemini/skills/supabase-observability, .github/skills/supabase-observability and .opencode/skills/supabase-observability in your project.

What does Supabase Observability need to run?

Going by SKILL.md and its folder, Supabase Observability needs the command-line tools its instructions call (supabase and npx) and credentials named DATADOG_API_KEY. Our summary lists: Node.js; A credential in DATADOG_API_KEY. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(npx supabase:*), Bash(supabase:*), Grep. Compatibility (from SKILL.md): Designed for Claude Code.

Does Supabase Observability access the network?

SKILL.md names 1 domain. As links in the text: supabase.com. This is read from the text; nothing was executed.

Is Supabase Observability safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Supabase Observability use?

Supabase Observability is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Supabase Observability use?

About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3k tokens, read only when the agent opens those files.

What are the alternatives to Supabase Observability?

Skills that share tags, products or a category with Supabase Observability: Cloudflare Workers Otel Utels (mizchi/skills, 360 stars), Database Observability (grafana/skills, 282 stars), Database Observability (Kilo-Org/kilo-marketplace, 190 stars) and Supabase Postgres Best Practices (supabase/agent-skills, 2.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Supabase Observability?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.