Skip to content
Back to skills

Fetch Supabase Example

ASecurity

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.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
databasesjavascriptjavabashsqlgitapidatabasedocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill fetch-supabase-example --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fetch Supabase Example?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fetch Supabase Example
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-fetch-supabase-example/badge)](https://www.skillsdirectory.com/skills/majiayu000-fetch-supabase-example)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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 (우선순위)

```bash
# 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

```bash
# 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

```javascript
// Agent invokes this skill
skill: fetchSupabaseExample("posts", "read");

// Returns: RPC function, parameters, type assertion pattern
```

## Critical Rules

1. **Always use RPC functions**: Never write raw SQL in Repository
2. **Follow parameter naming**: Use `p_` prefix for all RPC parameters
3. **Type assertion pattern**: Always `as unknown as Type`
4. **Error handling**: Always check error before using data
5. **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:

- [RPC Patterns](references/rpc-patterns.md) - Parameter handling, type assertions, full examples
- [Storage Patterns](references/storage-patterns.md) - Upload/download patterns, bucket configuration

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.