Claude
Skill
supabase
Backend operations.
Download
dhaupin-vant-models_public_vant_skills_vant-skill-supabase-e1e348e.zip · 0 KB
Install
skills CLI
npx skills add https://github.com/dhaupin/vant/tree/main/models/public/vant/skills/vant-skill-supabase
Claude Code
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install dhaupin-vant@llmmart
Git
git clone https://github.com/dhaupin/vant.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole dhaupin/vant collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
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.
Files (vant)
-
SKILL.md 1.2 KB
--- name: supabase description: Backend operations. license: MIT metadata: author: vant version: "1.0" --- # Supabase > Backend operations. --- ## When To Use - PostgreSQL backend - Auth needed - Real-time data - Edge functions --- ## What To Do ### 1. Connect ```bash # 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 ```javascript // 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 ```bash 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.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.