supabase-type-safety

Community

Type-safe Supabase queries that compile.

Authorarmanisadeghi
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Supabase returns Json for JSONB columns, which can break strict TypeScript interfaces. This Skill provides patterns to safely type Supabase calls by guiding the use of DB shape guards and Json-to-Unknown conversions, ensuring runtime correctness.

Core Features & Use Cases

  • RPC calls with DbRpcRow guards to validate DB row shape at compile time.
  • Table queries typed via Tables to avoid Json in row data.
  • JsonToUnknown utility to safely convert Json fields to unknown for complex schemas.
  • Guidance on when not to add guards and how to cast results safely.

Quick Start

Use the supabase-type-safety skill to enforce type-safety when integrating Supabase in a TS project.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: supabase-type-safety
Download link: https://github.com/armanisadeghi/ai-matrx/archive/main.zip#supabase-type-safety

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.