supabase-common-errors
Skill by jeremylongshore
Diagnoses and fixes Supabase errors across PostgREST, PostgreSQL, Auth, Storage, and Realtime. Aimed at developers debugging failed queries, RLS violations, and HTTP 4xx/5xx responses.
Install supabase-common-errors
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-common-errors ~/.claude/skills/supabase-common-errorsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/supabase-common-errors ~/.gemini/antigravity-cli/skills/supabase-common-errorsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install supabase-common-errors in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill helps an AI assistant diagnose and fix Supabase errors. It covers PostgREST errors (PGRST codes), PostgreSQL SQLSTATE codes, and errors from Auth, Storage, and Realtime. The workflow captures the error object, classifies it by layer and code, then applies a fix and re-runs the original operation to verify it. The main file includes lookup tables for PostgREST and PostgreSQL codes. Auth, Storage, and Realtime tables are in a separate reference file.
The skill is for developers using @supabase/supabase-js who hit errors such as PGRST301, 42501, 23505, auth failures, RLS policy violations, or failing HTTP responses. It stresses checking the error before reading data, and avoiding service-role clients that bypass the user boundary. It is designed for Claude Code and is licensed under MIT.
Written from the project's SKILL.md and checked against it.
What it can do
- Classify errors by layerMatches the code prefix to PostgREST, PostgreSQL, Auth, or Storage.
- PostgREST error tableLists PGRST codes with HTTP status, root cause, and fix.
- PostgreSQL error tableExplains SQLSTATE codes such as 42501, 23505, 23503, and 57014.
- Null-data guardChecks the error object before using data in query results.
- Zero-or-one row handlingShows how to use maybeSingle to avoid PGRST116 on optional data.
- Schema cache reloadDescribes reloading the PostgREST schema cache after a migration.
What you need
- @supabase/supabase-js installed
- SUPABASE_URL and a publishable or anon key
- Access to the Supabase Dashboard
- Supabase CLI for local development
Try asking
- Why am I getting PGRST116 from my Supabase query?
- Help me fix error 42501 on an insert with RLS enabled
- How do I handle a 23505 unique constraint violation on upsert?
Good to know
- A missing error code may need service-specific inspection; HTTP status alone does not prove the cause.
- Upsert can overwrite data and needs authorization, per the source.
- Auth, Storage, and Realtime tables are in a separate reference file.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/.curated/supabase-common-errors/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadGrepBash(curl:*)Bash(supabase:*)Bash(npx:*)
Alternatives to supabase-common-errors
All alternatives →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.
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.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
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.
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.
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.
Compare with hugging-face-datasets, db-repair or alloydb-basics
supabase-common-errors: common questions
Does it cover Storage and Realtime errors?
Yes. Storage and Realtime are named as layers, and their error tables are in the full error reference.
What does Supabase error 42501 mean?
It means insufficient privilege. The source says grants or RLS deny this identity, and it is not necessarily RLS alone.
What should I do about PGRST301?
Verify the token, project, or session configuration through the appropriate Auth workflow. The source says not to retry blindly.
How do I install supabase-common-errors?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is supabase-common-errors free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is supabase-common-errors safe to use?
It scores 75 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-common-errors?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
