justinduverge-design/omen/supabase-form-debugger
Claude Code and agent skill by justinduverge-design/omen
- community
Checking that the SKILL.md file is still in the repository.
Debug Supabase-backed frontend forms that freeze, fail, show loading forever, do not insert rows, or behave differently between direct SQL and browser UI. Use for waitlists, magic-link forms, signup forms, RLS insert problems, Vite env issues, Supabase URL/key problems, and browser-to-Supabase integration failures.
Install
npx vskill@latest install justinduverge-design/omen/supabase-form-debuggerSKILL.md
The same SKILL.md was published earlier as justinduverge-design/omen/supabase-form-debugger.
Supabase Form Debugger
Use this skill when a Supabase-backed browser form appears wired correctly but fails in the UI.
The goal is to prove each layer in order:
- Database shape and RLS
- Role grants and policies
- Supabase URL and anon key availability
- Direct
supabase-jsinsert - Served Vite/browser env
- Real browser submit
- UI error handling
Do not guess from the visible button state alone.
Workflow
1. Confirm The Symptom
Record what the user sees:
- Button stuck on loading
- Error message shown
- Success message missing
- Row not appearing in Supabase
- Email not received
Clarify whether the form is supposed to send email or only insert a row.
2. Check The Table And RLS
Use Supabase SQL/MCP or the dashboard to verify:
- Table exists
- Columns match the frontend insert
- RLS is enabled
- Insert policies exist for the roles the browser may use
anonandauthenticatedhave only the minimum required grants
For public waitlists, both anon and authenticated may need insert-only access because a signed-in browser session submits as authenticated, not anon.
Keep read access denied unless the product explicitly needs public reads.
3. Test Direct Supabase Client Insert
From the repo, run a small direct supabase-js insert with the same URL/key used by the frontend. Do not print secrets.
Check only booleans and error categories:
If this fails with fetch failed, inspect DNS/host spelling before touching RLS.
Known pitfall: Supabase project API URLs use .supabase.co, not .supabase.com.
4. Inspect The Served Vite Bundle
Vite exposes env only when variable names start with VITE_, and the dev server must load the directory where those env files live.
Fetch a served source file and check for env keys without printing secret values:
If the frontend app is under frontend/ but env files live at the repo root, set Vite envDir to the repo root.
5. Browser-Test The Real Form
Use Playwright or a visible browser to submit the actual form.
Confirm:
- The button leaves loading state
- Success text appears
- No browser console errors
- A row appears in Supabase
Do not stop at "the API works"; the UI may still be using a stub client or stale bundle.
6. Fix The Smallest Confirmed Root Cause
Common fixes:
- Add missing insert policy/grant for
authenticated - Correct Supabase host from
.supabase.comto.supabase.co - Configure Vite
envDir - Restart Vite after env changes
- Add
try/catcharound submit handlers so thrown client errors show an error state instead of freezing
Keep the fix scoped. Do not modify deployment, secrets, DNS, SSL, or production config unless the user explicitly approves it.
References
references/ai-agent-playbook.mdfor a technical agent checklist.references/nontechnical-playbook.mdfor a human-friendly checklist.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/supabase-form-debugger/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/justinduverge-design/omen/supabase-form-debugger)