studio-error-handling
Skill by supabase
Documents the error handling pattern used in Supabase Studio. It covers how failed requests and query errors are classified, shown in the UI, and given troubleshooting steps. Aimed at developers working on Studio.
Install studio-error-handling
Built from the published package, never by AI.
git clone --depth 1 https://github.com/supabase/supabase /tmp/supabase && mkdir -p ~/.claude/skills && cp -r /tmp/supabase/.agents/skills/studio-error-handling ~/.claude/skills/studio-error-handlingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/supabase/supabase /tmp/supabase && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/supabase/.agents/skills/studio-error-handling ~/.gemini/antigravity-cli/skills/studio-error-handlingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install studio-error-handling in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Studio Error Handling is an agent skill from the Supabase repository that describes how Supabase Studio shows failed API requests and query errors. It explains the flow from handleError, which throws tagged StudioError instances, through React Query to the ErrorMatcher and AlertError components. It also covers error classifiers, SQL error classes, and Sentry sampling rules.
The skill tells developers which component to use in each situation. AlertError is the default for failed queries, a mutation's onError toast is used for failed mutations, and ErrorMatcher is for classified errors that need dedicated troubleshooting steps. It is aimed at developers working on Supabase Studio who add error messages, troubleshooting steps, or AI assistant debug buttons.
Written from the project's SKILL.md and checked against it.
What it can do
- Show query errorsUses AlertError as the default component when a query fails and a section cannot render.
- Render troubleshooting stepsUses ErrorMatcher to show dedicated steps for a classified error, such as a timeout.
- Classify errorsSorts HTTP API responses and other failures into tagged error classes using classifyResponseError and classifyError.
- Route Sentry reportingMaps each error tag and fault to a Sentry sample rate through ERROR_ROUTING.
- Wire AI assistant debug buttonShows how the ConnectionTimeout troubleshooting component connects an AI Assistant debug button.
- Add error patternsPlaces regex patterns for new error types in data/error-patterns.ts rather than in UI components.
Try asking
- Show a failed invoices query with AlertError in Studio
- Add troubleshooting steps for a new error type in Studio
- Wire the AI assistant debug button to an error state
Good to know
- Describes the Supabase Studio codebase only.
- Do not pass error.message to ErrorMatcher; pass the full error object.
- Use AlertError blindly only for system faults, not for user input errors.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/studio-error-handling/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to studio-error-handling
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
studio-error-handling: common questions
When should I use AlertError instead of ErrorMatcher?
AlertError is the default for failed queries. ErrorMatcher is for classified errors that need dedicated troubleshooting steps, such as timeouts.
How should Studio check for a StudioError?
Use isStudioError from @/lib/errors/studio-errors rather than instanceof, because StudioError is only a union type.
Where should error regex patterns go?
They go in data/error-patterns.ts, never in UI components or error-mappings.tsx.
How do I install studio-error-handling?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is studio-error-handling free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is studio-error-handling safe to use?
It scores 89 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 studio-error-handling?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
