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-cost-tuning

Skill by jeremylongshore

Optimizes Supabase costs through usage audits, database and storage cleanup, connection pooling and Edge Function tuning. Built for developers who need to analyze Supabase billing or set up budget alerts.

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

Install supabase-cost-tuning

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

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

Step-by-step: install supabase-cost-tuning in Claude Code

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

About

Supabase Cost Tuning is an agent skill for reducing Supabase spend. It works in three ordered steps: audit usage against plan limits, optimize the database, storage and bandwidth, and right-size compute. The skill includes SQL audit queries for table sizes, zero-scan indexes, dead-tuple ratio and connection count, plus a script for per-bucket storage usage, image compression and orphan cleanup.

The guidance covers VACUUM ANALYZE with archival, explicit column lists and pagination to reduce bandwidth, and connection pooling through Supavisor. It also covers Edge Function invocation costs. The skill tells users to check current pricing and their own billing dashboard rather than a fixed price table. It is aimed at developers who manage a Supabase project and want to analyze billing, cut costs or add usage tracking and budget alerts.

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

What it can do

  • Usage auditFinds the biggest tables, unused indexes, dead-tuple bloat and connection count.
  • Database optimizationCovers archiving old rows and running VACUUM ANALYZE to reuse dead-tuple space.
  • Storage cleanupDescribes compressing images before upload and removing orphaned files.
  • Bandwidth reductionReplaces select('*') with column lists and uses range pagination and head counts.
  • Connection poolingGuides choosing direct, session or transaction Supavisor connection modes.
  • Edge Function reviewExplains how invocation count drives hosted Edge Function charges and how to avoid waste.
  • Usage monitoringSets up a usage monitoring table and daily summary view for spend visibility.

What you need

  • Supabase project with Dashboard access
  • @supabase/supabase-js installed via npm
  • Service role key for storage audit and cleanup scripts
  • SQL Editor access or a psql connection

Try asking

  • Audit my Supabase database and show the largest tables and dead-tuple ratios
  • Find unused indexes in my Supabase project and list them for review
  • Help me clean up orphaned files in my Supabase storage buckets

Good to know

  • Pricing figures are dated estimates and not a billing quote or fixed monthly cap
  • The spend cap does not cap every charge
  • VACUUM generally does not shrink on-disk allocation
  • Pooling does not guarantee that a smaller compute size will work

Security check

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

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

Inside the skill

Allowed tools: ReadWriteEditGrepBash(supabase:*)

Alternatives to supabase-cost-tuning

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-cost-tuning: common questions

Does this skill tell me the exact cost of my Supabase project?

No. The source says to use the current pricing page and the project's billing dashboard, since the listed rates are dated estimates and not a quote.

Will VACUUM reduce my Supabase disk usage?

The source says ordinary VACUUM does not generally shrink the on-disk allocation. It makes dead-tuple space reusable and refreshes planner stats.

Does reducing Edge Function code size lower invocation charges?

No. The source says smaller imports and warm-instance caching improve latency and resource use but do not themselves reduce hosted invocation charges.

How do I install supabase-cost-tuning?

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

Is supabase-cost-tuning free?

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

Is supabase-cost-tuning 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-cost-tuning?

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

supabase-cost-tuning Install

Add to stack

Loading.