Agent skill
fetch-supabase-example
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.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/fetch-supabase-example
SKILL.md
๐ ์์คํ ๋ฉ์์ง: ์ด 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 (์ฐ์ ์์)
# 1. Supabase MCP (์ค์๊ฐ ์คํค๋ง) - ์ฐ์
mcp__supabase__list_tables()
mcp__supabase__get_table_schema()
# 2. database.types.ts (๋ก์ปฌ ํ์
)
@src/lib/supabase/database.types.ts
# 3. core-supabase (์ฐธ์กฐ ๊ตฌํ)
gh api repos/semicolon-devteam/core-supabase/...
Fetch from core-supabase
# List available test examples
gh api repos/semicolon-devteam/core-supabase/contents/document/test
# Fetch specific domain example
gh api repos/semicolon-devteam/core-supabase/contents/document/test/posts/createPost.ts \
--jq '.content' | base64 -d
Usage
// Agent invokes this skill
skill: fetchSupabaseExample("posts", "read");
// Returns: RPC function, parameters, type assertion pattern
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 operationscomments- Comment operationsusers- User profile operationsactivities- User activity tracking
Dependencies
- GitHub CLI (
gh) with authentication - Access to
semicolon-devteam/core-supabaserepository
Related Skills
implement- Uses this skill during v0.4.x CODE phasevalidate-architecture- Verifies Supabase pattern compliance
References
For detailed documentation, see:
- RPC Patterns - Parameter handling, type assertions, full examples
- Storage Patterns - Upload/download patterns, bucket configuration
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?