sq-data

Standardize typed data contracts and Supabase access patterns for SkateQuest-Mobile.

1|Updated Dec 7, 2025
One-click install
npx skills add https://github.com/treesus6/SkateQuest-Mobile --skill sq-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sq-data
Source: https://github.com/treesus6/SkateQuest-Mobile/tree/main/.claude/skills/sq-data
Command: npx skills add https://github.com/treesus6/SkateQuest-Mobile --skill sq-data

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Typing contracts and reusable data patterns for SkateQuest-Mobile to reduce runtime errors and boilerplate in data access.

Core Features & Use Cases

  • Typed SkateparkDTO and data models for safe API interactions.
  • Reusable Supabase query patterns with .returns<T>() and explicit error handling.
  • Zustand store typings to enforce consistent client state management.
  • PostGIS RPC usage patterns for safe geographic queries.
  • Guidelines to maintain data integrity when fetching, transforming, and caching data.

Quick Start

Review the sq-data frontmatter and adopt the provided DTOs and patterns when adding new data access or store definitions.

Frequently Asked Questions about sq-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce type safety for Supabase API responses in TypeScript?

To enforce type safety for Supabase API responses, apply typed DTOs and use the .returns<T>() method on your queries. This standardizes data contracts and ensures compile-time validation for your API data fetching operations.

What is the best way to type Zustand stores for consistent client state management?

The best way to type Zustand stores is by applying explicit store typings that enforce consistent client state management. This standardizes data access patterns and reduces boilerplate when managing state across your application.

How do I execute safe geographic queries using PostGIS RPC in a TypeScript app?

To execute safe geographic queries using PostGIS RPC, adopt explicit usage patterns that enforce typed data contracts. This ensures reliable, maintainable client code when fetching and transforming spatial data.

Does Supabase work with TypeScript for real-time updates without losing type safety?

Yes, Supabase works with TypeScript for real-time updates. By enforcing typed DTOs and explicit error handling, you can maintain strict type safety across real-time data streams and prevent runtime errors.

Why does my data fetching code lack type safety and require excessive boilerplate?

Data fetching code lacks type safety due to missing data contracts. Standardize your client code by defining typed DTOs, enforcing .returns<T>() on queries, and applying explicit error handling to reduce runtime errors.