| name | fetch-supabase-example |
| description | Fetch reference implementations from core-supabase repository. Use when (1) implementing Repository layer with Supabase, (2) need RPC function usage patterns, (3) checking correct parameter structures and type assertions, (4) verifying Supabase integration patterns. |
| tools | ["Bash","Read","GitHub CLI"] |
๐ ์์คํ
๋ฉ์์ง: ์ด Skill์ด ํธ์ถ๋๋ฉด [SEMO] Skill: fetch-supabase-example ํธ์ถ - {๋๋ฉ์ธ/ํจํด} ์์คํ
๋ฉ์์ง๋ฅผ ์ฒซ ์ค์ ์ถ๋ ฅํ์ธ์.
Fetch Supabase Example Skill
Purpose: Retrieve official Supabase integration patterns from core-supabase repository
When to Use
Agents should invoke this skill when:
- Implementing Repository layer with Supabase
- Need RPC function usage patterns
- Require parameter structure examples
- During v0.4.x CODE phase of implementation
Quick Start
Schema Verification (์ฐ์ ์์)
mcp__supabase__list_tables()
mcp__supabase__get_table_schema()
@src/lib/supabase/database.types.ts
gh api repos/semicolon-devteam/core-supabase/...
Fetch from core-supabase
gh api repos/semicolon-devteam/core-supabase/contents/document/test
gh api repos/semicolon-devteam/core-supabase/contents/document/test/posts/createPost.ts \
--jq '.content' | base64 -d
Usage
skill: fetchSupabaseExample("posts", "read");
Critical Rules
- Always use RPC functions: Never write raw SQL in Repository
- Follow parameter naming: Use
p_ prefix for all RPC parameters
- Type assertion pattern: Always
as unknown as Type
- Error handling: Always check error before using data
- Optional parameters: Use
null as unknown as undefined
Available Domains
posts - Post CRUD operations
comments - Comment operations
users - User profile operations
activities - User activity tracking
Dependencies
- GitHub CLI (
gh) with authentication
- Access to
semicolon-devteam/core-supabase repository
Related Skills
implement - Uses this skill during v0.4.x CODE phase
validate-architecture - Verifies Supabase pattern compliance
References
For detailed documentation, see: