supabase-idioms
Skill by supabase
Teaches an AI assistant the current Supabase v3 API for Dart code. It covers typed queries, auth, realtime streams and error handling. It is aimed at developers writing or reviewing Dart code that talks to Supabase.
Install supabase-idioms
Built from the published package, never by AI.
git clone --depth 1 https://github.com/supabase/supabase-flutter /tmp/supabase-flutter && mkdir -p ~/.claude/skills && cp -r /tmp/supabase-flutter/packages/supabase/skills/supabase-idioms ~/.claude/skills/supabase-idiomsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/supabase/supabase-flutter /tmp/supabase-flutter && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/supabase-flutter/packages/supabase/skills/supabase-idioms ~/.gemini/antigravity-cli/skills/supabase-idiomsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The supabase-idioms skill gives an AI assistant the current Supabase v3 API for Dart. It covers client setup with a publishable key, typed queries with table() and generated schema types, typed rpc calls, auth, realtime streams and error handling. The source says many published Supabase Dart examples use v2 code, so the assistant should check patterns against this file instead of copying them from memory.
It is written for developers who write or review Dart code that talks to Supabase. The rules tell the assistant to generate the schema with the Supabase CLI 3.0.0 or newer and never edit it by hand. The skill also covers logging through package:logging and testing with the supabase_test package. To upgrade an existing v2 project, the source points to a separate supabase-migrate-v3 skill.
Written from the project's SKILL.md and checked against it.
What it can do
- Client setupCreates a SupabaseClient with a publishable key and handles session storage for the PKCE flow.
- Typed queriesReads and filters rows with table(), generated column constants and selectOnly for embedded relations.
- WritesInserts, upserts, updates and deletes rows, with typed update and delete calls that require where or all.
- Typed rpcCalls database functions through generated typed methods on supabase.rpc.
- AuthSigns users in and out and listens to sealed AuthState events with error handling.
- Realtime streamsKeeps lists of rows updated with stream() and reacts to table changes with onTableChanges.
- Broadcast and statusSends and receives broadcast messages and listens to channel connection status.
- Error handlingCatches the SupabaseException hierarchy, including API and transport exceptions.
- LoggingListens to the supabase logger from package:logging to see SDK records.
- Testing guidancePoints to supabase_test helpers for stubbing requests and signing in test users.
What you need
- Dart
- Supabase CLI 3.0.0 or newer
- supabase_typegen dev dependency
- supabase_test dev dependency for tests
Try asking
- Write a Dart query that loads in-print books under 10 with Supabase.
- Review this Dart code for v2 Supabase patterns like anonKey.
- Add a realtime stream of books for one author in my Dart app.
Good to know
- The source describes v3 patterns only and warns that many examples online are v2.
- Regenerating the schema after a migration with supabase db reset drops local data, so the assistant must ask first.
- Realtime changes only arrive if the table is in the supabase_realtime publication.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/supabase/skills/supabase-idioms/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to supabase-idioms
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
supabase-idioms: common questions
Does this skill work with Supabase v2 code?
The skill targets the v3 API and says v2 patterns such as from() with maps, anonKey and realtime callbacks should be avoided. The source points to a separate supabase-migrate-v3 skill for upgrading v2 projects.
How does the assistant get the typed table classes?
The source says to generate the schema with the Supabase CLI and gen types --lang dart, and never to edit the generated file by hand.
Does the skill cover testing Supabase code?
It recommends the supabase_test package as a dev dependency, with MockSupabaseHttpClient, testSupabaseClient and signInTestUser, instead of mocking the HTTP client by hand.
How do I install supabase-idioms?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is supabase-idioms free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is supabase-idioms safe to use?
It scores 77 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-idioms?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
