AGENT SKILL
supabase
Backend operations.
- License 许可
- MIT
- 所属仓库
- dhaupin/vant
- 最近更新
- 2026-11-13
- Stars
- ★ 16
- Forks
- 1
01 前言 Front Matter
- name
- supabase
- license
- MIT
- metadata
- { "author": "vant", "version": "1.0" }
- description
- Backend operations.
03 SKILL.md 正文
Supabase
Backend operations.
When To Use
- PostgreSQL backend
- Auth needed
- Real-time data
- Edge functions
What To Do
1. Connect
# supabase-js
import { createClient } from '@supabase/supabase-js'
const supabase = createClient(
'https://xxx.supabase.co',
'public-anon-key'
)
2. Common Operations
| Operation | What |
|---|---|
| select | Query data |
| insert | Insert data |
| update | Update data |
| delete | Delete data |
| subscribe | Real-time |
3. Auth
// Sign up
const { user, session } = await supabase.auth.signUp({
email: 'user@example.com',
password: 'password'
})
// Sign in
const { user, session } = await supabase.auth.signInWithPassword({
email: 'user@example.com',
password: 'password'
})
4. Edge Functions
supabase functions serve
supabase functions deploy my-function
Output
## Supabase
| Table | Rows | Status |
|-------|------|--------|
| [name] | [n] | [OK] |
### Functions
- [list]
Role: Supabase Backend Input: Tables, functions Output: Working backend
Backend as a service.
04 同仓库更多 Skills
yaml
Data serialization.
★ 16
vite
Frontend build tool.
★ 16
typescript
Typed JavaScript.
★ 16
test-unit
Test individual functions and methods in isolation. Test happy path, edge cases, and error handling. Use when adding new functions, after bug fixes, or before commits.
★ 16
test-snapshot
Capture and compare UI/component snapshots to detect visual changes. Use when testing UI rendering, before visual changes, or for design systems.
★ 16
test-smoke
Quick sanity check to verify basic functionality works. Run fastest tests first. Use when needing quick verification before deeper testing.
★ 16